| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,6 +8,11 @@ export default { | |||
| 8 | 8 | return timeago(null, lang).format(time) | |
| 9 | 9 | }, | |
| 10 | 10 | 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 | + } | ||
| 11 | 16 | let link = parent.document.createElement('a') | |
| 12 | 17 | link.href = uri | |
| 13 | 18 | link.click() | |
| Back | FazBrowse Home | New Git URL |
0 commit comments