Changeset 19209

Show
Ignore:
Timestamp:
09/12/08 11:54:21 (5 years ago)
Author:
drry
Message:
  • fixed 2 filters.
    • "FeedBurner? - Unburn, raw feeds" was renamed "FeedBurner? - Extinguish burning feeds"
    • "Ref RSS - True permalink" - source=rss
Files:
1 modified

Legend:

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

    r19094 r19209  
    2222with (this.unsafeWindow || this) { 
    2323        const filters = { 
    24                 "FeedBurner - Unburn, raw feeds" : function(f) { 
     24                "FeedBurner - Extinguish burning feeds" : function(f) { 
    2525                        var re = /<a(?: [^>]+?)? href="[ \t\r\n]*http:\/\/[^\/]+\/~\w\/[^>]+>[\s\S]+?<\/a>|<img(?: [^>]+?)? src="[ \t\r\n]*http:\/\/[^\/]+\/~\w\/[^>]+>(?:<\/img>)?/g; 
    2626                        if (! /^http:\/\/feed(?:s\.feedburner\.(?:com|jp)|proxy\.google\.com)\//.test(f.channel.feedlink) && 
     
    2929                                re.test(f.items[0].body)))) return; 
    3030 
    31                         //filter(f.items, function(i) { return i.body.replace(/[^?]+/g, "").length < i.body.length / 10 }); 
     31                        filter(f.items, function(i) { return i.body.replace(/[^?]+/g, "").length < i.body.length / 10 }); 
    3232                        foreach(f.items, function(i) { 
    3333                                i.body = i.body.replace(re, ""); 
     
    177177                }, 
    178178                "Ref RSS - True permalink" : function(f) { // based on Plagger assets/plugins/Filter-TruePermalink/refrss.yaml 
    179                         var re1 = /(?:(?:FM|fr(?:om)?|r(?:ef)?|track)=(?:atom|rdf|(?:news)?rss(?:all)?|ranking)|inb=rs|CMP=OTC-[A-Z0-9]{12}|(?:rss_fdn|feedType=RSS&feedName)=[^=]*?)(?:&(?:amp;)?|;)?|\?(?:atom|rss(?:all)?)/g; 
     179                        var re1 = /(?:(?:FM|fr(?:om)?|r(?:ef)?|source|track)=(?:atom|rdf|(?:news)?rss(?:all)?|ranking)|inb=rs|CMP=OTC-[A-Z0-9]{12}|(?:rss_fdn|feedType=RSS&feedName)=[^=]*?)(?:&(?:amp;)?|;)?|\?(?:atom|rss(?:all)?)/g; 
    180180                        if (! (f.items[0] && re1.test(f.items[0].link))) return; 
    181181