qutebrowser/qutebrowser/javascript
Jimmy 33d66676c9 Greasemonkey: mock the new GM4 promises based API.
Based on the gm4-polyfill.js script from the greasemonkey devs. But not
the same because that script doesn't work for us for a couple of
reasons:

* It assumes all GM_* functions are attributes of `this` which in
this case is the global window object. Which breaks it out of our iife.
It is possible to change what `this` is within the iife but then we
would have to do something weird to ensure the functions were available
with the leading `this.`. And I don't think user javascripts tend to
call GM functions like that anyway, that polyfill script is just making
weird assumptions and then claiming it'll work for "any user script
engine".

* It tries to provide implementations of GM_registerMenuCommand and
GM_getResource text which do unexpected thins or implement a circular
dependency on the new version, respectively.
2018-03-03 13:14:49 +13:00
..
.eslintignore Greasemonkey: move GM_* template into seperate file. 2017-11-27 19:27:31 +13:00
.eslintrc.yaml Merge remote-tracking branch 'upstream/master' into jay/frame-hinting 2018-01-17 17:24:43 -05:00
caret.js Remove eslint max-lines suppression 2018-02-08 09:51:06 +01:00
greasemonkey_wrapper.js Greasemonkey: mock the new GM4 promises based API. 2018-03-03 13:14:49 +13:00
history.js change some lambdas to functions 2017-10-31 12:54:26 +01:00
pac_utils.js keep old pac_utils.js 2017-10-31 16:40:09 +01:00
position_caret.js change some lambdas to functions 2017-10-31 12:54:26 +01:00
scroll.js change some lambdas to functions 2017-10-31 12:54:26 +01:00
stylesheet.js Fix error in stylesheet.js on older QtWebEngine 2017-11-09 19:28:36 +02:00
webelem.js Use baseNode over anchorNode in follow-selected 2018-02-22 16:42:58 -05:00