您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Change some words to fruits because why not
- // ==UserScript==
- // @name UselessScript#1
- // @namespace www.google.com
- // @description Change some words to fruits because why not
- // @include http://rateyourmusic.com/boards*
- // @include http://rateyourmusic.com/board_message*
- // @include https://rateyourmusic.com/boards*
- // @include https://rateyourmusic.com/board_message*
- // @require http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js
- // @version 1
- // @grant none
- // ==/UserScript==
- // WARNING: EXTREMELY BUGGY! UTMOST CAUTION REQUIRED!
- $('.mbgen td').each(function() {
- var cellText = $(this).html();
- var mapObj = {
- //If you want to add words, just put it inside here in this format <word you want replaced>:"<word replacement>"
- //ex: objective:"mango"
- //Oh yeah, don't forget to add a comma unless it's the last line(hope you got that)
- objective:"mango",
- subjective:"pineapple"
- };
- cellText = cellText.replace(/objective|subjective/gi, function(matched){
- return mapObj[matched];
- });
- $(this).html(cellText);
- });