How do I restrict chrome greasemonkey scripts to a single webpage, or just certain webpages? How do I restrict chrome greasemonkey scripts to a single webpage, or just certain webpages? google-chrome google-chrome

How do I restrict chrome greasemonkey scripts to a single webpage, or just certain webpages?


Use @match, as described here.

Example:

// ==UserScript==// @match http://*/*// @match http://*.google.com/*// @match http://www.google.com/*// @match https://www.google.com/*// ==/UserScript==


using @include @exclude tags in metadata?http://diveintogreasemonkey.org/helloworld/metadata.htmlhttps://wiki.greasespot.net/Metadata_Block