Skip to content

Instantly share code, notes, and snippets.

@holtzermann17
Created June 25, 2010 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save holtzermann17/452929 to your computer and use it in GitHub Desktop.
Save holtzermann17/452929 to your computer and use it in GitHub Desktop.
// ==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);
// ==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);
// ==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);
@holtzermann17
Copy link
Author

Note that I've entered this into Mozilla's greasemonkey bug tracker, at https://www.mozdev.org/bugs/show_bug.cgi?id=22958

@johan
Copy link

johan commented Jun 25, 2010

Does the bug go away if you remove the two // @include * lines?

@holtzermann17
Copy link
Author

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