google-dark icon indicating copy to clipboard operation
google-dark copied to clipboard

Safari support

Open hyperfekt opened this issue 7 years ago • 3 comments

The Stylus extension does not support the Safari browser since the latter is not compatible with the WebExtensions API.

The aim is to work around that by providing a way to manually compile the userstyle with custom values.

hyperfekt avatar May 01 '18 16:05 hyperfekt

It appears Stylish does not support installing from URLs instead of a userstyles.org page, which means there cannot be a one-click install link.
Additionally, pasting in moz-document style seems to be broken. All in all, Stylish has become a terrible extension that will never be first-class for this style.

For now I recommend loading https://raw.githubusercontent.com/hyperfekt/master/search/search.user.css in http://beautifytools.com/stylus-compiler.php, uncommenting the variables, adapting them to your need, compiling the whole thing, creating a new style in Stylish, manually splitting up the different moz-document parts into different boxes and adding the regex rules for them. Repeat this every time you want to update (or use a browser that conforms to modern standards).

hyperfekt avatar May 01 '18 17:05 hyperfekt

Just a thought?

Is there no way to use something greasemonkey or tampermonkey in safari and adding ANY style as a userscript or something?

the-j0k3r avatar Jun 03 '18 15:06 the-j0k3r

Hmm, it could be possible if you basically ported Stylus (the extension) into a Userscript. I'm not sure there's anyone who wants to undertake such an endeavor.
It might be easier to add Stylus (the language) support to a userstyle extension that is available on Safari or port Stylus (the extension) to Safari.

I don't think the problem is technical feasibility, it's more someone wanting to invest the time to make it happen.

The applying a style itself doesn't appear to be too big a task compared with parsing options, offering to change them, compiling the whole thing and then parsing the sites it applies to.

hyperfekt avatar Jun 03 '18 16:06 hyperfekt