Pandabutt

Is this what my life has become?

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

You will need to install an extension such as Tampermonkey to install this script.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name         Pandabutt
// @version      0.10
// @description  Is this what my life has become?
// @author       Tjololo
// @match        http://mturkforum.com/*
// @match        http://www.mturkgrind.com/*
// @require      http://code.jquery.com/jquery-git.js
// @namespace https://greasyfork.org/users/710
// ==/UserScript==

$("div.postbody").each(function() { replaceText($(this)); });

$("div.messageContent").each(function() { replaceText($(this)); });

function replaceText(item) {
    var oldtext = item.html();
    var newtext = oldtext.replace(/(images\/)?butt/g, function($0,$1){ return $1?$0:"PLACEHOLDER";});
    newtext = newtext.replace(/panda/g, "butt");
    newtext = newtext.replace(/PLACEHOLDERon/g, "button");
    newtext = newtext.replace(/PLACEHOLDER/g, "panda");
    newtext = newtext.replace(/body/g, "pony");
    newtext = newtext.replace(/people/g, "ponies");
    newtext = newtext.replace(/person/g, "pony");
    newtext = newtext.replace(/hands/g, "hooves");
    newtext = newtext.replace(/hand/g, "hoof");
    newtext = newtext.replace(/foot/g, "hoof");
    newtext = newtext.replace(/feet/g, "hooves");
    newtext = newtext.replace(/hair/g, "mane");
    newtext = newtext.replace(/([\.\/-])?mturk/g, function($0,$1){ return $1?$0:"equestria";});
    newtext = newtext.replace(/tj(ol)*o?/ig, "The Sexy Pony Overlord");
    item.html(newtext);
}