// ==UserScript== // @name Tumblr Overquote Trimmer // @namespace the.vindicar.scripts // @description Hides excessive nested quotes that keep breaking your dashboard. // @version 1.1.0 // @include http://www.tumblr.com/dashboard // @include http://www.tumblr.com/dashboard/* // @include http://www.tumblr.com/show/* // @include http://www.tumblr.com/blog/* // @include https://www.tumblr.com/dashboard // @include https://www.tumblr.com/dashboard/* // @include https://www.tumblr.com/show/* // @include https://www.tumblr.com/blog/* // @grant unsafeWindow // @downloadURL https://update.greasyfork.icu/scripts/2500/Tumblr%20Overquote%20Trimmer.user.js // @updateURL https://update.greasyfork.icu/scripts/2500/Tumblr%20Overquote%20Trimmer.meta.js // ==/UserScript== (function(){ if ((typeof unsafeWindow.Tumblr === 'undefined') || (typeof unsafeWindow.jQuery === 'undefined')) return; function RunInPage(func) { var s = document.createElement("script"); s.textContent = "(" + func + ")();"; document.body.appendChild(s); setTimeout(function(){document.body.removeChild(s)}, 0); } RunInPage(function(){ //how many levels of quotes should be shown by default var QUOTESALLOWED = 3; //placeholder for hidden quotes var PLACEHOLDER = '
%QUOTES% more quote(s). '+ 'Click here'+ ' to show.