OtterBrowser / otter-browser

Otter Browser aims to recreate the best aspects of the classic Opera (12.x) UI using Qt5
https://otter-browser.org
GNU General Public License v3.0
1.8k stars 277 forks source link

Improved Greasemonkey compatibility #1091

Open Emdek opened 8 years ago

Emdek commented 8 years ago

Currently we have basic support for user scripts, but to support more of existing scripts we have to support some extra features.

The most important stuff:

Other tasks:

Frenzie commented 8 years ago

Note that for the moment, users can look at e.g. http://userscripts-mirror.org/scripts/show/105153 for the GM API.

Emdek commented 8 years ago

@Frenzie, good catch. I guess that this one could be a good reference implementation to test our implementation.

uahim commented 8 years ago

@Emdek @Frenzie thanks

where am I to put the directory, I did check settings, about:config and also the Otter settings directory for a subdirectory, all with no luck. unless this is coming in 118?

Emdek commented 8 years ago

@uahim, right now it is a bit complex task... I'll try to land some basic Addons Manager before beta.

uahim commented 8 years ago

ah sorry didn't see the "in progress" label; figured it was already usable

OVNI-modding commented 6 years ago

@run-at should also be supported.

Especially '@run-at document-start' since it's pretty much mandatory for complete restyling scripts. For example I use it in other browsers for a "dynamic contrast" script that makes every background colors a bit darker, and text brighter. (For now I use a user-css in Otter, but it can only set absolute color)

Emdek commented 6 years ago

@OVNI-modding, currently run-at is only fully supported with QtWebEngine backend. In theory we could already improve it on QtWebKit side but it's harder to properly map injection time without dedicated API for running user scripts...