Customize PirateBay (FireFox GreaseMonkey script)
- Type:
- Other > Other
- Files:
- 1
- Size:
- 1.97 KiB (2022 Bytes)
- Uploaded:
- 2007-02-05 10:16:03 GMT
- By:
- Mmx64
- Seeders:
- 0
- Leechers:
- 1
- Comments
- 2
- Info Hash: 5B2AD184EA1175308F39BB5C9246EFB81CB0D626
(Problems with magnets links are fixed by upgrading your torrent client!)
This script allows you to hide categories and unwanted content from the recent list on piratebayproxy.live. You can edit the scrip to suit your needs. Requires: FireFox - https://www.mozilla.com/en-US/firefox/ GreaseMonkey - https://addons.mozilla.org/firefox/748/ Here is the full script if you don't want to download the torrent: ------------------------------------------------------------------------ // ==UserScript== // @name Customize Pirate Bay Recent List 1.0 // @namespace https://piratebayproxy.live/customize // @description Allows you to hide unwanted categories & listings on piratebayproxy.live recent list. // @include https://piratebayproxy.live/recent* // ==/UserScript== // ---------------------------------- // BEGIN USER EDIT // ---------------------------------- // // Fill the arrays with categories & // words you do not want to list. // // Examples: // // var unwanted_categories = new Array( "501" , "502" , "503" , "504" , "599" ); // var unwanted_titles = new Array( "porn" , "sex" ); // var unwanted_categories = new Array( ); var unwanted_titles = new Array( ); // ---------------------------------- // END USER EDIT // ---------------------------------- var allItems = document.evaluate("//a[@title='More from this category']", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); for (var i = 0; i < allItems.snapshotLength; i++) { var cat = allItems.snapshotItem(i).getAttribute("href"); var ok = true; for (itm in unwanted_categories) { if( unwanted_categories[itm] != "" ) { if( cat.indexOf(unwanted_categories[itm]) != -1 ) ok = false; } } if( ok == false ) { var td = allItems.snapshotItem(i).parentNode; var tr = td.parentNode; tr.parentNode.removeChild(tr); } } var allItems = document.evaluate("//a[starts-with(@title, 'Details for')]", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); for (var i = 0; i < allItems.snapshotLength; i++) { var name = allItems.snapshotItem(i).getAttribute("href"); name = name.toLowerCase(); var ok = true; for (itm in unwanted_titles) { if( unwanted_titles[itm] != "" ) { if( name.indexOf(unwanted_titles[itm].toLowerCase()) != -1 ) ok = false; } } if( ok == false ) { var td = allItems.snapshotItem(i).parentNode; var tr = td.parentNode; tr.parentNode.removeChild(tr); } }
File list not available. |
Why would one want to do this, you already get the choice of hiding the porno stuff!!
He's just used the keywords sex and porn because they're easy to identify. You could use any keywords you wanted.
Comments