Discussions » Development

Greasemonkey BETA : How make my old script work with it ?

§
Posted: 16.11.2017

Greasemonkey BETA : How make my old script work with it ?

I try to make my script work with the new Greasemonkey beta:
USERSTYLES - TABLES Sorter SIMPLE

I try :

// TEST GREASEMONKEY BETA
// @grant GM.addStyle
// @grant GM.getResourceText


but it's not sufficient....

§
Posted: 16.11.2017

Currently there's no native support for GM.addStyle & GM.getResourceText:
https://www.greasespot.net/2017/09/greasemonkey-4-for-script-authors.html

§
Posted: 16.11.2017
Edited: 16.11.2017

Ha, thanks, another good news.....
:-(

Any other solution to sort this table (other than stay with Waterfox) ?

PS: :smile:
Found it work with Tampermonkey (firefox addon).
But i am interesting to have something more powerful than my script to sort Userstyles's Tables.

§
Posted: 16.11.2017
Edited: 16.11.2017

An addStyle() function is easy to make yourself (f.ex. take a look https://greasyfork.org/en/scripts/34527-gmcommonapi-js).
Actually I have never found out what getResourceText() does (or did). But even though I don't know, I find it hard to believe it should be absolutely needed for a "table sorter" script. But then again, I don't really know userstyles.org or what tables we are talking about. So...

§
Posted: 16.11.2017
Edited: 16.11.2017

Thanks for the help...
Userstyles.org provide Userstyles which permit to tweak website by customize their CSS...
It's like Greasyfork, but for appearance.

I have drop an eye on your library, but i am not coder :smile: Can you provide some examples how to use it ?

Post reply

Sign in to post a reply.