Funnyjunk Anti Smiley

Replace emoticons on Funnyjunk with the text variants.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name           Funnyjunk Anti Smiley
// @description    Replace emoticons on Funnyjunk with the text variants.
// @author         posttwo <http://www.funnyjunk.com/user/posttwo> (Post15951 <http://userscripts.org/users/512342>)
// @author         irvea <http://www.funnyjunk.com/user/irvea> (1RV34 <http://userscripts.org/users/517347>)
// @include        http://funnyjunk.com/*
// @include        http://www.funnyjunk.com/*
// @require        http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js
// @version        3
// @namespace https://greasyfork.org/users/3806
// ==/UserScript==
 
$(document).ready(function ()
{
        setTimeout(bigFatPosttwo, 2500);
        remove_smiles();
});
 
function bigFatPosttwo()
{
        var originalFn = unsafeWindow.refreshCollapsibleComments;
 
        unsafeWindow.refreshCollapsibleComments = function ()
        {
                originalFn(); // call the original function
                remove_smiles();
        };
}
 
function remove_smiles()
{
        $("span[class='emoticon emoticon-angry']").replaceWith("<span>:angry:</span>");
        $("span[class='emoticon emoticon-arrogant']").replaceWith("<span>:arrogant:</span>");
        $("span[class='emoticon emoticon-at-wits-end']").replaceWith("<span>:at-wits-end:</span>");
        $("span[class='emoticon emoticon-big_grin']").replaceWith("<span>:D</span>");
        $("span[class='emoticon emoticon-blushing']").replaceWith("<span>:$</span>");
        $("span[class='emoticon emoticon-broken_heart']").replaceWith("<span>&lt;/3</span>");
        $("span[class='emoticon emoticon-bulgy-eyes']").replaceWith("<span>:bulgy-eyes:</span>");
        $("span[class='emoticon emoticon-clap']").replaceWith("<span>:clap:</span>");
        $("span[class='emoticon emoticon-confused']").replaceWith("<span>:S</span>");
        $("span[class='emoticon emoticon-curse']").replaceWith("<span>:curse:</span>");
        $("span[class='emoticon emoticon-disappointed']").replaceWith("<span>:disappointed:</span>");
        $("span[class='emoticon emoticon-freaked-out']").replaceWith("<span>:freaked-out:</span>");
        $("span[class='emoticon emoticon-kiss']").replaceWith("<span>:*</span>");
        $("span[class='emoticon emoticon-love']").replaceWith("<span>&lt;3</span>");
        $("span[class='emoticon emoticon-pissed-off']").replaceWith("<span>:pissed-off:</span>");
        $("span[class='emoticon emoticon-question']").replaceWith("<span>:?</span>");
        $("span[class='emoticon emoticon-sad']").replaceWith("<span>:(</span>");
        $("span[class='emoticon emoticon-smile']").replaceWith("<span>:)</span>");
        $("span[class='emoticon emoticon-surprise']").replaceWith("<span>:o</span>");;
        $("span[class='emoticon emoticon-tongue']").replaceWith("<span>:P</span>");
}
 
//remove_smiles();
 
//$(document).keydown(function(e)
//{
//if (e.keyCode == 82) {
//setTimeout(remove_smiles,1000)
//}
//});