您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Change the colour of the 'Reported' text for torrents reported for trumpable/dupe to the Trumpable colour
// ==UserScript== // @name PTP Reported trumpable/dupe to yellow // @version 0.1 // @description Change the colour of the 'Reported' text for torrents reported for trumpable/dupe to the Trumpable colour // @author Chameleon // @include http*://passthepopcorn.me/torrents.php?id=* // @grant none // @namespace https://greasyfork.org/users/87476 // ==/UserScript== (function() { 'use strict'; var reported=document.getElementsByClassName('torrent-info__reported'); for(var i=0; i<reported.length; i++) { var r=reported[i]; var id=r.parentNode.parentNode.parentNode.id.split('header_')[1]; var report=document.getElementById('reported_'+id); if(report.textContent.indexOf("Trumpable") != -1 || report.textContent.indexOf("Dupe") != -1) r.setAttribute('class', 'torrent-info__trumpable'); } })();