Created
June 25, 2010 14:32
-
-
Save holtzermann17/452929 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Step52 | |
// @namespace http://metameso.org/ | |
// @description Browse to http://piratepad.net/pmtransit to see exclude rule fail even more, and illustrate interesting behaviour of etherpad. | |
// @include * | |
// @exclude *pirate* | |
// @version 0.1 | |
// ==/UserScript== | |
alert("You're browsing \n "+window.location); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Step51 | |
// @namespace http://metameso.org/ | |
// @description Browse to http://li101-104.members.linode.com:9000/if-I-recall to see exclude rule fail. | |
// @include * | |
// @exclude *li101-104.members.linode.com* | |
// @version 0.1 | |
// ==/UserScript== | |
alert("You're browsing \n "+window.location); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Step52 | |
// @namespace http://metameso.org/ | |
// @description Browse to http://piratepad.net/pmtransit to see exclude rule succeed! This only works because there is no explicit mention of include *, see other examples at http://gist.github.com/gists/452929 | |
// @exclude *pirate* | |
// @version 0.1 | |
// ==/UserScript== | |
alert("You're browsing \n "+window.location); |
Does the bug go away if you remove the two // @include * lines?
Indeed, without
// @include *
the bug vanishes. Good call!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note that I've entered this into Mozilla's greasemonkey bug tracker, at https://www.mozdev.org/bugs/show_bug.cgi?id=22958