Changeset 18867 for lang/javascript
- Timestamp:
- 09/05/08 02:12:14 (3 months ago)
- Files:
-
- 1 modified
-
lang/javascript/userscripts/unziplinker.user.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/userscripts/unziplinker.user.js
r14408 r18867 3 3 // @namespace http://d.hatena.ne.jp/javascripter/ 4 4 // @include http://twitter.com/* 5 // @include https://twitter.com/* 5 6 // ==/UserScript== 6 7 (function() { 7 8 const REPLACE_CONTENT = true; 8 9 const URL_LIST = [ 9 /^http:\/\/tinyurl\.com\/ /,10 /^http:\/\/(?: .*?\.)?zz\.tc\/.+/10 /^http:\/\/tinyurl\.com\/./, 11 /^http:\/\/(?:[^.]+\.)?zz\.tc\/[a-zA-Z0-9]+/ 11 12 ]; 12 13 … … 17 18 if (elem.hasAttribute('href')) { 18 19 if (elem.href in requested) { 19 setUrl(elem, requested[elem.href]) 20 setUrl(elem, requested[elem.href]); 20 21 } else { 21 22 if (!URL_LIST.some(function(re) re.test(elem.href))) return;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)