greasemonkey/greasemonkey — Issue #1486: FeatureRequest: return a token of @include URLs
Author: 0rt
Created: 2011-12-12 10:16:06+00:00
State: open

say there are some @include of a script, like:
@include http://www.123.com/*
@include http://www.abc.com/*

The script need to do difference things to difference URL, then we need another match-up in the script:
```javascript
spec = document.location.href;
if (spec.indexOf("www.123.com"){}
elseif (){}
elseif(){}...
```

that would be much easier if we hold a token of the @include URLs,
switch (token){
case 0:
break;
case 1:
break;
...
0 stand for the first-line of @include