AnIppo

Internet positif is fuckin annoying

  1. // ==UserScript==
  2. // @name AnIppo
  3. // @namespace none
  4. // @version 0.3
  5. // @description Internet positif is fuckin annoying
  6. // @author Chezt
  7. // @connect *
  8. // @grant none
  9. // @match *://*/*
  10. // ==/UserScript==
  11.  
  12. if(window.location.hostname == "internetpositif.uzone.id") {
  13. if(document.referrer !== null) {
  14. history.replaceState(null, null, "http://" + window.location.hostname + "#RealUrl=" + document.referrer);
  15. document.title = "Inet positip embe :/";
  16.  
  17. var body = document.body;
  18. var text = "Inetpositip berulah, </br> gunain proxy gih </br> ini link aslinya </br> <h3> <a href='" + document.referrer +"'>" + document.referrer + "</a> </h3>";
  19.  
  20. if(body === null) {
  21. document.createElement("body").innerHTML = text;
  22. } else {
  23. body.innerHTML = text;
  24. }
  25. }
  26. }
  27.  
  28. (function() {
  29. 'use strict';
  30. var _checkTryAnipoLimit = 10; // Limit Try
  31. var _checkTryAnipoSpeed = 500; // value / 1000 = detik
  32. var _checkTryAnipoA = 0;
  33. var _checkTryAnipoB = 0;
  34. var cfs_script;
  35. function inetPositifEmbe() {
  36. if(typeof cfs_closed === "undefined") {
  37. return;
  38. }
  39. var _instifBody = document.body;
  40. var _instifCfs = document.getElementById("cfs_top_div");
  41. var _asli = document.getElementById("cfs_div_2");
  42. if(_instifCfs !== null)
  43. _instifCfs.remove();
  44. if(_asli !== null)
  45. _instifBody.innerHTML = _asli.innerHTML;
  46. if(_instifCfs !== null && _asli !== null) {
  47. _instifCfs.remove();
  48. _instifBody.innerHTML = _asli.innerHTML;
  49. return;
  50. }
  51.  
  52.  
  53. return setTimeout(_checkVarInetPositif, _checkTryAnipoSpeed / 2);
  54. }
  55. document.onreadystatechange = function () {
  56. if(document.readyState === 'complete') {
  57. return setTimeout(_checkVarInetPositif, _checkTryAnipoSpeed, true);
  58. }
  59. };
  60. // cek jika asyc inetpositip udah kelar
  61. function _checkVarInetPositif(isReady) {
  62. isReady = typeof isReady !== 'undefined' ? isReady : false; // Gak bisa ES6 :(
  63. cfs_script = null;
  64. if(typeof cfs_closed !== "undefined") {
  65. cfs_script = null;
  66. cfs_script_r = null;
  67. cfs_closed = 0;
  68. inetPositifEmbe(); // Cek jika sudah terlanjur ke inject :<
  69. return;
  70. }
  71. if(!isReady) {
  72. _checkTryAnipoB++;
  73. if(_checkTryAnipoB > _checkTryAnipoLimit)
  74. return;
  75. } else{
  76. _checkTryAnipoA++;
  77. if(_checkTryAnipoA > _checkTryAnipoLimit)
  78. return;
  79. }
  80. return setTimeout(_checkVarInetPositif, _checkTryAnipoSpeed);
  81. }
  82. _checkVarInetPositif();
  83. // Coba cek cepet jika variable sudah ada maka override
  84. cfs_script = (function() {
  85. if(typeof cfs_closed !== "undefined")
  86. GM_log("ffs spidol stop inject ur fuckin ads");
  87. })();
  88. })();