// ==UserScript== // @name 12ft Paywall Bypass Script // @namespace http://tampermonkey.net/ // @version 0.8 // @description Bypass paywalls with 12ft.io on right click or floating button // @author sharmanhall // @license MIT // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABIUExURQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKuErJsAAAAXdFJOUwAQIDBAUF9gb3B/gI+Qn6CvsL/P0N/vIiFUiwAABbVJREFUeJztW9m2mzAMNNvlkhR64xT0/3/ac0wIXmZABtqnzFvAWLakkeQl5oMPPvjggw8++OBilFXTtm3b1nVp/jeKtn9O4uH509XmWtT9JALfVLenIExDY66Cky7yTN8UrRWO8fsKa7yki8gjflXcJtnGeDPnsEoXkXv0st0TLyIynnCGQLqIhDYtt5Tv46ASYukiUvnvvzXTn/FTmFwA6RKQoPiRDDzzRoClByQoR8lCxgiY9IAEufJFBqPChnSfBPnyRTqzi23pHgmOyJdpJyTtSl9JUByRv20EjfSVBL/kGCqDoZT+JkErB9Fj+TiTIcwkKPXxJ8KEqShqzCT4zRs8h2GwGw4Ck0IlajgSUANM99cEa6pTaING1HBOxCboh/s7aTOiAfSihtlQQJioWZ5ATqBNqS8SEPVGhUJBHBXFojwS1PhVotsHbgdqxELUuHMKJDMjlmrTAZApITTUBVPvLgUCDKATNSo63NS0RLFgAHkkwK1RlhEIMABEAvsHffyklEEBTiCAE8Z8mfqmwD78AK0dUHghJqi3G062mzMmpOadhe2HSUECfJqQV68a+/odp+DHDfNBVGuRAJ82nEkw2c53ZDz8irEbuQCOF2Bp2YdTn4GHb4zpRgBYcON4Aehy70rwEH0MRs9B4oV2tU5JoAaJ2NrFCSOBGiQQW6MD5nDOZgdRQGt0wAZkNTUAUQCshx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cvc8Eq0Y8/bJceA3YutQbwNRWZZmxd5sHtgUQh9mMc8w8sC2AOJZmnePlwCNs8Dwm0r/yxJgEK6JYdvg8YweMBAmVr/v7TQhWkieB7ur/IC3YKvyCEVzx5x+EzcKvXC/7ao8vrkbZ3PthuLf/LAx9kIu/KxNpLm8PllAAAAABJRU5ErkJggg== // @match *://*/* // @match *://*.adelaidenow.com.au/* // @match *://*.adweek.com/* // @match *://*.afr.com/* // @match *://*.ambito/* // @match *://*.ampproject.org/* // @match *://*.baltimoresun.com/* // @match *://*.barrons.com/* // @match *://*.bizjournals.com/* // @match *://*.bloomberg.com/* // @match *://*.bloombergquint.com/* // @match *://*.bostonglobe.com/* // @match *://*.brisbanetimes.com.au/* // @match *://*.britannica.com/* // @match *://*.businessinsider.com/* // @match *://*.caixinglobal.com/* // @match *://*.cen.acs.org/* // @match *://*.centralwesterndaily.com.au/* // @match *://*.chicagobusiness.com/* // @match *://*.chicagotribune.com/* // @match *://*.corriere.it/* // @match *://*.courant.com/* // @match *://*.couriermail.com.au/* // @match *://*.dailypress.com/* // @match *://*.dailytelegraph.com.au/* // @match *://*.delfi.ee/* // @match *://*.demorgen.be/* // @match *://*.denverpost.com/* // @match *://*.df.cl/* // @match *://*.dynamed.com/* // @match *://*.economist.com/* // @match *://*.elmercurio.com/* // @match *://*.elmundo.es/* // @match *://*.elu24.ee/* // @match *://*.entreprenal.com/* // @match *://*.examiner.com.au/* // @match *://*.expansion.com/* // @match *://*.fd.nl/* // @match *://*.financialpost.com/* // @match *://*.fnlondon.com/* // @match *://*.foreignpolicy.com/* // @match *://*.fortune.com/* // @match *://*.ft.com/* // @match *://*.gelocal.it/* // @match *://*.genomeweb.com/* // @match *://*.glassdoor.com/* // @match *://*.globes.co.il/* // @match *://*.groene.nl/* // @match *://*.haaretz.co.il/* // @match *://*.haaretz.com/* // @match *://*.harpers.org/* // @match *://*.hbr.org/* // @match *://*.hbrchina.org/* // @match *://*.heraldsun.com.au/* // @match *://*.historyextra.com/* // @match *://*.humo.be/* // @match *://*.ilmanifesto.it/* // @match *://*.inc.com/* // @match *://*.inquirer.com/* // @match *://*.interest.co.nz/* // @match *://*.investorschronicle.co.uk/* // @match *://*.irishtimes.com/* // @match *://*.japantimes.co.jp/* // @match *://*.journalnow.com/* // @match *://*.kansascity.com/* // @match *://*.labusinessjournal.com/* // @match *://*.lanacion.com.ar/* // @match *://*.lastampa.it/* // @match *://*.latercera.com/* // @match *://*.latimes.com/* // @match *://*.lavoixdunord.fr/* // @match *://*.lecho.be/* // @match *://*.leparisien.fr/* // @match *://*.lesechos.fr/* // @match *://*.loebclassics.com/* // @match *://*.lrb.co.uk/* // @match *://*.mcall.com/* // @match *://*.medium.com/* // @match *://*.medscape.com/* // @match *://*.mercurynews.com/* // @match *://*.mv-voice.com/* // @match *://*.nationalpost.com/* // @match *://*.netdna-ssl.com/* // @match *://*.news-gazette.com/* // @match *://*.newstatesman.com/* // @match *://*.newyorker.com/* // @match *://*.nrc.nl/* // @match *://*.ntnews.com.au/* // @match *://*.nydailynews.com/* // @match *://*.nymag.com/* // @match *://*.nytimes.com/* // @match *://*.nzherald.co.nz/* // @match *://*.nzz.ch/* // @match *://*.ocregister.com/* // @match *://*.orlandosentinel.com/* // @match *://*.outbrain.com/* // @match *://*.paloaltoonline.com/* // @match *://*.parool.nl/* // @match *://*.piano.io/* // @match *://*.poool.fr/* // @match *://*.postimees.ee/* // @match *://*.qiota.com/* // @match *://*.qz.com/* // @match *://*.repubblica.it/* // @match *://*.republic.ru/* // @match *://*.reuters.com/* // @match *://*.sandiegouniontribune.com/* // @match *://*.scientificamerican.com/* // @match *://*.scmp.com/* // @match *://*.seattletimes.com/* // @match *://*.seekingalpha.com/* // @match *://*.slate.com/* // @match *://*.smh.com.au/* // @match *://*.sofrep.com/* // @match *://*.spectator.co.uk/* // @match *://*.spectator.com.au/* // @match *://*.spectator.us/* // @match *://*.speld.nl/* // @match *://*.startribune.com/* // @match *://*.statista.com/* // @match *://*.stuff.co.nz/* // @match *://*.sueddeutsche.de/* // @match *://*.sun-sentinel.com/* // @match *://*.techinasia.com/* // @match *://*.technologyreview.com/* // @match *://*.telegraaf.nl/* // @match *://*.telegraph.co.uk/* // @match *://*.the-tls.co.uk/* // @match *://*.theadvocate.com.au/* // @match *://*.theage.com.au/* // @match *://*.theathletic.co.uk/* // @match *://*.theathletic.com/* // @match *://*.theatlantic.com/* // @match *://*.theaustralian.com.au/* // @match *://*.thediplomat.com/* // @match *://*.theglobeandmail.com/* // @match *://*.theherald.com.au/* // @match *://*.thehindu.com/* // @match *://*.themarker.com/* // @match *://*.themercury.com.au/* // @match *://*.thenation.com/* // @match *://*.thenational.scot/* // @match *://*.theolivepress.es/* // @match *://*.thesaturdaypaper.com.au/* // @match *://*.thestar.com/* // @match *://*.thewrap.com/* // @match *://*.tijd.be/* // @match *://*.time.com/* // @match *://*.tinypass.com/* // @match *://*.towardsdatascience.com/* // @match *://*.trouw.nl/* // @match *://*.vanityfair.com/* // @match *://*.vn.nl/* // @match *://*.volkskrant.nl/* // @match *://*.washingtonpost.com/* // @match *://*.wired.com/* // @match *://*.wsj.com/* // @match *://*.zeit.de/* // @grant GM_registerMenuCommand // @grant GM_addStyle // @grant GM_addElement // @downloadURL none // ==/UserScript== (function () { 'use strict'; // Constants const _12FT_PREFIX = "https://12ft.io/proxy?ref=pro&q="; const _12FT_ORIGIN = new URL(_12FT_PREFIX).origin; // Add floating button GM_addStyle(` #bypassButton { position: fixed; bottom: 10px; right: 10px; background: #333; color: white; border: none; padding: 5px; cursor: pointer; z-index: 99999999999; font-size: 12px; display: flex; align-items: center; opacity: 0.8; } #bypassButton:hover { opacity: 1; } #bypassButton img { width: 20px; margin-right: 5px; } `); const button = document.createElement('button'); button.id = 'bypassButton'; button.innerHTML = ' Bypass Paywall (12ft.io)'; document.body.appendChild(button); // Add right-click menu options GM_registerMenuCommand("Bypass with 12ft", () => bypassPage()); GM_registerMenuCommand("Archive Today", () => archivePage('https://archive.today/newest/')); GM_registerMenuCommand("Archive Is", () => archivePage('https://archive.is/newest/')); GM_registerMenuCommand("Archive Ph", () => archivePage('https://archive.ph/newest/')); GM_registerMenuCommand("Remove Paywall", () => archivePage('https://RemovePaywall.com/')); GM_registerMenuCommand("Google Cache", () => archivePage('https://webcache.googleusercontent.com/search?q=cache:')); // Event listener for floating button button.addEventListener('click', () => { if (window.location.href.startsWith(_12FT_ORIGIN)) { goBack(); } else { bypassPage(); } }); // Function to bypass paywall function bypassPage() { const currentUrl = window.location.href; if (isValidProtocol(currentUrl)) { window.location.href = _12FT_PREFIX + currentUrl; } } // Function to go back to original URL function goBack() { const currentUrl = window.location.href; const originalUrl = new URL(currentUrl).searchParams.get("q"); if (originalUrl) { window.location.href = originalUrl; } } // Check if the protocol is valid (http or https) function isValidProtocol(url) { return new URL(url).protocol.startsWith("http"); } // Remove banner on 12ft.io function removeBanner() { const banner = document.getElementById('ad'); if (banner) { banner.remove(); } } // Mutation observer to remove banner if it appears const observer = new MutationObserver((mutations) => { for (const mutation of mutations) { if (mutation.addedNodes.length) { removeBanner(); } } }); observer.observe(document.body, { childList: true, subtree: true }); // Initial banner removal removeBanner(); // Remove duplicate button inside iframe function removeDuplicateButton() { const iframe = document.getElementById('proxy-frame'); if (iframe) { const iframeDocument = iframe.contentDocument || iframe.contentWindow.document; const duplicateButton = iframeDocument.getElementById('bypassButton'); if (duplicateButton) { duplicateButton.remove(); } } } window.addEventListener('load', removeDuplicateButton); // Function to open archive pages function archivePage(baseURL) { const currentUrl = window.location.href; if (isValidProtocol(currentUrl)) { window.open(baseURL + encodeURIComponent(currentUrl), '_blank'); } } })();