Changeset 24344 for lang/javascript
- Timestamp:
- 11/19/08 23:27:11 (5 years ago)
- Files:
-
- 1 modified
-
lang/javascript/userscripts/ldrprefav.user.js (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/userscripts/ldrprefav.user.js
r21684 r24344 17 17 /* Resolve TinyURL */ | 1 << 6 18 18 /* Resolve RSS Suite */ | 1 << 7 19 /* Resolve @cosme */ | 1 << 8 19 20 ; 20 21 … … 78 79 }); 79 80 }, 81 "@cosme - Cleansing cream" : function(f) { 82 if ((PREFILTER & 1 << 8) < 1 || 83 f.channel.feedlink != "http://www.cosme.net/rss/news.php") return; 84 85 foreach(f.items, function(i) { 86 var link = i.link; 87 if (! truePermalinks[link]) return; 88 i.link = truePermalinks[link]; 89 delete truePermalinks[link]; 90 }); 91 }, 80 92 "Seesaa BLOG - Remove ads" : function(f) { 81 93 if (! /^http:\/\/[^.]+\.seesaa\.net\//.test(f.channel.link)) return; … … 219 231 }); 220 232 }, 221 "Remove bodies same as its title" : function(f) { 233 "Wassr - Remove insistent username prefixes" : function(f) { 234 if (f.channel.feedlink.indexOf("http://api.wassr.jp/user_timeline.rss?") != 0) return; 235 236 var re = /^\S+ : /; 237 if (! f.items[0] || ! re.test(f.items[0].title)) return; 238 239 foreach(f.items, function(i) { i.title = i.title.replace(re, ""); }); 240 }, 241 "Remove bodies same as its title and linkify HTTP URLs" : function(f) { 222 242 var re = /https?:\/\/[-\w!#$%&'()*+,.\/:;=?@~]+/g; 223 243 foreach(f.items, function(i) { … … 233 253 if (f.channel.feedlink.indexOf("http://twitter.com/statuses/user_timeline/") != 0) return; 234 254 235 var re = /^ \w+:/;255 var re = /^[^:]+: /; 236 256 if (! f.items[0] || ! re.test(f.items[0].title)) return; 237 257 … … 293 313 }); 294 314 }, 295 "RSS Suite - Resolve " : function(f) {315 "RSS Suite - Resolve permalink" : function(f) { 296 316 var re = /\/item_\d+_\d+_\d+\.html$/; 297 317 if ((PREFILTER & 1 << 7) < 1 || … … 300 320 301 321 foreach(f.items, function(i) { re.test(i.link) && resolvePermalink(i.link); }); 322 }, 323 "@cosme - Resolve permalink" : function(f) { 324 if ((PREFILTER & 1 << 8) < 1 || 325 f.channel.feedlink != "http://www.cosme.net/rss/news.php") return; 326 327 foreach(f.items, function(i) { resolvePermalink(i.link); }); 302 328 }, 303 329 "TinyURL - Resolve" : function(f) {
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)