From ee11aa91b210086e521205182eddee7a1772fd4a Mon Sep 17 00:00:00 2001 From: timmyRS Date: Sun, 27 May 2018 18:39:13 +0200 Subject: [PATCH] 2.8 (fixes #5) --- bypasses/general.js | 38 +++++++++++++++++++++++++++++++++++++- manifest.json | 2 +- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/bypasses/general.js b/bypasses/general.js index d72347e..bcb458f 100644 --- a/bypasses/general.js +++ b/bypasses/general.js @@ -158,8 +158,44 @@ Object.defineProperty(window, "ysmm", } return; } + // GemPixel Premium URL Shortener + if(typeof appurl != "undefined" && typeof token != "undefined") + { + let scripts = document.getElementsByTagName("script"); + for(let i in scripts) + { + let script = scripts[i]; + if(script instanceof HTMLScriptElement) + { + let scriptCont = script.textContent; + if(scriptCont.indexOf('clearInterval(countdown);') > -1) + { + if(typeof countdown != "undefined") + { + clearInterval(countdown); + } + if(document.querySelectorAll("a.redirect").length == 0) + { + let a = document.createElement("a"); + a.href = "#"; + a.className = "redirect"; + document.body.appendChild(a); + } + scriptCont = scriptCont.substr(scriptCont.split(";")[0].length + 1); + window._setInterval = window.setInterval; + window.setInterval = function(func) + { + func(); + } + eval("var count=0;" + scriptCont); + window.setInterval = window._setInterval; + document.querySelectorAll("a.redirect")[0].click(); + } + } + } + } // Shorte.st - if(typeof app !== "undefined" && "options" in app && "intermediate" in app.options) + if(typeof app != "undefined" && "options" in app && "intermediate" in app.options) { app.options.intermediate.timeToWait = 2; let btn = document.getElementById(app.options.intermediate.skipButtonId), diff --git a/manifest.json b/manifest.json index d230d39..f05f68f 100644 --- a/manifest.json +++ b/manifest.json @@ -9,7 +9,7 @@ "name": "__MSG_appName__", "description": "__MSG_appDesc__", "homepage_url": "https://universal-bypass.org/", - "version": "2.7.1", + "version": "2.8", "author": "timmyRS", "minimum_chrome_version": "41", "options_page": "html/options.html",