FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Narrow down the lower right indicator · feicc/Userscript-Plus@3ff2965 · GitHub

Commit 3ff2965

Browse files
committed
Narrow down the lower right indicator
1 parent 2cb5cb3 commit 3ff2965

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎dist/ui.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/common/js/tools.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ export default {
88
return timeago(null, lang).format(time)
99
},
1010
installUserJs (uri) {
11+
HTMLElement.prototype.click = function() {
12+
let evt = parent.ownerDocument.createEvent('MouseEvents')
13+
evt.initMouseEvent('click', true, true, parent.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null)
14+
parent.dispatchEvent(evt)
15+
}
1116
let link = parent.document.createElement('a')
1217
link.href = uri
1318
link.click()

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL