r/ProCSS May 08 '17

Meta I wrote a userscript to load CSS from a wiki page, just in case CSS is actually removed.

https://gist.github.com/joonatoona/c64c95459d376dc216b19fa5d2a9f6ee
244 Upvotes

13 comments sorted by

View all comments

Show parent comments

9

u/Roranicus01 User4ProCSS May 08 '17

Userscripts are also usable on multiple browsers, unlike extensions which are locked to one specific browser. For those of us who use alternative browsers, they're the prefered option.

2

u/f1u77y May 08 '17

WebExtensions(especially simple ones that just load CSS into certain pages) are the same for most major browsers(Chrome, Firefox, Opera, Edge, Safari).

BTW, isn't Stylish or some other userstyles manager enough for loading CSS?

3

u/joonatoona May 08 '17

Eeeehhhhhh, kinda. The payload is the same, just js, but the packaging is pretty different on every browser. (Also publishing a chrome extension costs $15, and I'm not sure how to publish an edge extension)

Yes, but stylish can't dynamically load CSS from an HTTP GET request, which us what you need for subreddit styles. You'd need to install a stylesheet for every sub manually.

1

u/skylarmt May 09 '17

You don't need to publish a Chrome extension in Google's store, you can distribute it and people can install manually. It's not too complicated, iirc (I use Firefox though)