Changeset 18867

Show
Ignore:
Timestamp:
09/05/08 02:12:14 (4 months ago)
Author:
drry
Message:
  • added the @include.
  • fixed the URL_LIST.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/userscripts/unziplinker.user.js

    r14408 r18867  
    33// @namespace      http://d.hatena.ne.jp/javascripter/ 
    44// @include        http://twitter.com/* 
     5// @include        https://twitter.com/* 
    56// ==/UserScript== 
    67(function() { 
    78  const REPLACE_CONTENT = true; 
    89  const URL_LIST = [ 
    9   /^http:\/\/tinyurl\.com\//, 
    10   /^http:\/\/(?:.*?\.)?zz\.tc\/.+/ 
     10  /^http:\/\/tinyurl\.com\/./, 
     11  /^http:\/\/(?:[^.]+\.)?zz\.tc\/[a-zA-Z0-9]+/ 
    1112  ]; 
    1213 
     
    1718    if (elem.hasAttribute('href')) { 
    1819      if (elem.href in requested) { 
    19         setUrl(elem, requested[elem.href]) 
     20        setUrl(elem, requested[elem.href]); 
    2021      } else { 
    2122        if (!URL_LIST.some(function(re) re.test(elem.href))) return;