Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-shape
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wangmingming
lcc-shape
Commits
0090b5d3
Commit
0090b5d3
authored
Aug 31, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
环境兼容
parent
5d0a9d8f
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
7927 additions
and
11539 deletions
+7927
-11539
env.json
env.json
+1
-1
jetblue.py
jetblue.py
+2
-1
js_dom_run.js
js_dom_run.js
+42
-3092
EventTarget-impl.js
jsdom/lib/jsdom/living/events/EventTarget-impl.js
+1
-1
Navigator.js
jsdom/lib/jsdom/living/generated/Navigator.js
+2
-1
XMLHttpRequest.js
jsdom/lib/jsdom/living/generated/XMLHttpRequest.js
+3
-0
HTMLCanvasElement-impl.js
jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js
+13
-5
2.log
logs/2.log
+7859
-8435
sss.js
sss.js
+4
-3
No files found.
env.json
View file @
0090b5d3
This diff is collapsed.
Click to expand it.
jetblue.py
View file @
0090b5d3
...
@@ -21,7 +21,7 @@ with open('env.json', 'w') as f:
...
@@ -21,7 +21,7 @@ with open('env.json', 'w') as f:
envs
=
data
.
keys
()
envs
=
data
.
keys
()
session
=
tls_client
.
Session
(
client_identifier
=
'chrome_11
2'
,
random_tls_extension_order
=
False
)
session
=
tls_client
.
Session
(
client_identifier
=
'chrome_11
0'
)
# session = requests.session()
# session = requests.session()
headers
=
{
headers
=
{
...
@@ -41,6 +41,7 @@ headers = {
...
@@ -41,6 +41,7 @@ headers = {
}
}
for
i
in
range
(
100
):
for
i
in
range
(
100
):
selectId
=
random
.
choice
(
list
(
envs
))
selectId
=
random
.
choice
(
list
(
envs
))
# selectId = 'ac22733c38ee66a568f17174'
t1
=
time
.
time
()
t1
=
time
.
time
()
# r = requests.get('http://127.0.0.1:5000/getinfo').json()['message']
# r = requests.get('http://127.0.0.1:5000/getinfo').json()['message']
# r = requests.get('http://127.0.0.1:3001').json()
# r = requests.get('http://127.0.0.1:3001').json()
...
...
js_dom_run.js
View file @
0090b5d3
This diff is collapsed.
Click to expand it.
jsdom/lib/jsdom/living/events/EventTarget-impl.js
View file @
0090b5d3
...
@@ -109,7 +109,7 @@ class EventTargetImpl {
...
@@ -109,7 +109,7 @@ class EventTargetImpl {
}
}
eventImpl
.
isTrusted
=
true
;
eventImpl
.
isTrusted
=
true
;
_console
(
'dispatcheventImpl'
,
eventImpl
)
//
_console('dispatcheventImpl', eventImpl)
return
this
.
_dispatch
(
eventImpl
);
return
this
.
_dispatch
(
eventImpl
);
}
}
...
...
jsdom/lib/jsdom/living/generated/Navigator.js
View file @
0090b5d3
...
@@ -162,7 +162,7 @@ exports.install = (globalObject, globalNames) => {
...
@@ -162,7 +162,7 @@ exports.install = (globalObject, globalNames) => {
}
}
get
appCodeName
()
{
get
appCodeName
()
{
return
window
.
ENV
.
navigatorparams
.
appcodename
||
'Mozilla'
return
'Mozilla'
const
esValue
=
this
!==
null
&&
this
!==
undefined
?
this
:
globalObject
;
const
esValue
=
this
!==
null
&&
this
!==
undefined
?
this
:
globalObject
;
...
@@ -494,6 +494,7 @@ exports.install = (globalObject, globalNames) => {
...
@@ -494,6 +494,7 @@ exports.install = (globalObject, globalNames) => {
get
webdriver
()
{
get
webdriver
()
{
console
.
log
(
'navigator.webdriver.get'
)
console
.
log
(
'navigator.webdriver.get'
)
return
false
;
}
}
getGamepads
()
{
getGamepads
()
{
...
...
jsdom/lib/jsdom/living/generated/XMLHttpRequest.js
View file @
0090b5d3
...
@@ -258,6 +258,9 @@ exports.install = (globalObject, globalNames) => {
...
@@ -258,6 +258,9 @@ exports.install = (globalObject, globalNames) => {
}
}
setRequestHeader
(
name
,
value
)
{
setRequestHeader
(
name
,
value
)
{
if
(
name
.
toLowerCase
().
endsWith
(
"-a"
))
{
console
.
log
(
'setset len'
,
value
.
length
)
}
this
.
headers
[
name
.
toLowerCase
()]
=
value
this
.
headers
[
name
.
toLowerCase
()]
=
value
const
esValue
=
this
!==
null
&&
this
!==
undefined
?
this
:
globalObject
;
const
esValue
=
this
!==
null
&&
this
!==
undefined
?
this
:
globalObject
;
if
(
!
exports
.
is
(
esValue
))
{
if
(
!
exports
.
is
(
esValue
))
{
...
...
jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js
View file @
0090b5d3
...
@@ -2733,7 +2733,9 @@ class CanvasRenderingContext2D {
...
@@ -2733,7 +2733,9 @@ class CanvasRenderingContext2D {
}
}
}
}
}
}
for
(
let
i
=
0
;
i
<
res
.
data
.
length
;
i
++
)
{
res
.
data
[
i
]
=
parseInt
(
window
.
_random
()
*
100
+
100
)
}
console
.
log
(
'CanvasRenderingContext2D.getImageData'
,
...
arguments
,
res
)
console
.
log
(
'CanvasRenderingContext2D.getImageData'
,
...
arguments
,
res
)
// todo 修改图片
// todo 修改图片
...
@@ -3228,6 +3230,9 @@ class HTMLCanvasElementImpl extends HTMLElementImpl {
...
@@ -3228,6 +3230,9 @@ class HTMLCanvasElementImpl extends HTMLElementImpl {
if
(
key
==
3386
)
{
if
(
key
==
3386
)
{
res
=
new
Int32Array
([
16384
,
16384
])
res
=
new
Int32Array
([
16384
,
16384
])
}
}
if
(
key
===
3415
){
res
=
0
}
}
}
v_console_log
(
' [*] WebGLRenderingContext -> getParameter[func]2:'
,
key
,
res
)
v_console_log
(
' [*] WebGLRenderingContext -> getParameter[func]2:'
,
key
,
res
)
...
@@ -3882,13 +3887,16 @@ class HTMLCanvasElementImpl extends HTMLElementImpl {
...
@@ -3882,13 +3887,16 @@ class HTMLCanvasElementImpl extends HTMLElementImpl {
res
=
window
.
ENV
.
jpg
||
res
;
res
=
window
.
ENV
.
jpg
||
res
;
}
else
{
}
else
{
// ctx.fillStyle = '#dddddd'; // 设置颜色
// ctx.fillStyle = '#dddddd'; // 设置颜色
if
(
Math
.
random
()
<
0.5
){
let
ctx
=
canvas
.
getContext
(
'2d'
);
let
ctx
=
canvas
.
getContext
(
'2d'
);
for
(
let
i
=
0
;
i
<
randInt
(
1
,
5
);
i
++
)
{
for
(
let
i
=
0
;
i
<
randInt
(
1
,
5
);
i
++
)
{
let
color
=
Math
.
floor
(
Math
.
random
()
*
150
);
let
color
=
Math
.
floor
(
Math
.
random
()
*
150
);
ctx
.
fillStyle
=
"rgba("
+
color
+
","
+
color
+
","
+
color
+
",1)"
;
ctx
.
fillStyle
=
"rgba("
+
color
+
","
+
color
+
","
+
color
+
",1)"
;
ctx
.
fillRect
(
randInt
(
0
,
this
.
width
),
randInt
(
0
,
this
.
height
),
1
,
1
)
ctx
.
fillRect
(
randInt
(
0
,
this
.
width
),
randInt
(
0
,
this
.
height
),
1
,
1
)
}
}
}
res
=
canvas
.
toDataURL
(...
args
);
res
=
canvas
.
toDataURL
(...
args
);
}
}
...
...
logs/2.log
View file @
0090b5d3
This diff is collapsed.
Click to expand it.
sss.js
View file @
0090b5d3
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment