Guest User

feedly_cleantitlekiller.user.js

a guest
Jun 21st, 2014
3,871
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name    Feedly - Kill UpperCaseTitle
  3. // @include http://cloud.feedly.com/*
  4. // @include https://cloud.feedly.com/*
  5. // @include http://feedly.com/*
  6. // @include https://feedly.com/*
  7. // ==/UserScript==
  8. (function() {
  9.     function evalInPage(fun) {
  10.         location.href = "javascript:void (" + fun + ")()";
  11.     }
  12.     evalInPage(function () {
  13.         devhd.utils.StringUtils.cleanTitle = function(g){
  14.             if (g == null) {
  15.                 return g
  16.             }
  17.             g = devhd.str.stripTags(g);
  18.             var f = g.replace(/#[0-9]* -/i, "");
  19.             f = devhd.utils.StringUtils.trim(f);
  20.             return f.length < g.length / 3 || f.length < 5 ? devhd.str.stripTags(g) : f
  21.         };
  22.     });
  23. })();
Advertisement
Add Comment
Please, Sign In to add comment