firefox - How to exclude amazon.com from a Greasemonkey script? -
i've specific greasemonkey 1.8 /firefox 20 script (auto-view spoiler boxes) works great on sites, on amazon.com destroys layout.
i've tried exclude amazon.com in script settings, not work.
since amazon.com defaults https:// i've set exception in
user script -> auto-view spoiler boxes -> options -> user settings:
include pages:
*http://*
excluded pages:
*https://*
yet, script still work on every website (yes, i've cleared browser cache).
on script settings tab, non-editable included pages section contains:
http://forums.kingdomofloathing.com/vb/showthread.php*
what i'm doing wrong? how exclude amazon.com greasemonkey script?
reference the include , exclude rules greasemonkey.
don't use *http://*
or *https://*
leading asterisk yield unexpected results. not amazon pages use https.
in user settings, can use
http://*
included pages , these 4 lines excluded pages:
http://amazon.com/* http://*.amazon.com/* https://amazon.com/* https://*.amazon.com/*
or,
erase user settings entries (the following won't work if don't), , use edit user script button/menu change script's metadata block to:
// ==userscript== // @name auto-view spoiler boxes // @namespace http://userscripts.org/users/75549 // @description lets skip clicking show button view spoilers // @include http://* // @exclude /^https?://.*amazon\.com/?/ // ==/userscript==
this lets use greasemonkey's regular expression matching block common amazon (usa) addresses 1 line.
finally, not best avoid scripts run on every page (http://*
, etc.). you'll have faster, smoother experience if include select pages spoilers issue you.
Comments
Post a Comment