Kongregate Game Reload Button

Reload only game frame, keep the chat

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name		Kongregate Game Reload Button
// @name:id 	Kongregate Game Reload Button
// @namespace	http://g.hol.es/
// @version		0.1.03
// @description	Reload only game frame, keep the chat
// @description:id	Tambahan tombol reload di frame game, chatnya ga ilang
// @author		Ipakerok 46
// @include		http*://*konggames.com/*/*/*
// @include		http*://*?*kongregate_game_auth_token=*
// @supportURL	mailto:[email protected]
// @grant		none
// ==/UserScript==

(function() {
	'use strict';

	// reload button
	var reloadButton = function(){
		var panel = document.createElement('div');
		var button = document.createElement('button');
		button.innerHTML  = "Reload";
		panel.setAttribute('style', "position:fixed;bottom:0px;right:0px;padding:0px;opacity:0.4;z-index:99999;");
		button.setAttribute('style', "background:#6783b4;color:#fff;padding:1px;border:solid 1px;font-size:7px");
		panel.appendChild(button);
		button.onclick = e=>{
            window.location=window.location;
        };
		button.onmouseover = e=>{
            e.target.parentNode.style.opacity=1;
        };
		button.onmouseleave = e=>{
            e.target.parentNode.style.opacity=0.4;
        };
		document.body.appendChild(panel);
	};


    var style = document.createElement('style');
    style.innerHTML = '';
    style.innerHTML += 'body, html{pointer-events:unset !important;} ';
    document.body.appendChild(style);

	reloadButton();

})();