Discussions » Greasy Fork Feedback

Greasy Fork Bookmarklet

§
Posté le: 02/12/2018

Greasy Fork Bookmarklet

I don't know why this literally isn't a link I can bookmark on the home page.

javascript:window.location.href = 'https://greasyfork.org/en/scripts?utf8=%E2%9C%93&q=' + window.location.hostname;

§
Posté le: 02/12/2018

javascript:window.location.href%20=%20'https://greasyfork.org/en/scripts?utf8=%E2%9C%93&q='%20+%20window.location.hostname;

obviously this doesnt work, the site software adds "denied:" in front of the URL, bookmark the link and delete the denied: part... then go to any site and click the bookmark, it will automatically search Greasy Fork, using the site domain as the search. You can thank me later.

woxxomMod
§
Posté le: 02/12/2018
Édité le: 02/12/2018

javascript:location.href%3D'https%3A%2F%2Fgreasyfork.org%2Fen%2Fscripts%2Fsearch%3Fq%3D'%2Blocation.hostname

To generate these percent escapes either use an editor that can do it or simply type the following in browser console (Ctrl-Shift-J): encodeURIComponent(`location.href=...............`) i.e. the entire text after javascript:

§
Posté le: 02/12/2018
Édité le: 02/12/2018

@wOxxOm a dit: To generate these percent escapes either use an editor that can do it

An example? i use Notepad ++: It can do that ?

§
Posté le: 03/12/2018

@decembre said: An example? i use Notepad ++: It can do that ?

Plugins -> MIME Tools -> URL Encode

§
Posté le: 03/12/2018

@adisib a dit :

@decembre said: An example? i use Notepad ++: It can do that ?

Plugins -> MIME Tools -> URL Encode

thanks!

Poster une réponse

Connectez-vous pour poster une réponse.