Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
electron-avatar-update
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tf-boys
electron-avatar-update
Commits
b6f376b5
Commit
b6f376b5
authored
Mar 09, 2018
by
刘松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
preload
parent
35d50d56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
preload.js
es5/preload.js
+13
-8
No files found.
es5/preload.js
View file @
b6f376b5
...
...
@@ -6,14 +6,18 @@ module.exports = function () {
__avatar__
.
currentWindow
=
window
;
__avatar__
.
rootDocument
=
document
;
__avatar__
.
currentDocument
=
document
;
var
count
=
0
;
if
(
document
.
location
.
host
===
'mp.dayu.com'
){
var
temp
=
Object
.
defineProperty
;
Object
.
defineProperty
=
function
(
obj
,
prop
,
descriptor
){
console
.
dir
(
'lalalla'
);
if
(
prop
===
'changeCover'
){
var
temp
=
Object
.
defineProperty
;
Object
.
defineProperty
=
function
(
obj
,
prop
,
descriptor
){
if
(
prop
===
'changeCover'
){
descriptor
[
'get'
]
=
()
=>
1
;
}
return
temp
.
apply
(
this
,
arguments
)
}
}
}
if
(
prop
===
'submitNum'
){
window
[
'log'
+
count
]
=
obj
;
count
++
;
}
return
temp
.
apply
(
this
,
arguments
)
}
}
};
\ No newline at end of file
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