// ==UserScript== // @name Bypass Pahe Links // @namespace https://naeembolchhi.github.io/ // @version 0.70 // @description Simplify link jumping on pahe ad websites. // @author NaeemBolchhi // @match http*://teknoasian.com/* // @match http*://intercelestial.com/* // @match http*://linegee.net/* // @match http*://spacetica.com/* // @match http*://pahe.plus/* // @match http*://oii.la/* // @match http*://uii.io/* // @match http*://wp2hostt.com/* // @match http*://wordcounter.icu/* // @license GPL-3.0-or-later // @icon data:image/svg+xml;utf8, // @require https://greasyfork.org/scripts/456228/code/456228.js?version=1125944 // @run-at document-body // @grant none // @downloadURL none // ==/UserScript== (function() { 'use strict'; function addStyle(css) { var head, style; head = document.querySelector('head'); if (!head) { window.location.reload(); } style = document.createElement('style'); style.innerHTML = css; head.appendChild(style); } if (window.location.hostname == "spacetica.com") { addStyle(` .btn.btn-primary.btn-xs, a:has(button) { position: fixed; top: 0; left: 0; height: 100%; width: 100%; z-index: 2147483647 !important; opacity: 1 !important; display: flex; align-items: center; justify-content: center; font-size: 4rem; border-radius: 0; } a > button { height: 100%; width: 100%; border-radius: 0; font-size: 10vw; } #backdrop { position: fixed; top: 0; left: 0; height: 100%; width: 100%; z-index: 2147483646 !important; background: black; opacity: 1; } * { overflow: hidden; } `); } else if (window.location.hostname == "intercelestial.com" || window.location.hostname == "linegee.net" || window.location.hostname == "teknoasian.com") { addStyle(` .qc-cmp2-persistent-link { z-index: 0; } #qc-cmp2-container { display: none; } div.wait > center > img { position: fixed; left: 0; top: 0; height: 100%; width: 100%; z-index: 2147483646 !important; background: green; opacity: 1 !important; } #generater > img { display: none; } #generater { position: fixed; height: 100%; width: 50%; z-index: 2147483646 !important; background: red; opacity: 1 !important; } #showlink { position: fixed; height: 100%; width: 50%; z-index: 2147483646 !important; background: blue; opacity: 1 !important; } @media only screen and (orientation: landscape) { #generater { left: 0; } #showlink { right: 0; } #generater, #showlink { top: 0; height: 100%; width: 50%; } } @media only screen and (orientation: portrait) { #generater { top: 0; } #showlink { bottom: 0; } #generater, #showlink { left: 0; height: 50%; width: 100%; } } #backdrop { position: fixed; top: 0; left: 0; height: 100%; width: 100%; z-index: 2147483645 !important; background: black; opacity: 1; } #soralink-human-verif-main-cxxd { display: none; } * { overflow: hidden; } `); } else if (window.location.hostname == "oii.la") { addStyle(` * { overflow: hidden !important; } html, body { height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; background: darkseagreen; } body > *:not(form) { display: none; } form + div { display: unset; } body > a.get-link { position: fixed; height: 100% !important; width: 100% !important; z-index: 2147483646 !important; background: forestgreen; opacity: 1 !important; left: 0; top: 0; border-radius: 0 !important; display: flex; align-items: center; justify-content: center; border: 0 !important; font-size: calc((5svh + 5svw) / 2); } body > a.get-link:hover, body > a.get-link:focus { background: forestgreen; } `); } else if (window.location.hostname == "wp2hostt.com" || window.location.hostname == "wordcounter.icu") { addStyle(` * { overflow: hidden !important; } html, body { height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; background: black; } button#getlink, #invisibleCaptchaShortlink, a.get-link[href]:not(.disabled) { position: fixed; height: 100% !important; width: 100% !important; /*width: 50%;*/ z-index: 2147483646 !important; background: darkslateblue; opacity: 1 !important; left: 0; top: 0; border-radius: 0 !important; display: flex; align-items: center; justify-content: center; border: 0 !important; font-size: calc((5svh + 5svw) / 2); } a.get-link[href]:not(.disabled) { background: forestgreen; } #backdrop { position: fixed; top: 0; left: 0; height: 100%; width: 100%; z-index: 2147483645 !important; background: black; opacity: 1; } `); } const makeZERO = "data:image/svg+xml;utf8,"; let oneClick = false, oneClick2 = false; setInterval(function() { delayButtons(); try { document.querySelector("#soralink-human-verif-main").src = makeZERO; } catch {} try { document.querySelector("#showlink").src = makeZERO; } catch {} try { if (oneClick === true) {return;} document.querySelector('.btn.btn-primary.btn-xs').click(); oneClick = true; } catch {} try { if (oneClick2 === true) {return;} document.querySelector('a > button').parentNode.click(); oneClick2 = true; } catch {} }, 20); try { let element; element = document.createElement("div"); element.id = "backdrop"; document.body.appendChild(element); } catch {} function delayButtons() { let countDown = document.querySelectorAll('center span[id^="_"]'), generater = document.querySelector('#generater'), showlink = document.querySelector('#showlink'); try { if (countDown[0].innerText.match('0 Seconds')) { generater.classList.add('ready'); } } catch {} try { if (countDown[1].innerText.match('0 Seconds')) { showlink.classList.add('ready'); } } catch {} } function fixAdblockBackdrop() { let backdrop = document.getElementById('backdrop'); let backA = backdrop.attributes; for (let x = 0; x < backA.length; x++) { if (backA[x].name !== 'id') { backdrop.removeAttribute(backA[x].name); } } } function clickLinks() { if (window.doneClick !== true) { if (window.location.origin.match(/pahe\.plus/) || window.location.origin.match(/oii\.la/)) { let linkbtn = document.querySelector('.get-link:not(.disabled)'); window.location.assign(linkbtn.href); window.doneClick = true; } else if (window.location.origin.match(/wp2hostt\.com/)) { let linkbtn = document.querySelector('button#getlink'); linkbtn.click(); window.doneClick = true; } } if (window.location.origin.match(/wordcounter\.icu/) && document.readyState === 'complete') { if (document.querySelector('#invisibleCaptchaShortlink') && window.doneClick1 !== true) { document.querySelector('#invisibleCaptchaShortlink').click(); window.doneClick1 = true; } if (document.querySelector('a.get-link[href]:not(.disabled)') && window.doneClick2 !== true) { window.location.assign(document.querySelector('a.get-link[href]:not(.disabled)').href); window.doneClick2 = true; } } } function pullButton() { // Bring the captcha/link to the foreground if (window.location.hostname !== "oii.la") {return;} try { let formX = document.querySelector('form:not(.td-search-form):not(.go-link)'); if (formX.getAttribute('moved') !== 'true') { document.body.appendChild(formX); formX.setAttribute('moved','true'); formX.querySelector('button').removeAttribute('onclick'); formX.querySelector('button').removeAttribute('disabled'); } } catch {} try { let linkX = document.querySelector('a.get-link[href]:not(.disabled)'); if (linkX.getAttribute('moved') !== 'true') { document.body.appendChild(linkX); linkX.setAttribute('moved','true'); linkX.removeAttribute('onclick'); linkX.removeAttribute('disabled'); } } catch {} } function clearOnclick() { // Remove onclick ads let onAds = document.querySelectorAll('*[onclick*="window.open"]'); for (let x = 0; x < onAds.length; x++) { onAds[x].removeAttribute('onclick'); } } setInterval(function() { try{clickLinks();} catch {} try{fixAdblockBackdrop();} catch {} try{pullButton();} catch {} try{clearOnclick();} catch {} }, 10); })();