Commit 9dbe38df authored by wang's avatar wang

5555

parent 46a96af6
This diff is collapsed.
...@@ -5,7 +5,7 @@ import requests ...@@ -5,7 +5,7 @@ import requests
import json import json
import tls_client import tls_client
session = tls_client.Session(client_identifier='chrome_112', random_tls_extension_order=False) session = tls_client.Session(client_identifier='chrome_111', random_tls_extension_order=False)
# session = requests.session() # session = requests.session()
headers = { headers = {
...@@ -17,7 +17,6 @@ headers = { ...@@ -17,7 +17,6 @@ headers = {
"booking-application-type": "NGB", "booking-application-type": "NGB",
"content-type": "application/json", "content-type": "application/json",
"accept": "application/json", "accept": "application/json",
"api-version": "v3",
"origin": "https://www.jetblue.com", "origin": "https://www.jetblue.com",
"sec-fetch-site": "same-site", "sec-fetch-site": "same-site",
"sec-fetch-mode": "cors", "sec-fetch-mode": "cors",
......
This diff is collapsed.
...@@ -487,7 +487,7 @@ exports.install = (globalObject, globalNames) => { ...@@ -487,7 +487,7 @@ exports.install = (globalObject, globalNames) => {
Object.defineProperty(globalObject, interfaceName, { Object.defineProperty(globalObject, interfaceName, {
configurable: true, configurable: true,
writable: true, writable: true,
value: utils.v_saf(utils.v_saf(MouseEvent)) value: utils.v_saf(MouseEvent)
}); });
}; };
......
...@@ -85,7 +85,32 @@ class GlobalEventHandlersImpl { ...@@ -85,7 +85,32 @@ class GlobalEventHandlersImpl {
this._setEventHandlerFor(event, handler); this._setEventHandlerFor(event, handler);
} }
} }
let args = ["_initGlobalEvents", "_getEventHandlerTarget", "_getEventHandlerFor", "_setEventHandlerFor", "_globalEventChanged"]
var v_saf;
!function () {
var n = Function.toString, t = [], i = [], o = [].indexOf.bind(t), e = [].push.bind(t), r = [].push.bind(i);
function u(n, t, tag) {
return -1 == o(n) && (e(n), r(`function ${tag ? tag : ""}${t || n.name || ""}() { [native code] }`.replaceAll('get get', 'get').replaceAll('set set', 'set'))), n
}
Object.defineProperty(Function.prototype, "toString", {
enumerable: !1,
configurable: !0,
writable: !0,
value: function () {
return "function" == typeof this && i[o(this)] || n.call(this)
}
}), u(Function.prototype.toString, "toString"), v_saf = u
}();
Object.defineProperties(GlobalEventHandlersImpl.prototype, {
_initGlobalEvents: {value: v_saf(GlobalEventHandlersImpl.prototype._initGlobalEvents), enumerable:false},
_getEventHandlerTarget: {value: v_saf(GlobalEventHandlersImpl.prototype._getEventHandlerTarget), enumerable:false},
_getEventHandlerFor: {value: v_saf(GlobalEventHandlersImpl.prototype._getEventHandlerFor), enumerable:false},
_setEventHandlerFor: {value: v_saf(GlobalEventHandlersImpl.prototype._setEventHandlerFor), enumerable:false},
_globalEventChanged: {value: v_saf(GlobalEventHandlersImpl.prototype._globalEventChanged), enumerable:false},
})
for (const event of events) { for (const event of events) {
createEventAccessor(GlobalEventHandlersImpl.prototype, event); createEventAccessor(GlobalEventHandlersImpl.prototype, event);
} }
......
...@@ -3004,6 +3004,12 @@ class HTMLCanvasElementImpl extends HTMLElementImpl { ...@@ -3004,6 +3004,12 @@ class HTMLCanvasElementImpl extends HTMLElementImpl {
getAttribLocation(program, name) { getAttribLocation(program, name) {
v_console_log(' [*] WebGLRenderingContext -> getAttribLocation[func]', program, name); v_console_log(' [*] WebGLRenderingContext -> getAttribLocation[func]', program, name);
switch (name){
case 'aPosition':
return 0;
case 'aColor':
return 1;
}
} }
vertexAttribPointer(index, size, type, normalized, stride, offset) { vertexAttribPointer(index, size, type, normalized, stride, offset) {
...@@ -3020,6 +3026,7 @@ class HTMLCanvasElementImpl extends HTMLElementImpl { ...@@ -3020,6 +3026,7 @@ class HTMLCanvasElementImpl extends HTMLElementImpl {
getUniformLocation(program, name) { getUniformLocation(program, name) {
v_console_log(' [*] WebGLRenderingContext -> getUniformLocation[func]', program, name); v_console_log(' [*] WebGLRenderingContext -> getUniformLocation[func]', program, name);
return proxy({},'getUniformLocation')
} }
uniform4fv(program, name) { uniform4fv(program, name) {
...@@ -3031,9 +3038,9 @@ class HTMLCanvasElementImpl extends HTMLElementImpl { ...@@ -3031,9 +3038,9 @@ class HTMLCanvasElementImpl extends HTMLElementImpl {
} }
readPixels(x, y, width, height, format, type, pixels) { readPixels(x, y, width, height, format, type, pixels) {
for (let i = 0; i < pixels.length - 1; i++) { // for (let i = 0; i < pixels.length - 1; i++) {
pixels.fill(parseInt(Math.random() * 210 + 10), i, i + 1) // pixels.fill(parseInt(Math.random() * 210 + 10), i, i + 1)
} // }
v_console_log(' [*] WebGLRenderingContext -> readPixels[func]', x, y, width, height, format, type, pixels) v_console_log(' [*] WebGLRenderingContext -> readPixels[func]', x, y, width, height, format, type, pixels)
} }
...@@ -3159,13 +3166,14 @@ class HTMLCanvasElementImpl extends HTMLElementImpl { ...@@ -3159,13 +3166,14 @@ class HTMLCanvasElementImpl extends HTMLElementImpl {
34921: 16, 34921: 16,
35660: 16, 35660: 16,
36347: 1024, 36347: 1024,
7937: 'WebKit:WebGL', 7937: 'WebKit WebGL',
35724: 'WebGL:GLSL:ES:1.0:(OpenGL:ES:GLSL:ES:1.0:Chromium)', 35724: 'WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)',
3415: 0, 3415: 0,
7936: 'WebKit', 7936: 'WebKit',
7938: 'WebGL:1.0:(OpenGL:ES:2.0:Chromium)', 7938: 'WebGL 1.0 (OpenGL ES 2.0 Chromium)',
37445: 'Google Inc. (Apple)', 37445: 'Google Inc.',
37446: 'ANGLE (Apple, Apple M1 Max, OpenGL 4.1)', // 37446: 'ANGLE (Apple, Apple M1 Max, OpenGL 4.1)',
37446: window.GRAPHIC_DRIVER,
34047: null 34047: null
} }
if (_toggle[key]) { if (_toggle[key]) {
......
...@@ -29,10 +29,28 @@ const events = new Set([ ...@@ -29,10 +29,28 @@ const events = new Set([
"resize", "resize",
"scroll" "scroll"
]); ]);
var v_saf;
!function () {
var n = Function.toString, t = [], i = [], o = [].indexOf.bind(t), e = [].push.bind(t), r = [].push.bind(i);
function u(n, t, tag) {
return -1 == o(n) && (e(n), r(`function ${tag ? tag : ""}${t || n.name || ""}() { [native code] }`.replaceAll('get get', 'get').replaceAll('set set', 'set'))), n
}
Object.defineProperty(Function.prototype, "toString", {
enumerable: !1,
configurable: !0,
writable: !0,
value: function () {
return "function" == typeof this && i[o(this)] || n.call(this)
}
}), u(Function.prototype.toString, "toString"), v_saf = u
}();
// This class builds on GlobalEventHandlers, which must be mixed in first. // This class builds on GlobalEventHandlers, which must be mixed in first.
class WindowEventHandlersImpl { class WindowEventHandlersImpl {
_proxyWindowEventsToWindow() {
}
WindowEventHandlersImpl.prototype._proxyWindowEventsToWindow = v_saf(function _proxyWindowEventsToWindow() {
// We're a <body> or <frameset>, so we need to proxy these specific events to the Window (if it exists) // We're a <body> or <frameset>, so we need to proxy these specific events to the Window (if it exists)
this._getEventHandlerTarget = event => { this._getEventHandlerTarget = event => {
if (events.has(event)) { if (events.has(event)) {
...@@ -40,9 +58,7 @@ class WindowEventHandlersImpl { ...@@ -40,9 +58,7 @@ class WindowEventHandlersImpl {
} }
return this; return this;
}; };
} })
}
for (const event of events) { for (const event of events) {
createEventAccessor(WindowEventHandlersImpl.prototype, event); createEventAccessor(WindowEventHandlersImpl.prototype, event);
} }
......
This diff is collapsed.
This diff is collapsed.
...@@ -57,7 +57,7 @@ v_start_stamp = Date.now() ...@@ -57,7 +57,7 @@ v_start_stamp = Date.now()
print = console.log print = console.log
dtavm.log = console.log dtavm.log = console.log
con3 = console.log con3 = console.log
con3 = function (){} // con3 = function (){}
proxy = function (tt, name) { proxy = function (tt, name) {
return new Proxy(tt, { return new Proxy(tt, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment