FaK+

Ever wanted to be K+? This adds a K+ on your screen... no private chats... and not on other screens... FUN!!!

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         FaK+
// @namespace    http://alphaoverall.com
// @version      0.1
// @description  Ever wanted to be K+? This adds a K+ on your screen... no private chats... and not on other screens... FUN!!!
// @author       AlphaOverall
// @include      http://www.kongregate.com/games/*/*
// @grant        unsafeWindow
// ==/UserScript==

function init() {
    var checkIfLoaded = setInterval(function(){check()}, 100);
    var i = 100;
    function check(){
        var youser = document.getElementsByClassName("chat_avatar");
        if (youser.length != 0){clearInterval(checkIfLoaded);setTimeout(kplus, 800);}
        else { i--;}
        if (i<=0) { console.log("Chat not found!");clearInterval(checkIfLoaded);}
    }
    holodeck.addChatCommand("kplus", function(l,n){
        check();
        return false;
    });
    function kplus() {
        var windows = document.getElementsByClassName("chat_room_template");
        var you = [];
        for (var j=0; j<windows.length; j++){
            if (!windows[j].style.display){
                you = windows[j].getElementsByClassName("user_row")[0];
            }
        }
        var kicon = document.createElement("span");
        kicon.className = "spritesite premium_icon clickable";
        kicon.title = "Kongregate Plus";
        kicon.innerText = "Kongregate Plus";
        you.insertBefore(kicon, you.childNodes[you.childNodes.length - 2]);
        holodeck._active_dialogue.kongBotMessage("You are now a Pseudo Premium Kongregate user! If not, or you want more K+, use the /kplus command...")
    }
}

setTimeout(init, 1000);