您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Stop That Rickroll!
// ==UserScript== // @name NoMoRickRoll // @namespace www.StuffBySpencer.com // @version 0.3 // @description Stop That Rickroll! // @author StuffBySpencer // @include https://www.reddit.com/* // @grant none // ==/UserScript== (function() { 'use strict'; var linkList = document.getElementsByTagName( 'a' ); for( var i = 0; i < linkList.length; i++ ){ var link = linkList[ i ].href.toString(); if( link.indexOf( 'dQw4w9WgXcQ' ) > -1 || link.indexOf( 'X9NOzYMLfmM' ) > -1 || link.indexOf( '6_b7RDuLwcI' ) > -1 || link.indexOf( 'm2ATf01v4hw' ) > -1 || link.indexOf( 'IC5YozmvPpM' ) > -1 || link.indexOf( 'IAISUDbjXj0' ) > -1 || link.indexOf( 'rZRb_JeBLus' ) > -1 || link.indexOf( '9NcPvmk4vfo' ) > -1 || link.indexOf( 'VzuDnbjIhbg' ) > -1 || link.indexOf( 'DLzxrzFCyOs' ) > -1 || link.indexOf( 'dQw4w9WgXcT' ) > -1 || link.indexOf( 'dQw4w9WgXcQ' ) > -1 || link.indexOf( 'dQw4w9WgXcR' ) > -1 ){ linkList[ i ].innerHTML = linkList[ i ].innerHTML + '<p style="background-color: #333; color: #eee; font-weight: bold; font-size: 1.23em; font-style: italic; display: inline;" >!POSSIBLE RICKROLL!</p>'; }else if( link.indexOf( 'TMjyJfqOlbI' ) > -1 ){ linkList[ i ].innerHTML = linkList[ i ].innerHTML + '<p style="background-color: #eee; color: #333; font-weight: bold; font-size: 1.23em; font-style: italic; display: inline;" >!POSSIBLE DANK RICKETY-ROLLER!</p>'; }else if( link.indexOf( 'S65ykNd9D7c' ) > -1 ){ linkList[ i ].innerHTML = linkList[ i ].innerHTML + '<p style="background-color: #eee; color: #333; font-weight: bold; font-size: 1.23em; font-style: italic; display: inline;" >!POSSIBLE RICKROLL! [ but a live one ]</p>'; } } })();