Greasy Fork

Greasy Fork is available in English.

RARBG Porn Remover

Permanently removes pornography torrents for those of you who would rather not see it.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         RARBG Porn Remover
// @version      1.0
// @description  Permanently removes pornography torrents for those of you who would rather not see it.
// @author       Adam J Frost
// @license      MIT
// @include      /(https?:)?\/\/(www\.)?(proxy|unblocked)?rarbg((2018|2019|2020|2021)?|access(ed)?|cdn|core|data|enter|get|go|index|mirror(ed)?|p2p|prox(ied|ies|y)|prx|to(r|rrents)?|unblock(ed)?|way|web)\.(to|com|org|is)\/((index\d{2}|torrents)\.php.*|torrent|catalog\/.*|s\/.*|tv\/.*|top10)/
// @grant        none
// @run-at       document-idle
// @namespace http://greasyfork.icu/users/662702
// ==/UserScript==

// Removes the xxx (18+) tag from search dropdown box.
let pornSearchTag = document.querySelector('[href="/torrents.php?category[]=4"]');
if (pornSearchTag) {
	pornSearchTag.parentElement.remove();
}

// Removes all porn elements from the search results.
let pornElements = document.querySelectorAll('[href="/torrents.php?category=4"]');
for (let i = 0; i < pornElements.length; i++) {
	let allPornElements = pornElements[i];
  
  if (pornElements) {
    allPornElements.parentElement.parentElement.remove();
    console.log(pornElements.length + " Porn Torrents Found! Removing...");
  }
}