Changeset 7336

Show
Ignore:
Timestamp:
03/01/08 20:32:23 (5 years ago)
Author:
drry
Message:

lang/javascript/userscripts/ldrprefav.user.js:

  • ついでにこの際 == to === だ。
Files:
1 modified

Legend:

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

    r7335 r7336  
    1111        var filters = { 
    1212                "Slashdot.jp - Slash Ad" : function(f) { 
    13                         if (f.channel.link.indexOf('//slashdot.jp/') == -1) return; 
     13                        if (f.channel.link.indexOf('//slashdot.jp/') === -1) return; 
    1414 
    15                         filter(f.items, function(i) { return i.link.indexOf("?a=") == -1 }); 
     15                        filter(f.items, function(i) { return i.link.indexOf("?a=") === -1 }); 
    1616                }, 
    1717                "Userscripts.org - Trim Spam" : function(f) { 
    18                         if (f.channel.link.indexOf('//userscripts.org/') == -1) return; 
     18                        if (f.channel.link.indexOf('//userscripts.org/') === -1) return; 
    1919 
    20                         filter(f.items, function(i) { return i.title.toLowerCase().indexOf("scrap") == -1 }); 
     20                        filter(f.items, function(i) { return i.title.toLowerCase().indexOf("scrap") === -1 }); 
    2121                }, 
    2222                "National Geographic News - Enlarge Photo" : function(f) { 
    23                         if (f.channel.link.indexOf('//news.nationalgeographic.com') == -1) return; 
     23                        if (f.channel.link.indexOf('//news.nationalgeographic.com') === -1) return; 
    2424 
    2525                        var RE_THMB = new RegExp('(<img[^>]+http://news\\.nationalgeographic\\.com/news/images/thumbs/(.*?)_60x40\\.jpg[^>]+>)'); 
     
    2929                }, 
    3030                "It's Knuttz - Fix Link" : function(f) { 
    31                         if (f.channel.link.indexOf('//knuttz.net') == -1) return; 
     31                        if (f.channel.link.indexOf('//knuttz.net') === -1) return; 
    3232 
    3333                        var RE = new RegExp('href="([^"]+?)".*Click Here');