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 για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==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);
}