NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name tpb // @namespace http://tampermonkey.net/ // @version 1.618 // @description tpb customizer // @author me // @match https://thepiratebay.org/* // @updateURL https://openuserjs.org/meta/negger/tpb.meta.js // @require https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js // @grant none // @include https://thepiratebay.org/* // ==/UserScript== (function() { 'use strict'; var magnet = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAID0lEQVRYha2Wa3BU5R3G/+EWRCSQbJLp+KEydZy2H5x2Olphakdbp2K9MDqoUMBL0MQQgjYkoQjSUCCQqHUMUFvUqVpmqLGhVRSSiAhIAGmMEYiQRpPsbs79nN3N3rLZ3eTXD4kRkmzEaZ+Z/6dznuf5zXvOed8j8i1VW1ub0d7evlzTtFcty3rbsqx/GYbxRmdn52O1tbXZ3zbvcpXmdrvL4/G4xTcokUiEFEWpEpHJ/5fmtra2OxKJZHhwuGAQ6PceIfLJH4mc2kDkxAYizdX0uxsYvAhkEOjs7Cz6n8q9Xu+LA8OBA/0hQocKcHbNxKoU7O2XjlUpOC+mE3z3AZJB7wiE7TgfiEjaty5XVfUfA8Mh0c9ewa4WzC2C/UI6zo5MnB1ZF00mzo5M7BeuwKwcggkfKR8CB4LBcKeITLrs8i+++KIqOWwO1RdirBes6unYL2Re1ljPzcTYIPhfn0cSSAK2bTdfVnlDQ8NPEgPD5e+XoZcLZvVs7GezxhnX8IxzrToTc73gvHIDA0AC6OjoqPym/rRgMGQMAJEL76GXCtbWDKztWZdO5WyMiikY62VoKiZhVc4ee9+2LLQyIfheMUkgnhxkzZo1rpTtTU1Ny+NAfADMLXPQ10/G3JL19Wyeg1Yu6GWCXfMjfG8uw/fWcuxdN6CXC1q5YGyefaln0yy0EqHPc5ok4PF4DqYE8Pl87gTQ+8FW1GLB2OTCqMjCqMhC35iBWiw4r99Ln9NNYnhZE0AciPVq+P7+MNpqQd9w1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0KgPmDZg1ctqBdwa8N/KNkeMG9KrqVovxIMn2OsncdLJE1TPVQQfG0o2/GvnEgFEAxwDsjjFuEpHVDRJfoaohSRKKyMpG7XHyugGvKy0SA3od+NJoYTNlqn0OjIUQNv85JMBcpgDASQNuMYRuiTFuNPJTVuYErhg5bcCEiIjkcrm1RhZr5qwSkTUi0pY+myYDnjtZdtVCdRDAOgfmHJj5i5swa+RHI4tOXqPqEFUHHDhuQD9Vh0RkWcUjxhgrn2gDLi2gArB+kcEPB2aMfGvApJF3jLzh5HBaI06OELhA4LIBtx144KpXGUIPQ+hxskzVI+n+u2rAR+sl02bAB1ct5PP5LU2K+qerXrQk6ai+WG3s/1pGFh14bMD39Gf0KjNzERFXLdS0tJSpuYiIkeNVgBi3Zw4gImLAPQPuL4m5iAjJ9hjjtiUDaKml/0a/AX5Tpg8jM9l6AAAAAElFTkSuQmCC"; $('iframe').remove(); $('#foot').remove(); $('td.categoriesContainer:nth-child(2) > dl:nth-child(1) > dt:nth-child(3)').remove(); // porn header on browse page $('td.categoriesContainer:nth-child(2) > dl:nth-child(1) > dd:nth-child(3)').remove(); // porn section on browse page $('link[rel="dns-prefetch"]').remove(); $('meta[name="description"]').remove(); $('meta[name="keywords"]').remove(); $('*').css('font-size','10pt').css('letter-spacing','1px'); $('a[title="TV shows"]').first().remove(); $('a[title="Music"]').first().remove(); $('body').css('margin','3px').css('padding','3px').width('99%'); $('div').css('margin','3px').css('padding','3px').width('99%').css('max-width','99%'); $('table').css('margin','3px').css('padding','3px').width('99%').css('max-width','99%'); $('*').css('vertical-align','middle'); $('#searchResult tr:has(a[href="/browse/500"])').remove(); $('#searchResult tr:first').addClass("viptrusted"); $('#searchResult tr:has(img[title="VIP"])').addClass("viptrusted"); $('#searchResult tr:has(img[title="Trusted"])').addClass("viptrusted"); $('#searchResult tr:last').addClass("viptrusted"); $("#searchResult tr").not(".viptrusted").remove(); $('a.detDesc').css('font-weight','bold').css('font-size','11pt'); $('a.detLink').css('font-size','11pt'); $('*').css('font-family','Verdana').css('text-transform','lowercase'); $('#categoriesTable span').css('font-size','13pt').css('margin','1px').css('padding','1px'); $('#categoriesTable dt').css('margin','3px').css('padding','3px'); $('#categoriesTable dd').css('margin','3px').css('padding','3px'); $('.ads').remove(); $('[for="Porn"]').remove(); $('[title="Porn"]').remove(); $('[id^="sky"]').remove(); $('#sky-right').remove(); $('#category > optgroup:nth-child(6)').remove(); $('img[alt="This torrent has a cover image"]').remove(); $('img[src="//thepiratebay.org/static/img/icon_comment.gif"]').remove(); $('img[src="/static/img/11x11p.png"]').remove(); $('img[src="/static/img/dl.gif"]').remove(); $('img[alt="This torrent has a cover image"]').remove(); $('img[alt="Trusted"]').replaceWith('<span style="font-size:x-small;font-weight:bold;color:darkgreen;">TRUSTED</span>'); $('img[alt="VIP"]').replaceWith('<span style="font-size:x-small;font-weight:bold;color:darkpurple;">VIP</span>'); $('img[alt="Magnet link"]').attr('src',magnet); $('img[alt="Previous"]').attr("src",prev_image); $('img[alt="Next"]').attr("src",next_image); $('script').last().remove(); $('script').last().remove(); $('script').last().remove(); $('script').last().remove(); $('footer').remove(); $('#howdl').remove(); $('a[title="Languages"]').remove(); $('#searchResult tr:last a').css('font-size','11pt'); $('*').removeAttr('title'); $('*').unbind(); $('pre').css('font-family','Consolas'); $('div.download:nth-child(1)').height('40px'); $('div.download:nth-child(1) > a:nth-child(1)').css('background-image','url("' + magnet + '")').css('font-size','xx-large'); $('div.download:nth-child(1) > a:nth-child(1)').text('m'); $('div.download').last().remove(); $('#details > div:nth-child(9) > div:nth-child(2)').remove(); $('a').css('color','#221122'); $('script').remove(); })();