1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// ==UserScript==
// @name         Plurk EmoIcon Filter
// @namespace    http://tampermonkey.net/
// @version      0.1
// @require      https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @require      https://gist.github.com/raw/2625891/waitForKeyElements.js
// @match        https://www.plurk.com/*
// @icon         https://www.google.com/s2/favicons?domain=plurk.com
// @grant       GM_addStyle
// @grant       GM.getValue
// ==/UserScript==

var hide_icons = new RegExp([
    'https://emos.plurk.com/fca5921d1ece8edd0a94766a14f2b454_w48_h48.gif',
    //'https://emos.plurk.com/0a4b22f0c7d674c2ff0a035156b2f4eb_w48_h48.png',
].join("|"));

waitForKeyElements(".plurk", hideBlacklistedIcons);

function hideBlacklistedIcons(plurk)
{
    var holder = plurk.find(".text_holder");
    var emoticon = holder.find(".emoticon_my");
    if (emoticon.length && hide_icons.test(emoticon.attr('src')))
    {
        emoticon.hide();
    }
}