This commit is contained in:
2026-05-15 09:12:28 -07:00
parent 55703bb7ed
commit 2e350ce3dc
18 changed files with 14733 additions and 18 deletions

21
privacy-filters/LICENSE Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2020, magnolia1234
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

55
privacy-filters/README.md Normal file
View File

@@ -0,0 +1,55 @@
# Bypass Paywalls Clean filters
Adblocker list which allows you to read articles from (supported) sites that implement a paywall (for a lot of sites you also need to install an userscript).\
For some sites it will log you out (or block you to log in); caused by removing cookies or blocking general paywall-scripts.
Disclaimer: the list doesn't support as many sites as the extension/add-on does though (and even less on iOS).\
On iOS you can also use [Shortcuts](https://apps.apple.com/app/shortcuts/id915249334) app with [Unpaywall](https://www.icloud.com/shortcuts/71648f5ad34f4d8f972718e5f3621ffe) shortcut for some unsupported sites.
### Installation
#### adblocker filters
Use a browser which supports extensions/add-ons and install an adblocker (like uBlock Origin or AdGuard).\
Now add custom (content)filter (copy link):
[Bypass Paywalls Clean filters](https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=bpc-paywall-filter.txt)\
Or subscribe:
[subscribe on filterlists.com](https://filterlists.com/lists/bypass-paywalls-clean-filter) -
[subscribe for AdGuard](https://subscribe.adblockplus.org/?location=https%3A%2F%2Fgitflic.ru%2Fproject%2Fmagnolia1234%2Fbypass-paywalls-clean-filters%2Fblob%2Fraw%3Ffile%3Dbpc-paywall-filter.txt&title=Bypass%20Paywalls%20Clean%20filters)
Brave browser has also incorporated the filterlist (without userscripts though), but some filter rules don't work in Brave's buit-in adblocker or are actively deactivated.\
Better add the filterlist to an extension like uBlock Origin.
On Android you can use [Via Browser](https://play.google.com/store/apps/details?id=mark.via.gp) which supports custom filterlists & userscripts.
You can also install an app like AdGuard* (on Android & iOS/macOS) or [AdLock](https://apps.apple.com/app/adlock-ads-blocker-privacy/id1506604517) (on iOS).\
This way you can use it with Chrome/Firefox (on Android) or Safari (on iOS/macOS).
\* [AdGuard Content Blocker](https://play.google.com/store/apps/details?id=com.adguard.android.contentblocker) (on Android) only works with Yandex Browser or Samsung Internet Browser when you add the filter (url) to user rules (manual update of filter required).\
Or use [AdGuard app](https://adguard.com/adguard-android/overview.html) (from their site) which works for all apps (and automatically updates filter).
An external app may work less effective (timing/refresh issues).\
On iOS there may be no support for scriptlets (for removing cookies, attributes and/or classes), but works with for example AdGuard Premium (paid feature).
#### userscripts
Some fixes also require an app to run an additional userscript to work.\
For example amp-redirect (also disable amp-to-html extension for these sites), unhide text/images and more.
Example apps or extensions/add-ons you can use:
* Android: [AdGuard app](https://adguard.com/adguard-android/overview.html) (load userscript as extension)
* iOS: [wBlock](https://apps.apple.com/app/wblock/id6746388723) or [Tampermonkey (paid)](https://apps.apple.com/app/tampermonkey/id6738342400)
* macOS: [AdGuard app](https://adguard.com/en/adguard-mac/overview.html)
* Windows/ChromeOS: Tampermonkey [Chrome extension](https://chromewebstore.google.com/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo) or [Firefox add-on](https://addons.mozilla.org/firefox/addon/tampermonkey)
Userscripts for different languages:
[English (& other)](https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc.en.user.js) -
[Dutch](https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc.nl.user.js) -
[Finnish/Swedish/Danish](https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc.fi.se.user.js) -
[French](https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc.fr.user.js) -
[German](https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc.de.user.js) -
[Italian](https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc.it.user.js) -
[Polish](https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc.pl.user.js) -
[Spanish/Portugese](https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc.es.pt.user.js)

View File

@@ -0,0 +1,847 @@
! Title: Bypass Paywalls Clean filter
! Expires: 1 day (update frequency)
! Description: Filters for news sites (supports less sites than the extension/add-on)
! Homepage: https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters
! License: MIT; https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=LICENSE
! Last modified:
! Version: 4.3.6.4
! General
||amplitude.com^$xmlhttprequest,third-party
||axate.io$script,third-party
||loader.*.com/prod/*/loader.min.js$script
||cdn.*.com/prod/*/loader.min.js$script
||blueconic.net^$third-party
/[a-z]{1}\d{2,3}\.\w+\.(co(m|\.uk)|net|org)\/script\.js/$script,~third-party
||cxense.com^$script,third-party,domain=~journaldemontreal.com|~journaldequebec.com|~wsj.com
||cxense.com^$script,domain=bizjournals.com,important
||ensighten.com/*/Bootstrap.js$script,third-party
||evolok.net^$third-party
||fewcents.co/*/paywall*.js$script,third-party
||hadrianpaywall.com^$third-party
.de/sub/js/pc-offer-west.js$script,~third-party
||js.matheranalytics.com^$script,third-party
||newsmemory.com?meter$third-party
||olytics.omeda.com^$third-party
||onecount.net^$third-party
||js.pelcro.com^$script,third-party
/xbuilder/experience/execute$xmlhttprequest,domain=~automobilwoche.de|~frontline.thehindu.com
@@||piano.io^$domain=hbr.org|japantimes.co.jp
@@||tinypass.com$script,domain=ajc.com|thelogic.co
||api.pico.tools/client/query/*$xmlhttprequest,~third-party
||api.pico.tools/popup/null/*$xmlhttprequest,~third-party
gadget.pico.tools##+js(json-prune, locked)
||poool.fr^$third-party
||qiota.com^$xmlhttprequest,third-party
||sophi.io^$third-party
||steadyhq.com^$script,third-party
||wallkit.net/js/$script,third-party
||zephr.com/zephr-browser/$script,third-party
/arc/subs/p.min.js$script,~third-party
||arc-cdn.net/arc/subs/p.min.js$script,third-party
/c/assets/pigeon.js$script,~third-party
/evolok/*ev-em.min.js$script,domain=~vikatan.com
/evolok/*ev-widgets.min.js$script
/paywall/evercookie_get.js$script,~third-party
/shared-content/art/tncms/api/access.*.js$script,~third-party
/wp-content/plugins/leaky-paywall/js/leaky-paywall-cookie.js$script,~third-party,important
/wp-json/leaky-paywall/v1/check-restrictions$xmlhttprequest,~third-party
/wp-content/plugins/newspack-plugin/dist/*-gate-metering.js$script,~third-party
/wp-content/plugins/pmpro-limit-post-views/js/pmprolpv.js$script,~third-party
/wp-content/*/plugins/rcp-view-limit/$script,~third-party
/zephr/feature$xmlhttprequest
abqjournal.com##+js(rc, lab-paywall-locked, div.lab-paywall-locked, stay)
||abril.com.br/*/abril-paywall/$script,~third-party
adweek.com##+js(cookie-remover, blaize_session)
||adweek.com/wp-content/plugins/adw-zephr/$script,~third-party
ajc.com##+js(ra, class, div.story-paygate_placeholder, stay)
ajc.com##div.video-blocker
ajc.com##+js(set, window.Fusion.globalContent._id, 0)
ajc.com##+js(set, window.Fusion.globalContent.content_restrictions.content_code, 0)
alternatives-economiques.fr###temp-paywall
alternatives-economiques.fr##+js(ra, style, div[data-ae-poool], stay)
ambito.com##+js(cookie-remover, TDNotesRead)
||americanaffairsjournal.org/wp-content/mu-plugins/app/src/paywall/paywall.js$script,~third-party
artforum.com##+js(cookie-remover, /^/)
||artnet.com/paywall-ajax.php$xmlhttprequest,~third-party
artnet.com##div.article-body:style(display:block !important;)
artnet.com##div[id^="issuem-leaky-paywall-"]
asia.nikkei.com##div.tp-modal,div.tp-backdrop
asia.nikkei.com##+js(rc, tp-modal-open, body.tp-modal-open, stay)
magazine.atavist.com##+js(set-local-storage-item, /^/, $remove$)
||tonos.gjirafa.tech/init/access$xmlhttprequest,domain=atlantico.fr
automobilwoche.de##+js(set, window.Fusion.globalContent._id, 0)
automobilwoche.de##+js(set, window.Fusion.globalContent.content_restrictions, {})
axios.com##div[data-cy="pro-paywall"],div[class^="Modal_paywall"],div[class^="Modal_cta"]
axios.com##+js(ra, style, html[style], stay)
bhaskar.com##div.paywallBlockedContent~div:remove()
bhaskar.com##article div:empty
bhaskar.com##+js(ra, class, div.paywallBlockedContent, stay)
/\.bizjournals\.com\/.+\/(news|stories)\/.+\.html/$inline-script,~third-party
||bwbx.io/s3/fence/fortress-client/$script,third-party,domain=bloomberg.com
||bloombergadria.com/*/news$inline-script
bloombergadria.com##+js(ra, style, article.single-news[style], stay)
||meter.bostonglobe.com/js/meter.js$script,~third-party
/\.businessinsider\.com\/chunks\/scripts\/\d.+\.js/$script,domain=businessinsider.com,~third-party
businessinsider.jp##+js(ra, hidden, div.piano-paywall-container[hidden])
||businessoffashion.com/arc-platform-proxy.js$script,~third-party
||businesspost.ie/api/tinypass.min.js$script,~third-party
capital.fr##+js(ra, class|hidden, div#articleWall-paid, stay)
capital.fr##div#articleWall-paid:style(margin-top: 40px !important;)
capital.fr##+js(ra, class, div#articleWall, stay)
capital.fr##div#articleWall-wrapper
cartacapital.com.br##+js(rc, contentSoft, div.contentSoft)
cartacapital.com.br##div[class^="s-freemium"],div.maggazine-add
cen.acs.org##+js(cookie-remover, cenLoginP)
cen.acs.org##.meteredBar
challenges.fr##div.amorce.manual
challenges.fr##+js(ra, class|hidden, .user-paying-content)
||cdn.piano.io/api/tinypass.min.js$script,domain=clicrbs.com.br
||clicrbs.com.br/paywall-api/count/$xmlhttprequest,~third-party
cnbc.com##div.ArticleGate-proGate
cnbc.com##+js(ra, class|hidden, span[hidden])
cnn.com##div[data-component-id="subwall"]
cnn.com##+js(ra, style, html[style], stay)
cnn.com##+js(ra, style, body[style], stay)
cnn.com##+js(set-local-storage-item, /reg_?wall/i, $remove$)
columbian.com##+js(cookie-remover, blaize_session)
columbian.com##div.modal,div#onesignal-slidedown-container
chronicle.com,philanthropy.com##div[data-content-summary]
chronicle.com,philanthropy.com##+js(ra, hidden|ppajfrg86rdhoubtirllb2bf1xsaknzus, div[class~="contentBody" i][hidden], stay)
citywire.com##+js(rc, article-locked, .article-locked)
citywire.com##+js(rc, m-article--locked, .m-article--locked)
citywire.com##+js(rc, m-media-container--locked, .m-media-container--locked)
citywire.com##+js(rc, m-article__body--locked, .m-article__body--locked)
citywire.com##registration-widget,div.alert--locked
||zonda.clarin.com^$script,domain=clarin.com|lavoz.com.ar|ole.com.ar
||commentary.org/*/js/dg-locker-public.js$script,~third-party
||connaissancedesarts.com/wp-content/*/vendor/iptools-jquery-inview.min.js$script,~third-party
||paywall.correiodopovo.com.br$script,~third-party
||corriereobjects.it/*/js/_paywall.sjs$script,domain=corriere.it
cronista.com##+js(rc, article-body--blurred, div.article-body--blurred, stay)
cronista.com##div.paywall-chain--show
csmonitor.com##+js(set-local-storage-item, /^/, $remove$)
csmonitor.com##.paywall
cyclingnews.com##+js(rc, paywall-locker, div.paywall-locker)
dailywire.com##+js(ra, class, div[data-narration-container]>div[class]:first-child, stay)
dailywire.com##div[data-narration-container]>div:not(:first-child),div.css-1d84fd8
denik.cz##+js(ra, class, div.paywall, stay)
diepresse.com##+js(ra, class, div.premium-content.hide, stay)
diepresse.com##div.paywall-container--locked
discovermagazine.com##body:style(overflow: auto !important;)
discovermagazine.com##div.fIkXwQ,div[style*="fadeIn"],div[role="button"][aria-label="Dismiss Dialog"]
||dn.se/check-paywall-v2.js,~third-party
||dwell.com/article/*?rel=plus$inline-script
eastwest.eu##+js(ra, style, .paywall)
eastwest.eu##+js(rc, paywall, .paywall)
eastwest.eu###testo_articolo > p, #testo_articolo > h3
eastwest.eu##.offerta_abbonamenti
||apw.economictimes.indiatimes.com$xmlhttprequest,~third-party
||economist.com/latest/wall-ui.js$script,~third-party
||editorialedomani.it/pelcro.js$script,~third-party
elespanol.com##+js(rc, content-not-granted-paywall, div.content-not-granted-paywall)
elespanol.com##div.full-suscriptor-container
elconfidencial.com##+js(rc, newsType__content--closed, div.newsType__content--closed)
||elobservador.com.uy/shares$xmlhttprequest,~third-party
||elpais.com.uy/user/authStatus$script,~third-party
||prisa.com/dist/subs/pmwall/*/pmwall.min.js$script,domain=elpais.com
||verne.elpais.com/*.html$inline-script
eltiempo.com##+js(rc, c-articulo-exclusivo, div.c-articulo-exclusivo, stay)
eltiempo.com##+js(rc, modulos, div.modulos, stay)
em.com.br##+js(rc, compress-text, div.compress-text)
enotes.com##section#enotes-paywall
enotes.com##+js(ra, class, div.u-paywall)
||estadao.com.br/paywall/$script,~third-party
||estadao.com.br/access.js$script,~third-party
etc.se##+js(rc, teaser-section, section.teaser-section)
etc.se##+js(rc, hidden, section.prose-feature .hidden)
etc.se##article section.font-sans
euobserver.com##+js(rc, show, div.membership-upsell.show)
||exame.com/_next/static/chunks/app/%5B*.js$script,~third-party
||specials.fd.nl/_next/static/chunks/framework-*.js$script,~third-party
specials.fd.nl##div[class^="Opening_contentContainer"],section[class^="ScrollyText_"]:style(color: white)
fieldandstream.com##div[class^="mailmunch-"]
fieldandstream.com##+js(ra, class, html[class])
||financialexpress.com/*/min/premiumStoryContent.js$script,~third-party
financialexpress.com##+js(rc, paywall, .paywall)
financialexpress.com##div.pcl-wrap
firstthings.com##div.leaky_paywall_message_wrap
||fokus.se/app/plugins/sesamy-fpg/assets/js/sesamy-fpg.js$script,~third-party
||folha.uol.com.br/paywall/js/$script,~third-party
||paywall.folha.uol.com.br^$script,xmlhttprequest,~third-party
forbes.com##+js(ra, class, html[class], stay)
forbes.com##+js(ra, class, body[class], stay)
forbes.com.au##+js(cookie-remover, blaize_session)
||foreignaffairs.com/modules/custom/fa_paywall_js/js/paywall.js$script,~third-party
||foreignaffairs.com/sites/default/files/assets/css/css_*.css*delta=0$stylesheet,~third-party
foreignaffairs.com##.article-dropcap:style(height: auto !important;)
foreignaffairs.com##.paywall,.loading-indicator,.messages--container--bottom
foreignpolicy.com##body:not(.is-fp-insider) div.content-ungated
foreignpolicy.com##+js(rc, content-gated, body:not(.is-fp-insider) div.content-gated.content-gated--main-article)
||fortune.com/api/tinypass.min.js$script,~third-party
foxnews.com##+js(ra, class, div[class*="gated-overlay"])
foxnews.com##div.article-gating-wrapper
||freitag.de$inline-script
||ftm.eu/js/routing$script,~third-party
||ftm.nl/js/routing$script,~third-party
ftm.eu,ftm.nl##+js(rc, foldable, div.foldable)
ftm.eu,ftm.nl##div.banner-pp
gauchazh.clicrbs.com.br##+js(ra, class, div.m-paid-content>div.hidden, stay)
groene.nl##+js(cookie-remover, rlist)
harpers.org##+js(cookie-remover, hr_session)
||harpers.org/wp-content/themes/timber/static/js/modal*.js
||adobedtm.com/*/launch-*.js$script,domain=hbr.org
||cdn.tinypass.com/api/tinypass.min.js$script,domain=hbr.org
||hilltimes.com/*/js/loadingoverlay/loadingoverlay.min.js$script,~third-party
hindustantimes.com##+js(rc, paywall, .paywall, stay)
hindustantimes.com##+js(rc, hide, .hide, stay)
hindustantimes.com##div.paywall-container,div[class^="sub-paywall-version"],section[amp-access="NOT userSubscribed"]
ilfattoquotidiano.it##+js(rc, cropped, article[id].cropped)
ilfattoquotidiano.it##div#ifq-paywall-metered
ilfoglio.it##+js(ra, class, div.paywall-wrapper__story-content)
ilfoglio.it##div.paywall
ilsole24ore.com##+js(ra, style, body[style], stay)
ilsole24ore.com##div.s24_adb
||inc42.com/wp-admin/admin-ajax.php|$xmlhttprequest,~third-party
indianexpress.com##+js(ra, style, div.ev-meter-content[style])
indianexpress.com##+js(ra, class, p.first_intro_para)
indianexpress.com##ev-engagement
||liveapp.inews.co.uk/*/content.html$inline-script
inkl.com##+js(ra, class, div.paywall)
inkl.com##div.gradient-container
interestingengineering.com##body:style(overflow: auto !important; position: relative !important; top: unset !important)
interestingengineering.com##main>div[class*="t-hidden"],div.t-bg-black
investors.com##+js(cookie-remover, __tbc)
irishexaminer.com/##+js(cookie-remover, blaize_session)
japantimes.co.jp##+js(cookie-remover, xbc)
journaldemontreal.com,journaldequebec.com##+js(rc, composer-content, div.article-main-txt.composer-content)
journaldunet.com##div.reg_wall
journaldunet.com##+js(ra, style, div.entry_reg_wall[style])
||jpost.com/js/js_article.min.js$script,~third-party
||internazionale.it/templates_js_ajax.inc.php$xmlhttprequest,~third-party
krautreporter.de##section.js-access-wall,div.js-paywall-divider,#steady-checkout
krautreporter.de##+js(rc, blurred, .blurred, stay)
krautreporter.de##+js(rc, json-ld-paywall-marker, .json-ld-paywall-marker, stay)
ksta.de,rundschau-online.de##+js(cookie-remover, anon_cookie)
ksta.de,rundschau-online.de##+js(ra, style, div[data-article-content], stay)
ksta.de,rundschau-online.de##div.dm-paywall-wrapper,div.dm-slot,div.dm-zephr-banner
||cdn.tinypass.com/api/tinypass.min.js$script,domain=kurier.at
kurier.at##+js(ra, class|style, div.paywall)
kurier.at##div#cfs-paywall-container
||glanacion.com/*/metering/*.js$script,domain=lanacion.com.ar
lanacion.com.ar##+js(cookie-remover, /^metering_arc/)
lanacion.com.ar##+js(set-local-storage-item, /^/, $remove$)
lance.com.br##+js(rc, h-[550px], div.paywall-content[class*="h-\["], stay)
||latimes.com/meteringjs/$script,~third-party
||californiatimes.com/caltimes/latimes/Bootstrap.js$script,third-party,domain=latimes.com
||ev.lavanguardia.com$xmlhttprequest,~third-party
lavanguardia.com,mundodeportivo.com##span.content-ad,span.hidden-ad,span.ad-unit,div.ad-div
ledevoir.com##+js(cookie-remover, pw6)
legrandcontinent.eu##+js(rc, paywall|pw|softwall, body)
lejdd.fr,parismatch.com,public.fr###poool-container,#poool-widget-content,#poool-widget,.forbidden
lejdd.fr,parismatch.com,public.fr##+js(ra, data-poool-mode, .cnt[data-poool-mode="hide"])
lepoint.fr,lexpress.fr##+js(set, window.Fusion.globalContent.content_restrictions, {})
/\.lequipe\.fr\/assets\/js\/.*[wW]all.+\.js/$script,~third-party
||livemint.com/lm-img/subscription/$script,~third-party
livemint.com##+js(rc, paywall, div.paywall)
livemint.com##div[class^="storyPaywall_paywallStory_"]:remove()
labusinessjournal.com##+js(cookie-remover, /^/)
labusinessjournal.com###css-only-modals
/\.emol\.cl\/(.+\/)?(pram-modal|PramModal)\.min\.js/$script,domain=lasegunda.com
||lavoz.com.ar/sites/*/paywall/*/pw.js$script,third-party
letelegramme.fr##+js(rc, tlg-paywalled, div.tlg-paywalled)
loebclassics.com##+js(cookie-remover, hupLclFreeReadsCookie)
||cdn.loeildelaphotographie.com/wp-content/*/hague-child/js/script-$script,~third-party
loeildelaphotographie.com##+js(ra, class, .paywall)
loeildelaphotographie.com##.premium-pic-box,.membership-promo-container,.login_form_litle
loeildelaphotographie.com##+js(ra, style, img[style*="blur"])
lrb.co.uk##+js(set-local-storage-item, /^lrb_/, $remove$)
marketwatch.com##+js(cookie-remover, cX_P)
||adobedtm.com/*/launch-*.js$script,domain=medscape.com
mexiconewsdaily.com##+js(rc, tdb-block-inner, body.single div.td-post-content > div.tdb-block-inner)
||motorsportmagazine.com/wp-admin/admin-ajax.php$xmlhttprequest,~third-party
||ev.mundodeportivo.com$xmlhttprequest,~third-party
||musicomh.com/wp-content/*/bundle.js$script,~third-party
mv-voice.com##+js(cookie-remover, /^/)
||cdn.registerdisney.go.com$script,domain=nationalgeographic.com
||nationalgeographic.com.es/Content/js/lib/runtime.min.js$script,~third-party
nationalgeographic.it##+js(ra, style, section[style], stay)
nationalgeographic.it##section.paywall-container
||nautil.us/_next/static/chunks/pages/_sites/%5BsiteSlug%5D/%5B...slug*.js$script,~third-party
newsday.com##+js(ra, class, html[class])
newrepublic.com##div.article-scheduled-modal
||blink.net/*/blink-sdk.js$script,domain=newrepublic.com|thebaffler.com
||townnews.com/*/tncms/*/scripts/engage.min.js$script,third-party,domain=nola.com|shreveportbossieradvocate.com|theadvocate.com
nrc.nl##+js(cookie-remover, counter)
||nrc.nl/paywall-api/api/zephr$xmlhttprequest,~third-party
nrc.nl##div[id$="modal__overlay"],div.header__subscribe-bar,div.banner
||nsctotal.com.br/wp-content/themes/nsctotal/js/paywall.min.js$script,~third-party
||nybooks.com/wp-admin/admin-ajax.php$xmlhttprequest,~third-party
nybooks.com##+js(rc, paywall-article, .paywall-article)
nybooks.com##div.toast-cta
||meter-svc.nytimes.com/meter.js$xmlhttprequest,~third-party
||nytimes.com/svc/onsite-messaging/query$xmlhttprequest,~third-party
||mwcm.nyt.com/$script,domain=nytimes.com
nytimes.com##div#dock-container
||cooking.nytimes.com/api/*/access$xmlhttprequest,~third-party
||nzherald.co.nz/zephr/$xmlhttprequest,~third-party
nzherald.co.nz##+js(set, window.Fusion.globalContent.isPremium, false)
nzz.ch,themarket.ch##+js(rc, nzzinteraction, .nzzinteraction, stay)
nzz.ch##+js(ra, class, div.barrier, stay)
||tms.danzz.ch/scripts/t.min.js$script,domain=nzz.ch|themarket.ch
||observador.pt/wp-content/*/paywall-price-*.js$script,~third-party
paloaltoonline.com##+js(cookie-remover, /^/)
||pastemagazine.com/wp-content/cache/autoptimize/js/autoptimize_*.js$script,~third-party
pb.pl##+js(ra, class, section.o-article-content, stay)
pb.pl##div.o-piano-template-loader-box
pitchfork.com##+js(cookie-remover, pay_ent_msmp)
pourleco.com##+js(ra, style, div[class*="article-"][style])
pourleco.com##div[data-pleco-poool^="paywall"],div[data-pleco-transition="fade"]
philosophynow.org##+js(cookie-remover, /^/)
profil.at##+js(ra, class|style, div.paywall)
profil.at##div#cfs-paywall-container,div.consentOverlay
||kinja-static.com/assets/*/regwalled-content.*.js$script,domain=qz.com
||reviewjournal.com/wp-content/plugins/*/loader_prod.min.js$script,~third-party
||revistaoeste.com/wp-content/*/js/app.*.js$script,~third-party
||revistaoeste.com/revista/$inline-script
revistaoeste.com##+js(ra, class, div.loading_content)
revistaoeste.com##+js(rc, expandable, div.expandable)
revistaoeste.com##svg.spinner-eclipse
rotowire.com##+js(ra, class, div.pw-content, stay)
rotowire.com##+js(ra, class, div.article__body > div[class^="img_"], stay)
rotowire.com##div.paywall-full,div.article-preview-fader
/\.rugbypass\.com\/plus\/\w/$inline-script,domain=rugbypass.com
rugbypass.com##.plus-article-offer
rugbypass.com##+js(rc, premium-fold-bottom, .premium-fold-bottom)
rugbypass.com##+js(rc, fade, .fade)
scholastic.com##+js(ra, class, body.modal-open, stay)
scholastic.com##div.paywallModalElement,div.modal-backdrop
schwaebische.de##+js(ra, style, body[style], stay)
science.org##div.alert-read-limit
science.org##+js(rc, alert-read-limit__overlay, body.alert-read-limit__overlay, stay)
sciencenews.org##+js(cookie-remover, blaize_session)
sciencesetavenir.fr##div.amorce.manual
sciencesetavenir.fr##+js(ra, class|hidden, .user-paying-content)
||scientificamerican.com/api/tinypass.min.js$script,~third-party
scientificamerican.com##+js(cookie-remover, article_meter)
scotsman.com,yorkshirepost.co.uk##+js(rc, premium|no-entitlement, div.premium.no-entitlement)
||seattletimes.com/wp-content/*/st-advertising-bundle.js$script,~third-party
||seattletimes.com/wp-content/*/st-user-messaging-main-bundle.js$script,~third-party
||sfstandard.com/api/content/decision/$xmlhttprequest,~third-party
sfstandard.com##+js(cookie-remover, zephr-session)
sfstandard.com##+js(acis, localStorage)
sfstandard.com##+js(acis, sessionStorage)
sfstandard.com##div.sticky
slideshare.net##+js(rc, limit-overlay, .limit-overlay)
slideshare.net##+js(set-local-storage-item, /^/, $remove$)
sofrep.com##+js(cookie-remover, sofrep_news_ids)
sofrep.com##+js(ra, class, div.paywall)
sofrep.com##+js(rc, fader, div.fader)
sofrep.com##div.non-paywall,div#paywall_wrap
||tinypass.com/api/tinypass.min.js$script,domain=spectator.com|spectator.com.au|apollo-magazine.com
spektrum.de##+js(rc, pw-premium, article.pw-premium)
spglobal.com##+js(cookie-remover, count)
startribune.com##div.modal-backdrop
startribune.com##body[class]:style(overflow: auto !important; position: static !important;)
||stereogum.com/_next/static/chunks/pages/_sites/%5BsiteSlug%5D/%5B...slug*.js$script,~third-party
||straitstimes.com/opinion/$inline-script
/\.straitstimes\.com\/.+(\w+-){3,}.+\?rel=plus/$inline-script
study.com##+js(ra, class, div.faded-content)
study.com##+js(ra, class, div.hidden[ng-non-bindable])
study.com##div.article-cutoff-div
||suomensotilas.fi/wp-content/plugins/epflpw/js/pw.js$script,~third-party
suomensotilas.fi##+js(rc, epfl-pw-obscured, div.epfl-pw-obscured)
||telegraph.co.uk/martech/js/$script,~third-party
tes.com##+js(cookie-remover, /tg_paywall/)
tes.com##+js(ra, class, div.tg-paywall-body-overlay)
tes.com##div.js-paywall-info,div.tg-paywall-message
||texasmonthly.com/script.js$script,~third-party
texasmonthly.com##div.promo-in-body
the-scientist.com##+js(rc, paywall, div.paywall)
the-scientist.com##div.gated-fader,div#Modal
||theartnewspaper.com/_next/static/chunks/pages/access-allowed-*.js$script,~third-party
||theatlantic.com/zephr/decision-engine$xmlhttprequest,~third-party
theatlantic.com##aside#paywall,div[class^="LostInventoryMessage_"]
||cloudfunctions.net/gated-countView$xmlhttprequest,domain=thediplomat.com
theglobeandmail.com##+js(set, window.Fusion.globalContent._id, 0)
||cdn.piano.io/api/tinypass.min.js$script,domain=www.thehindu.com
frontline.thehindu.com##+js(rc, articlepaywall, body.articlepaywall, stay)
frontline.thehindu.com##div[class^="article-standard_piano-inline"]
||theintercept.com$inline-script
thelampmagazine.com##+js(ra, class, div.paywall-gradient)
thelampmagazine.com##section.p-8
thelogic.co##+js(cookie-remover, firstarticle)
||thenation.com/wp-content/themes/*/js/paywall/main.js$script,~third-party
||thenewatlantis.com/*/thenewatlantis/js/gate.js$script,~third-party
||thenewatlantis.com/*/thenewatlantis/js/donate.js$script,~third-party
thenewworld.co.uk##div[data-show-fade-on-noaccess],div[data-show-subs-blocked]
thenewworld.co.uk##+js(ra, data-show-has-access, div[data-show-has-access])
thepointmag.com##+js(cookie-remover, monthly_history)
thepointmag.com##div.overlay,div#tpopup-
thequint.com##div.zsqcu
thequint.com##+js(ra, class|style, div#story-body-wrapper, stay)
||thesaturdaypaper.com.au/sites/all/modules/custom/node_meter/pw.js$~third-party
/\.thesaturdaypaper\.com\.au\/.+\/(\w+-){3,}/$inline-script,domain=thesaturdaypaper.com.au
thesaturdaypaper.com.au##div.paywall-hard-always-show
||thetimes.com/wp-content/plugins/tm-wp-zephr/$script,~third-party
thetimes.com##html:style(overflow: auto !important;)
thetimes.com##body:style(overflow: auto !important;)
thetimes.com##+js(rc, TeaserPage, body.TeaserPage)
thetimes.com##div#paywall-portal-page-footer
theweek.com##+js(rc, paywall-locker, div.paywall-locker)
theweek.com##div.kiosq-main-layer
thewrap.com##+js(cookie-remover, blaize_session)
timeshighereducation.com##+js(rc, paywall-fade, div.paywall-fade)
timeshighereducation.com##div.paywall-active
tomshardware.com##+js(rc, paywall-locker, div.paywall-locker, stay)
tomshardware.com##div#kiosq-app-paywall-js
unherd.com##+js(ra, id, div#premiumcontent)
unherd.com##div#premiumpreview
valeursactuelles.com##div.qiota
valeursactuelles.com##+js(ra, class, div.qiota_reserve, stay)
/\.vn\.at\/.+\/\d{4}\//$inline-script,domain=vn.at
||washingtonpost.com/*/tetro-client/$script,~third-party
||account.winnipegfreepress.com/api/v*/auth/identify$xmlhttprequest,~third-party
winnipegfreepress.com##.billboard-ad-space,.ad,.article-ad,.fixed-sky
worldeconomics.com##+js(rc, blurred, div.blurred, stay)
worldeconomics.com##+js(rc, blurredImage, div.blurredImage, stay)
worldeconomics.com##+js(rc, noscroll, body.noscroll, stay)
worldeconomics.com##div#paywall,div.StickyFooter,div#scrollable
||ynet.co.il/*/article/*?rel=plus$inline-script
ynet.co.il###yitwall:remove()
! Advance Local
al.com,cleveland.com,lehighvalleylive.com,masslive.com,mlive.com,nj.com,oregonlive.com,pennlive.com,silive.com,syracuse.com##+js(rc, article__paragraph--blur, .article__paragraph--blur, stay)
al.com,cleveland.com,lehighvalleylive.com,masslive.com,mlive.com,nj.com,oregonlive.com,pennlive.com,silive.com,syracuse.com##+js(set, window.adiData.entryTags, 0)
! Arizent
accountingtoday.com,americanbanker.com,benefitnews.com,bondbuyer.com,dig-in.com,financial-planning.com,nationalmortgagenews.com##+js(set, window.contentGating.ungate, true)
! Australian Community Media
bendigoadvertiser.com.au,bordermail.com.au,canberratimes.com.au,centralwesterndaily.com.au,dailyadvertiser.com.au,dailyliberal.com.au,examiner.com.au,illawarramercury.com.au,newcastleherald.com.au,northerndailyleader.com.au,standard.net.au,theadvocate.com.au,thecourier.com.au,westernadvocate.com.au##+js(rc, subscribe-truncate, .subscribe-truncate)
bendigoadvertiser.com.au,bordermail.com.au,canberratimes.com.au,centralwesterndaily.com.au,dailyadvertiser.com.au,dailyliberal.com.au,examiner.com.au,illawarramercury.com.au,newcastleherald.com.au,northerndailyleader.com.au,standard.net.au,theadvocate.com.au,thecourier.com.au,westernadvocate.com.au##+js(rc, subscriber-hider, .subscriber-hider)
bendigoadvertiser.com.au,bordermail.com.au,canberratimes.com.au,centralwesterndaily.com.au,dailyadvertiser.com.au,dailyliberal.com.au,examiner.com.au,illawarramercury.com.au,newcastleherald.com.au,northerndailyleader.com.au,standard.net.au,theadvocate.com.au,thecourier.com.au,westernadvocate.com.au##+js(rc, hidden, div.flex-col div.hidden, stay)
bendigoadvertiser.com.au,bordermail.com.au,canberratimes.com.au,centralwesterndaily.com.au,dailyadvertiser.com.au,dailyliberal.com.au,examiner.com.au,illawarramercury.com.au,newcastleherald.com.au,northerndailyleader.com.au,standard.net.au,theadvocate.com.au,thecourier.com.au,westernadvocate.com.au##+js(ra, style, html[style], stay)
bendigoadvertiser.com.au,bordermail.com.au,canberratimes.com.au,centralwesterndaily.com.au,dailyadvertiser.com.au,dailyliberal.com.au,examiner.com.au,illawarramercury.com.au,newcastleherald.com.au,northerndailyleader.com.au,standard.net.au,theadvocate.com.au,thecourier.com.au,westernadvocate.com.au##+js(ra, style, body[style], stay)
bendigoadvertiser.com.au,bordermail.com.au,canberratimes.com.au,centralwesterndaily.com.au,dailyadvertiser.com.au,dailyliberal.com.au,examiner.com.au,illawarramercury.com.au,newcastleherald.com.au,northerndailyleader.com.au,standard.net.au,theadvocate.com.au,thecourier.com.au,westernadvocate.com.au##+js(ra, class, div[class^="gradient-mask-"], stay)
bendigoadvertiser.com.au,bordermail.com.au,canberratimes.com.au,centralwesterndaily.com.au,dailyadvertiser.com.au,dailyliberal.com.au,examiner.com.au,illawarramercury.com.au,newcastleherald.com.au,northerndailyleader.com.au,standard.net.au,theadvocate.com.au,thecourier.com.au,westernadvocate.com.au##div.blocker,.story-generic__iframe,div.transition-all,div[id^="headlessui-dialog"]
! Condé Nast
/\.com\/[-\w]+$/$script,~third-party,domain=architecturaldigest.com|bonappetit.com|cntraveler.com|epicurious.com|gq.com|newyorker.com|vanityfair.com|vogue.com|wired.com
/www\.vogue\.co\.uk\/[-\w]+$/$script,~third-party
||voguebusiness.com/journey/compiler/build-*.js$script,~third-party
voguebusiness.com##+js(cookie-remover, userId)
! Crain Communications
adage.com,autonews.com,chicagobusiness.com,crainscleveland.com,crainsdetroit.com,crainsgrandrapids.com,crainsnewyork.com,modernhealthcare.com,pionline.com,plasticsnews.com,rubbernews.com,tirebusiness.com,utech-polyurethane.com##+js(set, window.Fusion.globalContent._id, 0)
adage.com,autonews.com,chicagobusiness.com,crainscleveland.com,crainsdetroit.com,crainsgrandrapids.com,crainsnewyork.com,modernhealthcare.com,pionline.com,plasticsnews.com,rubbernews.com,tirebusiness.com,utech-polyurethane.com##+js(set, window.Fusion.globalContent.content_restrictions, {})
.com/profiles/*/crain_pelcro_user.js$script,~third-party,domain=360dx.com|genomeweb.com|precisionmedicineonline.com
european-rubber-journal.com##+js(rc, truncated, div.truncated)
european-rubber-journal.com##div.article-overlay,div.gradient
! Daily Mail Group UK
dailymail.co.uk,mailonsunday.co.uk,thisismoney.co.uk##+js(rc, is-paywalled-article, body.is-paywalled-article)
||dailymail.co.uk/static/mol-adverts/$script
! GEDI.it sites
||huffingtonpost.it/*/news/$inline-script
||lastampa.it/*/news/$inline-script
huffingtonpost.it,lastampa.it##+js(cookie-remover, blaize_session)
huffingtonpost.it,lastampa.it##aside#widgetDP,div[id^="adv"]
||scripts.repubblica.it/pw/pw.js$script,domain=italian.tech|moda.it
italian.tech,moda.it##div#ph-paywall:remove()
italian.tech,moda.it##+js(ra, style, div#article-body, stay)
! Groupe La Dépêche
centrepresseaveyron.fr,journaldemillau.fr,ladepeche.fr,lindependant.fr,midilibre.fr,nrpyrenees.fr,petitbleu.fr,rugbyrama.fr##+js(ra, style|data-state, div.p402_premium)
centrepresseaveyron.fr,journaldemillau.fr,ladepeche.fr,lindependant.fr,midilibre.fr,nrpyrenees.fr,petitbleu.fr,rugbyrama.fr##div.paywall
! Groupe SudOuest.fr
sudouest.fr,charentelibre.fr,larepubliquedespyrenees.fr##div.article-premium-footer,div.footer-premium,div.article-body-wrapper.visible-not-premium,div.pub,div.ph-easy-subscription
sudouest.fr,charentelibre.fr,larepubliquedespyrenees.fr##+js(rc, visible-premium, div.visible-premium)
! Groupe Nice-Matin
||nicematin.com/build/js/viewpay.*.js$script,domain=monacomatin.mc|nicematin.com|varmatin.com
! Grupo El Comercio
||diariocorreo.pe/pf/dist/engine/react.js$script,~third-party
||elcomercio.pe/pf/dist/engine/react.js$script,~third-party
||gestion.pe/pf/dist/engine/react.js$script,~third-party
diariocorreo.pe,elcomercio.pe,gestion.pe##+js(ra, class|style, .paywall)
diariocorreo.pe,elcomercio.pe,gestion.pe##+js(rc, story-contents--fade, p.story-contents--fade)
diariocorreo.pe,elcomercio.pe,gestion.pe##div[class^="content_gpt"]
! Grupo El Mercurio
||elmercurio.com/assets/js/merPramV2.js$script,~third-party
||elmercurio.com/assets/js/vendor/modal.js$script,~third-party
||emol.cl/js/deportes/FuncionesComun.min.js$script,domain=elmercurio.com
||emol.cl/assets/js/merPramV2.js$script,domain=elmercurio.com
||emol.cl/assets/js/vendor/modal.js$script,domain=elmercurio.com
elmercurio.com##+js(rc, lessreadmore, article.lessreadmore, stay)
elmercurio.com##div[id*="bt_readmore_"]
||australvaldivia.cl/impresa/*/assets/vendor.js$script,~third-party
||mercuriovalpo.cl/impresa/*/assets/vendor.js$script,~third-party
||pasedigital.cl/API/User/Status$script,domain=australvaldivia.cl|mercuriovalpo.cl
! Grupo Prensa Ibérica
diaridegirona.cat,diariocordoba.com,diariodeibiza.es,diariodemallorca.es,elcorreogallego.es,elcorreoweb.es,eldia.es,elperiodico.com,elperiodicodearagon.com,elperiodicoextremadura.com,elperiodicomediterraneo.com,epe.es,farodevigo.es,informacion.es,laopinioncoruna.es,laopiniondemalaga.es,laopiniondemurcia.es,laopiniondezamora.es,laprovincia.es,levante-emv.com,lne.es,mallorcazeitung.es,regio7.cat,superdeporte.es##+js(rc, ft-helper-closenews, p.ft-helper-closenews, stay)
! Gruppo SAE
gazzettadimodena.it,gazzettadireggio.it,iltirreno.it,lanuovaferrara.it,lanuovasardegna.it##+js(cookie-remover, /__mtr$/)
gazzettadimodena.it,gazzettadireggio.it,iltirreno.it,lanuovaferrara.it,lanuovasardegna.it##div.MuiSnackbar-root
! Hearst Communications (magazines)
.com/_assets/jam/$script,~third-party,domain=bicycling.com|cosmopolitan.com|countryliving.com|delish.com|elle.com|elledecor.com|esquire.com|goodhousekeeping.com|harpersbazaar.com|housebeautiful.com|menshealth.com|oprahdaily.com|popularmechanics.com|prevention.com|roadandtrack.com|runnersworld.com|townandcountrymag.com|womenshealthmag.com
! Hearst Communications (newspapers)
ctinsider.com,ctpost.com,expressnews.com,houstonchronicle.com,nhregister.com,sfchronicle.com,statesman.com,timesunion.com##div#mod-target-div
ctinsider.com,ctpost.com,expressnews.com,houstonchronicle.com,nhregister.com,sfchronicle.com,statesman.com,timesunion.com##body:style(overflow: visible!important)
! Il Messaggero (+ regional)
||cedscdn.it/*/PaywallMeter.js$script,domain=corriereadriatico.it|ilgazzettino.it|ilmattino.it|ilmessaggero.it|quotidianodipuglia.it
||cedsdigital.it/*/PaywallMeter.js$script,domain=corriereadriatico.it|ilgazzettino.it|ilmattino.it|ilmessaggero.it|quotidianodipuglia.it
corriereadriatico.it,ilgazzettino.it,ilmattino.it,ilmessaggero.it,quotidianodipuglia.it##+js(ra, subscriptions-section, [subscriptions-section="content"])
corriereadriatico.it,ilgazzettino.it,ilmattino.it,ilmessaggero.it,quotidianodipuglia.it##[subscriptions-section="content-not-granted"]
! Industry Dive
||*dive.com/static/js/dist/contentGate.bundle.js$script,~third-party
.com/static/js/dist/contentGate.bundle.js$script,~third-party,domain=cfo.com|pharmavoice.com|proformative.com|socialmediatoday.com
! Landwirtschaftsverlag
profi.de,topagrar.com,wochenblatt.com##+js(ra, class|style, div.paywall-full-content[style])
profi.de,wochenblatt.com##div.m-paywall__textFadeOut,div[id^="paymentprocess-"]
||topagrar.com/*/news/$inline-script
topagrar.com##div.paywall-package
! Madsack sites
cz.de,dewezet.de,dieharke.de,dnn.de,gnz.de,goettinger-tageblatt.de,haz.de,kn-online.de,landeszeitung.de,ln-online.de,lvz.de,maz-online.de,ndz.de,neuepresse.de,op-marburg.de,ostsee-zeitung.de,paz-online.de,remszeitung.de,rga.de,rnd.de,saechsische.de,siegener-zeitung.de,szlz.de,sn-online.de,solinger-tageblatt.de,tah.de,torgauerzeitung.de,waz-online.de##+js(set, window.Fusion.globalContent.isPaid, false)
! Maine Trust for Local News
||bc.*.com/script.js$script,~third-party,domain=centralmaine.com|pressherald.com|sunjournal.com
! McClatchy Group
||mcclatchy.com/mcc-paywall.js$script,third-party
! Mediahuis Noord
||ndcmediagroep.nl/js/evolok/$script,third-party
! MediaNews Group & Tribune Publishing Company
.com/wp-content/plugins/loader-wp/static/loader.min.js$script,~third-party
bostonherald.com,denverpost.com,eastbaytimes.com,mercurynews.com,ocregister.com,pressenterprise.com,sandiegouniontribune.com,twincities.com##+js(ra, subscriptions-section, [subscriptions-section="content"])
bostonherald.com,denverpost.com,eastbaytimes.com,mercurynews.com,ocregister.com,pressenterprise.com,sandiegouniontribune.com,twincities.com##[subscriptions-section="content-not-granted"]
! Motor Presse Stuttgart
.de/thenewsbar/config/$xmlhttprequest,~third-party,domain=aerokurier.de|auto-motor-und-sport.de|flugrevue.de|motorradonline.de|womenshealth.de
! Oahu Publications
staradvertiser.com##div.fade
staradvertiser.com##+js(ra, style, div#hsa-paywall-content[style], stay)
staradvertiser.com##+js(rc, overflow-hidden, body.overflow-hidden, stay)
hawaiitribune-herald.com,thegardenisland.com,westhawaiitoday.com##+js(ra, style, div#single-paywall, stay)
hawaiitribune-herald.com,thegardenisland.com,westhawaiitoday.com##div#single-login-box,div#single-excerpt
! Persgroep
/temptation/resolve$xmlhttprequest,~third-party,domain=demorgen.be|flair.nl|humo.be|libelle.nl|margriet.nl|parool.nl|trouw.nl|volkskrant.nl
||temptation.*/temptation.js$script,~third-party,domain=demorgen.be|flair.nl|humo.be|libelle.nl|margriet.nl|parool.nl|trouw.nl|volkskrant.nl
@@||myprivacy-static.dpgmedia.net/consent.js$script,third-party
@@/wrapperMessagingWithoutDetection.js$script,~third-party,domain=demorgen.be|flair.nl|humo.be|libelle.nl|margriet.nl|parool.nl|trouw.nl|volkskrant.nl
! DPG ADR (no scroll)
||temptation.*/temptation.js$script,~third-party,domain=ad.nl|bd.nl|bndestem.nl|destentor.nl|ed.nl|gelderlander.nl|pzc.nl|tubantia.nl|hln.be
||temptation.*/rest/$xmlhttprequest,~third-party,domain=ad.nl|bd.nl|bndestem.nl|destentor.nl|ed.nl|gelderlander.nl|pzc.nl|tubantia.nl|hln.be
! Ringier Axel Springer Polska
auto-swiat.pl,businessinsider.com.pl,forbes.pl,komputerswiat.pl,newsweek.pl,onet.pl##+js(ra, class|style, div.contentPremium[style])
businessinsider.com.pl##div#content-premium-offer
! Südwest Media Network
schwarzwaelder-bote.de,stuttgarter-nachrichten.de,stuttgarter-zeitung.de##+js(rc, restricted-area, div.restricted-area, stay)
schwarzwaelder-bote.de,stuttgarter-nachrichten.de,stuttgarter-zeitung.de##div.mod-paywall
! Tamedia.ch Group
24heures.ch,bazonline.ch,derbund.ch,tagesanzeiger.ch,tdg.ch##+js(cookie-remover, xbc)
! TechTarget sites
computerweekly.com,lemagit.fr,techtarget.com##+js(rc, paywall, div.paywall, stay)
computerweekly.com,lemagit.fr,techtarget.com##p#firstP,div#inlineRegistrationWrapper
! The Epoch Times sites (main + br|cz|de|fr|il|jp|ro)
||theepochtimes.com/rules/get$xmlhttprequest,~third-party
||epochbase.com/libs/paywall*.js$script,third-party
||epochbase.com/rules/get$xmlhttprequest,third-party
||epochbase.eu/rules/get$xmlhttprequest,third-party
/\/epoch\.org\.il\/.+\/\d{5,}\//$inline-script,domain=epoch.org.il
! The Local Group (EU)
thelocal.at,thelocal.ch,thelocal.com,thelocal.de,thelocal.dk,thelocal.es,thelocal.fr,thelocal.it,thelocal.no,thelocal.se##+js(ra, style, div#articleBody, stay)
thelocal.at,thelocal.ch,thelocal.com,thelocal.de,thelocal.dk,thelocal.es,thelocal.fr,thelocal.it,thelocal.no,thelocal.se##p#articleBodyForbidden,div.tl-ad-container,div.ml-manual-widget-container
! additional adblocker-fix
||flowerstreatment.com^$third-party
||guidecent.com^$script,third-party
||memberstack.com/scripts/v*/memberstack.js$script,third-party
policorner.ca##div.free-text,div.subscribe-box
/wp-content/plugins/incognito_dectector/$script,~third-party
##button.everlit-overlay-btn
||gyrovague.com$xmlhttprequest,third-party
||top-fwz1.mail.ru$script,third-party
||jeuneafrique.com/cdn-cgi/trace$xmlhttprequest,~third-party
||assets.guim.co.uk/assets/SignInGate*.js$script,domain=theguardian.com
theguardian.com##[name="SlotBodyEnd"],div[data-cy="contributions-liveblog-epic"]
timesofindia.indiatimes.com##+js(ra, style, body[style], stay)
timesofindia.indiatimes.com##div[class]:has(>div.loginWallPopUP)
@@||consentmanager.net$script,third-party
#@#.cmpwrapper
@@||cookielaw.org^$xmlhttprequest,domain=blick.ch
@@||sdk.privacy-center.org^$script,third-party
@@/wrapperMessagingWithoutDetection.js$script,~third-party,domain=handelsblatt.com
!##div#didomi-host
##+js(rc, didomi-popup-open, body.didomi-popup-open)
||htlbid.com$script,third-party
! flip-pay
||flip-pay.com/*/flip-pay.js$script,third-party,domain=clareecho.ie|euractiv.com|pressgazette.co.uk|thedailymash.co.uk
clareecho.ie##+js(rc, td-post-content, div.td-post-content)
! Wallkit
##+js(ra, class, div.wkwp-paywall)
##div.wkwp-paywall-block
! custom sites
.com/webfiles/*/js/metering.js$script,third-party,domain=hbook.com|libraryjournal.com|slj.com
20minutes.fr##+js(rc, qiota_reserve, div.qiota_reserve)
||20minutes.fr/v-ajax/subscribe-modal$xmlhttprequest,~third-party
aaii.com##+js(rc, fadeout, .fadeout)
aaii.com##.greybox-signup
aftenposten.no##div.hyperion-css-1cc2qe9,div[class^="advertory-"],button[aria-controls="summary-details"]
aftenposten.no##body:style(overflow: auto !important)
aftenposten.no##+js(ra, class, div#summary-details)
amboss.com##+js(cookie-remover, ssobma)
amboss.com##div#optly-remaining-articles-banner,div[class^="InfoBanner_InfoBanner"]
||anandabazar.com/subscription-assets/js/paywall*.js$script,~third-party
||anandabazar.com/*/cid/$inline-script
anandabazar.com##div.paywallouterbox,div.readarticlebox,div.showmorebox
anandabazar.com##+js(ra, class, div.readmoreouterbox, stay)
anandabazar.com##+js(ra, id, article#outerboxarticlebox, stay)
anandabazar.com##+js(ra, class, div.expcontainer, stay)
||tinypass.com/api/tinypass.min.js$script,domain=arabianbusiness.com
arabianbusiness.com##+js(ra, class, div.ev-meter-content, stay)
||arktimes.com/wp-content/plugins/newspack-plugin/dist/memberships-gate-metering.js$script,~third-party
artsprofessional.co.uk##+js(cookie-remover, /pw$/)
||atribuna.com.br/assets/js-v*/story.js$script,~third-party
babi.sh##+js(ra, style, div[style*="filter:blur"], stay)
babi.sh##+js(ra, style, div[style*="; overflow: hidden"][style*="; height:"], stay)
babi.sh##div[style="width: 100%; opacity: 1; transform: none;"]
bisnow.com##+js(ra, style, div.story-container > p[style], stay)
bisnow.com##div.storyLogin
bizwest.com##div.fp-paywall
bizwest.com##+js(ra, class, div.fp-content)
boredpanda.com##+js(rc, open-list-items, div.open-list-items)
boredpanda.com##div#show-all-images-block-premium
||boston.com/api/tinypass.min.js$script,~third-party
brainly.com,brainly.com.br##+js(set-local-storage-item, /^/, $remove$)
||account.brandonsun.com/api/v*/auth/identify$xmlhttprequest,~third-party
brusselstimes.com##+js(ra, style, div[style*="height: 0;"], stay)
businessden.com,richmondbizsense.com##+js(ra, class, div.cp-paywall-user)
businessden.com,richmondbizsense.com##div#copperpress-paywall
businesstoday.in##+js(cookie-remover, magazineSession)
businesstoday.in##div#magazinePayWallStrip
||nitrocdn.com/*/paywall.$script,domain=capitalaberto.com.br
cardiologie-pratique.com##+js(ra, class, div.wrap-node, stay)
||jsdelivr.net/*/catholicherald-auth0-poool-*/index.js$script,third-party,domain=thecatholicherald.com
cmcmarkets.com##+js(rc, activePaywall, .activePaywall)
||cnv-medien.de$inline-script
||commercialobserver.com/wp-admin/admin-ajax.php$xmlhttprequest,~third-party
connexionfrance.com##+js(cookie-remover, /^/)
connexionfrance.com##div#subscribe-banner
||darwin.cx/dcxpw-init.js$script,domain=cspdailynews.com|restaurantbusinessonline.com
||diariodonordeste.verdesmares.com.br/js/com.atex.gong.paywall.membership.js$script,~third-party
divisare.com##div.blocker
divisare.com##+js(ra, style, body[style], stay)
dominionpost.com##+js(rc, entry-content, article > div.entry-content)
elfinancierocr.com##+js(ra, style, div.article-body-wrapper__styled[style])
elfinancierocr.com##div.post
epaper.indiatimes.com##div.epaperBlockerWrap
/\/every\.to\/[-\w]+\//$inline-script
every.to##+js(ra, style, div#post-body-full, stay)
||eviemagazine.com/api/trpc/post.paywall$xmlhttprequest,~third-party
forbes.sk##+js(ra, style, div.post-content-soft-paywall, stay)
forbes.sk##div#custom-html-locker
gocomics.com##div[data-paywall]
gocomics.com##html:style(overflow: auto !important;)
||golf.com/wp-content/themes/golf/compiled/js/wsumApp.js$script,~third-party
gothamist.com##+js(rc, leadin, div.leadin, stay)
gothamist.com##div.wall-wrapper
hartfordbusiness.com##+js(ra, style, div.expandable-paywall-premium-content[style], stay)
hartfordbusiness.com##div.paywall-container
hcn.org##+js(ra, content, meta[name="UID"])
heatmap.news##+js(ra, style, div.body-description, stay)
heatmap.news##div.regwall-container
hsfo.dk##+js(ra, class, div.article__parts--paywalled, stay)
impactloop.com,impactloop.se##+js(ra, data-display-if, div[data-display-if="paid"], stay)
impactloop.com,impactloop.se##div.paywall,div[class^="reg-wall-"],div#article-preview
inman.com##+js(rc, paywalled-block, .paywalled-block)
inman.com##+js(ra, class, div.entry-content-inner)
inman.com##div.content-wrap > div:not([class]):style(margin: 5% !important)
inman.com##.ism-article-block
||cloudfront.net/imonkey-blog-*.min.js$script,domain=insidermonkey.com
internationalepolitik.de##+js(set-local-storage-item, paywall-nids, $remove$)
||invmed.co/bootstrap/bootstrap.min.js$script,domain=investing.com
ipsoa.it##+js(ra, style, div.paywall)
||jerseyeveningpost.com$inline-script
jewishinsider.com##+js(rc, paywalled-content, section.paywalled-content, stay)
jewishinsider.com##+js(rc, whitePopup, body.whitePopup, stay)
jewishinsider.com##div.regModalOuter
||jornaldocomercio.com/*/json/paywall.json$xmlhttprequest,~third-party
jornaljoca.com.br##+js(acis, $, paywall)
kommersant.ru##+js(rc, doc--regwall, article.doc--regwall, stay)
kommersant.ru##section.regwall
kunststoffe.de,qz-online.de##+js(ra, style, div[style^="filter: blur"], stay)
kunststoffe.de,qz-online.de##dialog#paywall-dialog
||lapost.com$inline-script
lapost.com##+js(ra, style, div.article-content, stay)
||lataco.com/_next/*/%5B...slug*.js$script,~third-party
||lasvegasadvisor.com/opt/*.js$script,~third-party
||lasvegasadvisor.com/js/access.min.js$script,~third-party
lavialibera.it##+js(ra, class, div.text-preview)
lavialibera.it##div.save_modal
legalbites.in##+js(ra, class, div.hide.paywall-content)
legalbites.in##div#subscription_paid_message,div.restricted_message > div.story
lepetitjournal.net##.message-restricted-woocommerce
lepetitjournal.net##+js(rc, excerpt, div.excerpt)
lydogbillede.dk,lydogbilde.no##+js(rc, thecontent, div.thecontent)
lydogbillede.dk,lydogbilde.no##+js(ra, style, div#MoreLink_content-container[style])
lydogbillede.dk,lydogbilde.no##div.paywallbox,div#MoreLink_fade-out-div
marketnews.com##+js(ra, class, div.body-description)
||cloudfront.net/js/prometeo-media/$script,domain=menorca.info|ultimahora.es
meritnation.com##.view-full-answer
meritnation.com##+js(rc, maxHeight75px, div.exp_content.maxHeight75px)
||moscout.com$inline-script
museumsassociation.org##+js(rc, paywall, body.paywall)
museumsassociation.org##+js(ra, style, body[style], stay)
museumsassociation.org##div#paywall-wrapper,div.advertising
musicbusinessworldwide.com##+js(ra, class, .mb-article__body)
nacion.com##+js(ra, style, div.article-body-wrapper__styled[style], stay)
nacion.com##div.post
narcity.com##+js(ra, style, div.body-description[style], stay)
narcity.com##div#login-wall,div#overlay,div.brid-container,div.brandsnippet-article,div[class$='ad-wrapper']
||newbostonpost.com/*/paywall/js/main.js$script,~third-party
newoxfordreview.org##+js(rc, not-viewable, div.not-viewable)
nu.nl##+js(rc, authorized-content, div.authorized-content, stay)
nu.nl##+js(rc, semi-authorized-content, div.semi-authorized-content, stay)
nu.nl##article#LOGIN
||odt.co.nz/bwtw/scripts/tw.js$script,~third-party
odt.co.nz##+js(ra, property, div[property="content:encoded"])
opopular.com.br##+js(rc, restricted, div.restricted, stay)
opopular.com.br##div.PJLV-ihxtsVt-css
||opovo.com.br/*/js/auth/auth_new_menu.min.js$script,~third-party
||pebmed.com.br/wp-content/*/paywall/dist/js/app.js$script,~third-party
||perspectivemedia.com/wp-admin/admin-ajax.php$xmlhttprequest,~third-party
perspectivemedia.com##div.hustle-ui
popbitch.com##+js(ra, class, div[class*="-premium"])
psypost.org##+js(cookie-remover, issuem_lp)
publishersweekly.com##+js(ra,class|style,div#contentdiv.loggedInOnly,stay)
publishersweekly.com##div#contentdiv.loggedOutOnly
||racketmn.com/_next/*/%5BsiteSlug*.js$script,~third-party
||racquetmag.com/_next/*/%5BsiteSlug*.js$script,~third-party
||rdhmag.com$inline-script
rockdelux.com##+js(ra, class|style, body, stay)
rockdelux.com##+js(ra, style, div#body, stay)
rockdelux.com##div.bg-paywall
scroll.in##+js(rc, article-locked, article.article-locked, stay)
||serenitymarkets.com/wp-content/themes/Divi-child/assets/js/encriptar.js$script,~third-party
serenitymarkets.com##+js(ra, class, div.blur_content, stay)
||shrm.org/*/js/paywall*.js$script,~third-party
skepticalinquirer.org##+js(rc, google-bot, div.google-bot, stay)
solarserver.de##+js(ra, style, div.paywall)
solarserver.de##+js(ra, class, div.paywall-blurred)
solarserver.de##div.paywall-box
/\.solicitorsjournal\.com\/_next\/static\/chunks\/\d.+\.js/$script,domain=solicitorsjournal.com,~third-party
||southernstar.ie/js/tollbridge.js$script,~third-party
speakup.it##div.paywall-container
||spectrejournal.com/wp-content/plugins/elementor/*/dialog.min.js$script,~third-party
spiked-online.com##+js(set-local-storage-item, nudges, {})
splainer.in##+js(rc, hide-section, .hide-section)
splainer.in##.subscription-prompt
||splinter.com/wp-content/themes/pastemagazine/js/pm_custom.js$script,~third-party
standcolumbia.org##+js(ra, class, div.stu-lock-content, stay)
standcolumbia.org##div.stu-blur-overlay
stateaffairs.com##div.c-memberships-message
stateaffairs.com##+js(rc, access-restricted, body.access-restricted)
stockunlock.com##div[class*="-root"][class*="css-"]:style(filter: none !important; pointer-events: auto !important)
stockunlock.com##div.css-coxdc8
strangematters.coop##+js(cookie-remover, pmpro_lpv_count)
subscriptioninsider.com##+js(rc, dialog-prevent-scroll, body.dialog-prevent-scroll, stay)
subscriptioninsider.com##div.dialog-widget
!#if (adguard_app_ios)
/\.subscriptioninsider\.com\/.+\/(\w+-){3,}/$inline-script,domain=subscriptioninsider.com
!#endif
thecore.in##+js(ra, class, div.paywall-content)
thecore.in##div.story,div#subscription_paid_message,div#footer_login_wall
thecountersignal.com##+js(ra, class, body.single div.elementor-widget-container)
||thedriftmag.com/wp-content/plugins/drift-paywall-plugin/$script,~third-party
theindianalawyer.com##+js(rc, restricted-non-subscriber, article.restricted-non-subscriber)
theindianalawyer.com##+js(ra, style, article-content>p)
theindianalawyer.com##div#vue-growler,div#js-modal
thejc.com##+js(ra, class, div.paywall, stay)
thejc.com##div.poool-widget
||thenationalpulse.com/wp-content/*/assets/js/national-pulse.js$script,~third-party
||theschooloflife.com/app/plugins/*/woocommerce.min.js$script,~third-party
aap.thestreet.com##+js(rc, is-paywalled, body.is-paywalled)
realmoney.thestreet.com##+js(cookie-remover, /^PWT/)
thefederal.com##+js(ra, class, div.hide.paywall-content, stay)
thefederal.com##div#premium_access_message_text,div.para_text_cl,div#lock_message,div.login_space
||thetablet.org$inline-script
thetablet.org##+js(rc, gated-content, body.gated-content)
tidningenridsport.se##+js(ra, class|style, div.mctos)
tidningenridsport.se##+js(rc, cli-barmodal-open, body.cli-barmodal-open)
tidningenridsport.se##div.locked
trailsoffroad.com##.paywall
wbjournal.com##+js(ra, style, div.expandable-paywall-premium-content, stay)
wbjournal.com##div.paywall-container
wbez.org##div.email-wall-content-lock:remove()
||zeitzeichen.net/sites/default/files/js/js_*.js$script,~third-party
! General (amp)
||ampproject.org/*/amp-access-$script,domain=~cambridge.org|~cmjornal.pt
||ampproject.org/*/amp-subscriptions-$script
@@||ampproject.org/v0/amp-consent-$script
artnet.com,bostonglobe.com,dallasnews.com,latimes.com,sandiegouniontribune.com##+js(ra, subscriptions-section, [subscriptions-section="content"])
artnet.com,bostonglobe.com,dallasnews.com,latimes.com,sandiegouniontribune.com##[subscriptions-section="content-not-granted"]
digiday.com,inc42.com,indianexpress.com,indiatoday.in,mid-day.com,telegraph.co.uk##+js(ra, amp-access-hide, [amp-access][amp-access-hide])
! French/Belgian sites
amp.elle.fr,challenges.fr,sciencesetavenir.fr##+js(ra, amp-access-hide, [amp-access][amp-access-hide])
! Groupe IPM
dhnet.be,lalibre.be,lavenir.net,moustique.be##+js(rc, is-preview, div.preview)
dhnet.be,lalibre.be,lavenir.net,moustique.be##+js(rc, is-hidden, div.is-hidden)
! Australia News Corp
adelaidenow.com.au,cairnspost.com.au,codesports.com.au,couriermail.com.au,dailytelegraph.com.au,geelongadvertiser.com.au,goldcoastbulletin.com.au,heraldsun.com.au,ntnews.com.au,theaustralian.com.au,thechronicle.com.au,themercury.com.au,townsvillebulletin.com.au,weeklytimesnow.com.au##+js(ra, subscriptions-section, [subscriptions-section="content"])
adelaidenow.com.au,cairnspost.com.au,codesports.com.au,couriermail.com.au,dailytelegraph.com.au,geelongadvertiser.com.au,goldcoastbulletin.com.au,heraldsun.com.au,ntnews.com.au,theaustralian.com.au,thechronicle.com.au,themercury.com.au,townsvillebulletin.com.au,weeklytimesnow.com.au##[subscriptions-section="content-not-granted"]
! Italian sites
corriere.it,ilfattoquotidiano.it##+js(ra, subscriptions-section, [subscriptions-section="content"])
corriere.it,ilfattoquotidiano.it##[subscriptions-section="content-not-granted"]
! Quotidiano.net (+ regional)
ilgiorno.it,ilrestodelcarlino.it,iltelegrafolivorno.it,lanazione.it,quotidiano.net##+js(ra, amp-access-hide, [amp-access][amp-access-hide])
! McClatchy Group
amp.bnd.com,amp.charlotteobserver.com,amp.elnuevoherald.com,amp.fresnobee.com,amp.kansas.com,amp.kansascity.com,amp.kentucky.com,amp.mcclatchydc.com,amp.miamiherald.com,amp.newsobserver.com,amp.sacbee.com,amp.star-telegram.com,amp.thestate.com,amp.tri-cityherald.com##+js(ra, subscriptions-section, [subscriptions-section="content"])
amp.bnd.com,amp.charlotteobserver.com,amp.elnuevoherald.com,amp.fresnobee.com,amp.kansas.com,amp.kansascity.com,amp.kentucky.com,amp.mcclatchydc.com,amp.miamiherald.com,amp.newsobserver.com,amp.sacbee.com,amp.star-telegram.com,amp.thestate.com,amp.tri-cityherald.com##[subscriptions-section="content-not-granted"]
amp.sacbee.com##+js(ra, subscriptions-action, div[subscriptions-action][subscriptions-display="NOT data.hasError"])
! Spanish/Portugese/Brazilian/Colombian sites
amp.elmundo.es,amp.expansion.com,amp.marca.com,elespanol.com,em.com.br,folha.uol.com.br,gazetadopovo.com.br##+js(ra, subscriptions-section, [subscriptions-section="content"])
amp.elmundo.es,amp.expansion.com,amp.marca.com,elespanol.com,em.com.br,folha.uol.com.br,gazetadopovo.com.br##[subscriptions-section="content-not-granted"]
eldiario.es,elespectador.com,elpais.com,estadao.com.br,infolibre.es,sabado.pt##+js(ra, amp-access-hide, [amp-access][amp-access-hide])
! Grupo Vocento
abc.es,canarias7.es,diariosur.es,diariovasco.com,elcomercio.es,elcorreo.com,eldiariomontanes.es,elnortedecastilla.es,hoy.es,ideal.es,larioja.com,lasprovincias.es,laverdad.es,lavozdigital.es##+js(ra, amp-access-hide, [amp-access][amp-access-hide])
abc.es##+js(ra, id, body#top)

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,918 @@
// ==UserScript==
// @name Bypass Paywalls Clean - es/pt/south america
// @version 4.3.5.2
// @description Bypass Paywalls of news sites
// @author magnolia1234
// @downloadURL https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc.es.pt.user.js
// @updateURL https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc.es.pt.user.js
// @homepageURL https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters
// @supportURL https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters
// @license MIT; https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=LICENSE
// @noframes
// @match *://*.es/*
// @match *://*.abcmais.com/*
// @match *://*.abril.com.br/*
// @match *://*.ara.cat/*
// @match *://*.arabalears.cat/*
// @match *://*.cartacapital.com.br/*
// @match *://*.clarin.com/*
// @match *://*.correiodopovo.com.br/*
// @match *://*.cronista.com/*
// @match *://*.crusoe.com.br/*
// @match *://*.diaridegirona.cat/*
// @match *://*.diariocordoba.com/*
// @match *://*.diariocorreo.pe/*
// @match *://*.diariovasco.com/*
// @match *://*.diplomatique.org.br/*
// @match *://*.dn.pt/*
// @match *://*.elcomercio.pe/*
// @match *://*.elconfidencial.com/*
// @match *://*.elcorreo.com/*
// @match *://*.elespanol.com/*
// @match *://*.elespectador.com/*
// @match *://*.elmercurio.com/*
// @match *://*.elobservador.com.uy/*
// @match *://*.elpais.com/*
// @match *://*.elperiodico.com/*
// @match *://*.elperiodicodearagon.com/*
// @match *://*.elperiodicoextremadura.com/*
// @match *://*.elperiodicomediterraneo.com/*
// @match *://*.eltiempo.com/*
// @match *://*.eltribuno.com/*
// @match *://*.eluniverso.com/*
// @match *://*.em.com.br/*
// @match *://*.emporda.info/*
// @match *://*.estadao.com.br/*
// @match *://*.exame.com/*
// @match *://*.expansion.com/*
// @match *://*.expresso.pt/*
// @match *://*.gauchazh.clicrbs.com.br/*
// @match *://*.gazetadopovo.com.br/*
// @match *://*.gestion.pe/*
// @match *://*.globo.com/*
// @match *://*.lanacion.com.ar/*
// @match *://*.lance.com.br/*
// @match *://*.larioja.com/*
// @match *://*.lasegunda.com/*
// @match *://*.latercera.com/*
// @match *://*.lavoz.com.ar/*
// @match *://*.levante-emv.com/*
// @match *://*.losandes.com.ar/*
// @match *://*.marca.com/*
// @match *://*.nsctotal.com.br/*
// @match *://*.observador.pt/*
// @match *://*.ole.com.ar/*
// @match *://*.politicaexterior.com/*
// @match *://*.regio7.cat/*
// @match *://*.revistaoeste.com/*
// @match *://*.sabado.pt/*
// @match *://*.semana.com/*
// @match *://*.uol.com.br/*
// @connect archive.fo
// @connect archive.is
// @connect archive.li
// @connect archive.md
// @connect archive.ph
// @connect archive.vn
// @grant GM.xmlHttpRequest
// @require https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc_func.js
// ==/UserScript==
(function() {
//'use strict';
window.setTimeout(function () {
var ar_grupo_clarin_domains =['clarin.com', 'lavoz.com.ar', 'losandes.com.ar', 'ole.com.ar'];
var es_epiberica_domains = ['diariodemallorca.es', 'eldia.es', 'elperiodico.com', 'epe.es', 'farodevigo.es', 'informacion.es', 'laprovincia.es', 'levante-emv.com', 'lne.es', 'mallorcazeitung.es', 'superdeporte.es'];
var es_epiberica_custom_domains = ['diaridegirona.cat', 'diariocordoba.com', 'diariodeibiza.es', 'elcorreogallego.es', 'elcorreoweb.es', 'elperiodicodearagon.com', 'elperiodicoextremadura.com', 'elperiodicomediterraneo.com', 'emporda.info', 'laopinioncoruna.es', 'laopiniondemalaga.es', 'laopiniondemurcia.es', 'laopiniondezamora.es', 'regio7.cat'];
var es_grupo_vocento_domains = ['abc.es', 'canarias7.es', 'diariosur.es', 'diariovasco.com', 'elcomercio.es', 'elcorreo.com', 'eldiariomontanes.es', 'elnortedecastilla.es', 'hoy.es', 'ideal.es', 'larioja.com', 'lasprovincias.es', 'laverdad.es', 'lavozdigital.es'];
var es_unidad_domains = ['elmundo.es', 'expansion.com', 'marca.com'];
var pe_grupo_elcomercio_domains = ['diariocorreo.pe', 'elcomercio.pe', 'gestion.pe'];
if (window.location.hostname.match(/\.(es|pt|cat)$/) || matchDomain(['diariocordoba.com', 'diariovasco.com', 'elconfidencial.com', 'elcorreo.com', 'elespanol.com', 'elpais.com', 'elperiodico.com', 'elperiodicodearagon.com', 'elperiodicoextremadura.com', 'elperiodicomediterraneo.com', 'emporda.info', 'expansion.com', 'larioja.com', 'levante-emv.com', 'marca.com', 'politicaexterior.com'])) {//spain/portugal
if (matchDomain(['ara.cat', 'arabalears.cat'])) {
if (!window.location.pathname.endsWith('.amp.html')) {
amp_redirect('div.paywall');
let ads = 'div.advertising';
hideDOMStyle(ads);
}
}
else if (matchDomain('diariodenavarra.es')) {
let paywall = document.querySelector('div#paywall_message');
if (paywall) {
removeDOMElement(paywall);
let json_script = getArticleJsonScript();
if (json_script) {
let json = JSON.parse(json_script.text);
if (json) {
let json_text = json.articleBody;
let article = document.querySelector('div.free-html');
if (json_text && article)
article.innerText = parseHtmlEntities(json_text);
}
}
}
}
else if (matchDomain('dn.pt')) {
let paywall = document.querySelector('div#metered-paywall-banner');
if (paywall) {
removeDOMElement(paywall);
let article = document.querySelector('div.paywall');
if (article) {
let article_new = getArticleQuintype();
if (article_new && article.parentNode)
article.parentNode.replaceChild(article_new, article);
}
}
}
else if (matchDomain('elconfidencial.com')) {
let premium = document.querySelector('div.newsType__content--closed');
if (premium)
premium.classList.remove('newsType__content--closed');
let ads = 'div[id^="mega_"], div[id^="roba_"]';
hideDOMStyle(ads);
}
else if (matchDomain('eldiario.es')) {
if (window.location.pathname.endsWith('.amp.html')) {
amp_unhide_access_hide('^="access"', '="NOT access"');
} else {
amp_redirect('aside.paywall');
let ads = 'div.edi-advertising, div.header-ad, aside.news-sponsored-content, div.report__wrapper';
hideDOMStyle(ads);
}
}
else if (matchDomain('elespanol.com')) {
if (window.location.pathname.endsWith('.amp.html')) {
amp_unhide_subscr_section();
} else {
let paywall = document.querySelector('div.full-suscriptor-container');
if (paywall) {
removeDOMElement(paywall);
let content_hidden = document.querySelector('div.content-not-granted-paywall');
if (content_hidden)
content_hidden.classList.remove('content-not-granted-paywall');
}
let ads = '[id*="superior"], [class*="adv"]';
hideDOMStyle(ads);
}
}
else if (matchDomain(es_unidad_domains)) {
if (!window.location.hostname.startsWith('amp.')) {
let url = window.location.href;
if (!window.location.pathname.startsWith('/mejores-colegios')) {
amp_redirect('div[class^="ue-c-article__premium"]', '', url.replace('/www.', '/amp.'));
} else if (matchDomain('elmundo.es')) {
header_nofix('main p', 'div.ue-c-article__premium');
header_nofix('table', 'div.ue-c-paywall');
}
} else {
amp_unhide_access_hide('="authorized=true"', '="authorized!=true"');
amp_unhide_subscr_section('.advertising, .ue-c-ad');
}
}
else if (matchDomain('elpais.com')) {
if (window.location.pathname.endsWith('.amp.html') || window.location.search.match(/(\?|&)outputType=amp/)) {
amp_unhide_access_hide('="vip"], [amp-access="success"', '="NOT vip"], [amp-access="NOT success"', 'div._cf');
}
let ads = 'div.ad-giga, aside.outbrain';
hideDOMStyle(ads);
}
else if (matchDomain(es_grupo_vocento_domains)) {
let paywall_sel = 'div.voc-paywall, div.container-wall-exclusive__content-login, ev-engagement[group-name^="paywall-"]';
let paywall = document.querySelectorAll(paywall_sel);
if (!window.location.pathname.endsWith('_amp.html')) {
if (paywall.length) {
let span_break = document.querySelector('span.c-text');
removeDOMElement(...paywall, span_break);
let art_hidden = document.querySelectorAll('.paywall, div.wpb_column > span');
for (let elem of art_hidden) {
let attributes = [...elem.attributes];
for (let attrib of attributes)
elem.removeAttribute(attrib.name);
if (elem.tagName === 'DIV')
elem.className = 'paywall';
}
}
hideDOMStyle('figure.paywall2 img', 3);
let div_hidden = document.querySelectorAll('article div[hidden]');
for (let elem of div_hidden) {
elem.removeAttribute('hidden');
elem.style = 'display: block !important;';
}
if (window.location.pathname.match(/[-\/]directo-/) && !document.querySelector('div#firstPost'))
header_nofix('article h1');
let ads = '.voc-advertising, div.voc-ob-wrapper, div.voc-discounts, div.ev-em-modal, span.mega-superior, div.v-adv';
hideDOMStyle(ads, 2);
} else {
amp_unhide_access_hide('="result=\'ALLOW_ACCESS\'"', '="result!=\'ALLOW_ACCESS\'"', 'div.v-adv');
let body_top = document.querySelector('body#top');
if (body_top)
body_top.removeAttribute('id');
}
let banner = 'div.container-wall-exclusive';
hideDOMStyle(banner);
}
else if (matchDomain(es_epiberica_domains) || matchDomain(es_epiberica_custom_domains)) {
let paywall = document.querySelector('p.ft-helper-closenews');
if (paywall) {
paywall.classList.remove('ft-helper-closenews');
}
if (window.location.pathname.endsWith('.amp.html') || ['amp.elperiodico.com', 'amp.epe.es'].includes(window.location.hostname)) {
let amp_images = document.querySelectorAll('figure > amp-img[src]');
for (let amp_image of amp_images) {
let elem = document.createElement('img');
elem.src = amp_image.getAttribute('src');
elem.style = 'width: 75%; margin: 0px 50px;';
amp_image.parentNode.replaceChild(elem, amp_image);
}
document.querySelectorAll('div#the-most').forEach(e => e.removeAttribute('style'));
let ads = 'amp-next-page, span.ad-signature, div.wrap, .ft-ad';
hideDOMStyle(ads);
} else {
let ads = 'div.commercial-up-full__wrapper, .ft-ad, div[class^="_mo_recs"]';
hideDOMStyle(ads);
}
}
else if (matchDomain('expresso.pt')) {
if (!window.location.hostname.startsWith('amp.')) {
let article_sel = 'div.article-content';
let paywall = document.querySelector(article_sel + ' > div.g-premium-blocker');
if (paywall) {
removeDOMElement(paywall);
let article = document.querySelector(article_sel);
if (article) {
let url = window.location.href.split(/[#\?]/)[0];
fetch(url)
.then(response => {
if (response.ok) {
response.text().then(html => {
if (html.match(/window\.__INITIAL_DATA__\s?=\s?/)) {
try {
article.innerHTML = '';
let json = JSON.parse(html.split(/window\.__INITIAL_DATA__\s?=\s?/)[1].split(';window.')[0].replace(/":undefined([,}])/g, "\":\"undefined\"$1")).nodes;
let pars = [];
for (let elem in json) {
let item = json[elem];
if (item.type === 'Layout') {
for (let elem of item.nodes) {
if (elem.type === 'MainBody')
pars = elem.nodes[0].data.content.contents;
}
break;
}
}
let parser = new DOMParser();
for (let par of pars) {
let par_new;
if (par.html) {
let doc = parser.parseFromString('<div>' + par.html + '</div>', 'text/html');
par_new = doc.querySelector('div');
} else if (par.type === 'PICTURE') {
if (par.urlOriginal) {
par_new = makeFigure(par.urlOriginal, par.caption, {style: 'width:100%'});
}
} else if (par.link && par.title) {
if (par.contents) {
par_new = document.createElement('div');
for (let elem of par.contents) {
let elem_new;
if (elem.html) {
let doc = parser.parseFromString('<div>' + elem.html + '</div>', 'text/html');
elem_new = doc.querySelector('div');
} else if (elem.urlOriginal) {
elem_new = makeFigure(elem.urlOriginal, elem.caption, {style: 'width:100%'});
}
if (elem_new)
par_new.appendChild(elem_new);
}
} else {
par_new = document.createElement('p');
let art_link = document.createElement('a');
art_link.innerText = par.title;
art_link.href = par.link;
par_new.appendChild(art_link);
}
}
if (par_new)
article.appendChild(par_new);
else
console.log(par);
}
} catch (err) {
console.log(err);
}
}
});
}
}).catch(function (err) {
false;
});
}
}
} else
ampToHtml();
}
else if (matchDomain('infolibre.es')) {
if (window.location.pathname.endsWith('.amp.html')) {
amp_unhide_access_hide('^="access"', '="NOT access"');
} else {
amp_redirect('div.paywall__wrapper');
let ads = 'div.edi-advertising, div.header-ad';
hideDOMStyle(ads);
}
}
else if (matchDomain(['lavanguardia.com', 'mundodeportivo.com'])) {
let ads = 'span.content-ad, span.hidden-ad, span.ad-unit, div.ad-div';
hideDOMStyle(ads);
}
else if (matchDomain('observador.pt')) {
let ads = 'div.obs-ad-placeholder, obs-toaster-seats, obs-moa-btn-seats';
hideDOMStyle(ads);
}
else if (matchDomain('politicaexterior.com')) {
let paywall = document.querySelector('div[class^="paywall-"]');
if (paywall) {
let article = document.querySelector('div.entry-content-text');
let json = document.querySelector('script[type="application/ld+json"]:not([class])');
if (json) {
let json_text = JSON.parse(json.text).description.replace(/&amp;nbsp;/g, '');
let article_new = document.createElement('div');
article_new.setAttribute('class', 'entry-content-text');
article_new.innerText = '\r\n' + json_text;
article.parentNode.replaceChild(article_new, article);
}
removeDOMElement(paywall);
}
}
else if (matchDomain('publico.es')) {
let ads = 'div.pb-ads';
hideDOMStyle(ads);
}
else if (matchDomain('sabado.pt')) {
if (!window.location.pathname.includes('/amp/'))
amp_redirect('.bloqueio_exclusivos, .container_assinatura, .bloco_bloqueio', '', window.location.href.replace('/detalhe/', '/amp/'));
else
amp_unhide_access_hide('="subscriber"', '="NOT subscriber"', 'div.adbox, amp-consent, .detalheAds, .exclusivos_bar');
}
else if (window.location.hostname.endsWith('.es')) {// Sport Life Ibérica sites
if (document.querySelector('div > ul > li > a[href="https://www.sportlife.es/"]')) {
let paywall = document.querySelector('div.c-paywall');
if (paywall) {
let article = document.querySelector('div.c-mainarticle__body');
let json_script = getArticleJsonScript();
if (json_script) {
let json_text = JSON.parse(json_script.text).articleBody;
let article_new = document.createElement('div');
article_new.innerText = json_text;
article.parentNode.replaceChild(article_new, article);
}
removeDOMElement(paywall);
}
}
}
} else if (window.location.hostname.match(/\.(ar|br|cl|pe|uy)$/) || matchDomain(['abcmais.com', 'clarin.com', 'cronista.com', 'elespectador.com', 'elmercurio.com', 'eltiempo.com', 'eltribuno.com', 'eluniverso.com', 'exame.com', 'globo.com', 'lasegunda.com', 'latercera.com', 'revistaoeste.com', 'semana.com'])) {//south america
if (matchDomain('abcmais.com')) {
if (!window.location.pathname.endsWith('/amp/')) {
getJsonUrl('section#section-iframe-assinante', '', 'div.degressing-opacity');
} else {
let paywall = document.querySelector('div.b-vindo');
if (paywall) {
removeDOMElement(paywall);
let template = document.querySelector('template');
if (template) {
let article = document.querySelector('section > div.resumo');
if (article) {
let parser = new DOMParser();
let doc = parser.parseFromString('<div>' + template.innerHTML + '</div>', 'text/html');
let article_new = doc.querySelector('div');
article.parentNode.replaceChild(article_new, article);
}
}
}
}
}
else if (matchDomain('abril.com.br')) {
if (window.location.pathname.endsWith('/amp/')) {
let paywall = document.querySelector('.piano-modal');
removeDOMElement(paywall);
} else {
let ads = 'div.ads, div.ads-bilboards, div.MGID';
hideDOMStyle(ads);
}
}
else if (matchDomain(ar_grupo_clarin_domains)) {
let ads = 'div.ad-slot, div.box-adv, div.wrapperblock, div.banner, div[id^="div-gpt-ad-"], div.bannerTopHeader, div.sticky, div.SRA';
hideDOMStyle(ads);
}
else if (matchDomain('cartacapital.com.br')) {
if (!window.location.pathname.endsWith('/amp/')) {
let paywall = document.querySelector('aside.paywall');
if (paywall) {
removeDOMElement(paywall);
let json_script = getArticleJsonScript();
if (json_script) {
try {
let json = JSON.parse(json_script.text);
if (json) {
let json_text = json[1].articleBody.replace(/\s{2,}/g, '\r\n\r\n');
let content = document.querySelector('section.s-content__text');
if (json_text && content) {
content.innerHTML = '';
let article_new = document.createElement('p');
article_new.innerText = json_text;
content.appendChild(article_new);
}
}
} catch (err) {
console.log(err);
}
}
} else {
let content_soft = document.querySelector('div.contentSoft');
if (content_soft) {
content_soft.removeAttribute('class');
let freemium = document.querySelectorAll('div[class^="s-freemium"], div.maggazine-add');
removeDOMElement(...freemium);
}
}
let ads = 'div.div_ros_topo';
hideDOMStyle(ads);
} else
ampToHtml();
}
else if (matchDomain('cronista.com')) {
let paywall = document.querySelector('div.article-body--blurred');
if (paywall)
paywall.classList.remove('article-body--blurred');
let ads = 'div#ad-slot-header, div.ad-slot-intext, div#selectMediaNota, div.b-suscription-container, div.paywall-chain--show';
hideDOMStyle(ads);
}
else if (matchDomain('crusoe.com.br')) {
getJsonUrl('section.paywall', '', 'div#content_post', {art_append: 1});
let ads = 'div#gpt-leaderboard, div.ads_desktop, div[class^="container-banner-"], div.catchment-box';
hideDOMStyle(ads);
}
else if (matchDomain('diplomatique.org.br')) {
getJsonUrl('div.entry-content div.module_row', '', 'div.entry-content');
}
else if (matchDomain(pe_grupo_elcomercio_domains)) {
let paywall = document.querySelector('.paywall');
if (paywall) {
paywall.removeAttribute('class');
paywall.removeAttribute('style');
let fade = document.querySelector('p.story-contents--fade');
if (fade)
fade.classList.remove('story-contents--fade');
}
let ads = 'div[class^="content_gpt"]';
hideDOMStyle(ads);
}
else if (matchDomain('elespectador.com')) {
if (window.location.search.includes('outputType=amp')) {
amp_unhide_access_hide('="granted"', '="NOT granted"', '[class^="Widget"], amp-fx-flying-carpet, div[style*=";background:"]:has(amp-ad)', false);
let googledoc_iframes = document.querySelectorAll('div > amp-iframe[src^="https://docs.google.com/viewer"][class]');
for (let elem of googledoc_iframes) {
let a_link = document.createElement('a');
a_link.href = elem.getAttribute('src');
a_link.innerText = 'pdf-link';
a_link.target = '_blank';
elem.removeAttribute('class');
elem.parentNode.before(a_link);
}
} else {
amp_redirect('div.exclusive_validation');
let ads = 'div.Ads, div[class^="Ads_"]';
hideDOMStyle(ads);
}
}
else if (matchDomain('elmercurio.com')) {
if (window.location.hostname.startsWith('digital.')) {
window.setTimeout(function () {
let elem_hidden = document.querySelectorAll('[style="visibility:hidden"]');
for (let elem of elem_hidden)
elem.removeAttribute('style');
let page_pdf_content = document.querySelector('div.page_pdf_content');
let close_html = document.querySelector('div.close_html');
let cont_page_full = document.querySelector('div.cont_page_full');
removeDOMElement(page_pdf_content, close_html, cont_page_full);
}, 1000);
window.setTimeout(function () {
let cont_articlelight = document.querySelector('div.cont_articlelight');
if (cont_articlelight)
cont_articlelight.setAttribute('style', 'height: 100% !important; width: 90% !important');
}, 3000);
if (window.location.pathname.startsWith('/mobile')) {
let lessreadmore = document.querySelectorAll('article.lessreadmore');
for (let article of lessreadmore)
article.classList.remove('lessreadmore');
let bt_readmore = document.querySelectorAll('div[id*="bt_readmore_"]');
removeDOMElement(...bt_readmore);
}
} else if (window.location.pathname.endsWith('/Registro/Login.aspx')) {
header_nofix('body');
}
}
else if (matchDomain('elobservador.com.uy')) {
if (window.location.pathname.endsWith('/amp')) {
amp_unhide_access_hide('="observador.mostrarNota"');
let amp_images = document.querySelectorAll('div.fixed-container > amp-img.null');
for (let amp_image of amp_images) {
let elem = document.createElement('img');
Object.assign(elem, {
src: amp_image.getAttribute('src'),
alt: amp_image.getAttribute('alt'),
title: amp_image.getAttribute('title')
});
amp_image.parentNode.replaceChild(elem, amp_image);
}
} else {
amp_redirect('div.mensaje_member', '', window.location.pathname + '/amp');
}
}
else if (matchDomain('eltiempo.com')) {
let exclusivo = document.querySelector('div.c-articulo-exclusivo');
if (exclusivo)
exclusivo.classList.remove('c-articulo-exclusivo');
let modulos = document.querySelector('div.modulos');
if (modulos)
modulos.classList.remove('modulos');
let ads = '[class^="c-add"]';
hideDOMStyle(ads);
}
else if (matchDomain('eltribuno.com')) {
let ads = 'div.container-spot, div.anticipo-cont';
hideDOMStyle(ads);
}
else if (matchDomain('eluniverso.com')) {
let paywall = document.querySelectorAll('head > meta[name][content="premium"]');
let article = document.querySelector('section.article-body');
if (paywall.length && article) {
removeDOMElement(...paywall);
let fusion_script = document.querySelector('script#fusion-metadata');
if (fusion_script && fusion_script.text.includes('Fusion.globalContent=')) {
try {
let json = JSON.parse(fusion_script.text.split('Fusion.globalContent=')[1].split(';Fusion.')[0]);
if (json) {
article.innerHTML = '';
let parser = new DOMParser();
let pars = json.content_elements;
for (let par of pars) {
let par_new;
if (['header', 'text'].includes(par.type)) {
if (par.content) {
let doc = parser.parseFromString('<p class="prose-text">' + par.content + '</p>', 'text/html');
par_new = doc.querySelector('p');
}
} else if (par.type === 'interstitial_link') {
if (par.url && par.content) {
par_new = document.createElement('p');
int_link = document.createElement('a');
int_link.href = par.url;
int_link.innerText = par.content;
par_new.appendChild(int_link);
}
} else if (par.type === 'image') {
if (par.url) {
let caption_text = par.caption;
if (par.credits && par.credits.by && par.credits.by[0] && par.credits.by[0].name)
caption_text += ' - ' + par.credits.by[0].name;
par_new = makeFigure(par.url, caption_text);
}
} else if (par.type === 'raw_html') {
let doc = parser.parseFromString('<div>' + par.content + '</div>', 'text/html');
par_new = doc.querySelector('div');
} else if (par.raw_oembed) {
if (par.raw_oembed.html) {
let doc = parser.parseFromString('<div>' + par.raw_oembed.html + '</div>', 'text/html');
par_new = doc.querySelector('div');
}
} else if (par.type === 'list') {
if (par.items) {
par_new = document.createElement('ul');
for (let item of par.items) {
let li = document.createElement('li');
let doc = parser.parseFromString('<span>' + item.content + '</span>', 'text/html');
let span = doc.querySelector('span');
li.appendChild(span);
par_new.appendChild(li);
}
}
} else if (par.type === 'table') {
if (par.header && par.rows) {
par_new = document.createElement('table');
let h_row = document.createElement('tr');
for (let item of par.header) {
let th = document.createElement('th');
let doc = parser.parseFromString('<span>' + item.content + '</span>', 'text/html');
let span = doc.querySelector('span');
th.appendChild(span);
h_row.appendChild(th);
}
par_new.appendChild(h_row);
for (let row of par.rows) {
let tr = document.createElement('tr');
for (let item of row) {
let td = document.createElement('td');
let doc = parser.parseFromString('<span>' + item.content + '</span>', 'text/html');
let span = doc.querySelector('span');
td.appendChild(span);
tr.appendChild(td);
}
par_new.appendChild(tr);
}
}
} else if (!['quote'].includes(par.type)) {
console.log(par);
}
if (par_new)
article.appendChild(par_new);
}
}
} catch (err) {
console.log(err);
}
}
let banner = pageContains('div > span', /Contenido exclusivo para suscriptores/);
if (banner.length)
removeDOMElement(banner[0].parentNode);
}
let ads = 'div[id^="ad-"]';
hideDOMStyle(ads);
}
else if (matchDomain('em.com.br')) {
if (!window.location.pathname.endsWith('/amp.html')) {
amp_redirect('.news-blocked-content');
let ads = 'div.ads, div.containerads, div.edm-banner, div.publicidade-interna-container';
hideDOMStyle(ads);
} else {
amp_unhide_subscr_section('amp-fx-flying-carpet');
let compress_text = document.querySelector('div.compress-text');
if (compress_text)
compress_text.classList.remove('compress-text');
}
}
else if (matchDomain('estadao.com.br')) {
if (window.location.pathname.match(/(\.amp$|^\/amp\/)/) || window.location.search.startsWith('?amp')) {
amp_unhide_access_hide('="outputValue=\'hide_paywall\'"', '="outputValue=\'show_paywall\'"', 'amp-fx-flying-carpet, div[class^="pAd"], div.ads-container');
} else {
let paywall = document.getElementById('paywall-wrapper-iframe-estadao');
removeDOMElement(paywall);
let ads = 'div[class^="styles__Container-sc-"]';
hideDOMStyle(ads);
}
}
else if (matchDomain('exame.com')) {
let hidden_images = document.querySelectorAll('img[src^="data:image/"');
for (let elem of hidden_images) {
let noscript = elem.parentNode.querySelector('noscript');
if (noscript && noscript.innerText.includes('src="'))
elem.src = noscript.innerText.split('src="')[1].split('"')[0];
}
let ads = 'div[class*="ad-pos-"]';
hideDOMStyle(ads);
}
else if (matchDomain('uol.com.br')) {
if (matchDomain('piaui.uol.com.br')) {
let audio_cont = document.querySelector('div.audio-player-container:has(audio[src])');
if (audio_cont) {
let audio = audio_cont.querySelector('audio[src]');
if (audio) {
let audio_new = document.createElement('audio');
audio_new.src = audio.src;
audio_new.setAttribute('controls', '');
audio_cont.parentNode.replaceChild(audio_new, audio_cont);
}
}
let ads = 'div[class^="piaui-interna-"], div.main__advert';
hideDOMStyle(ads, 2);
} else if (matchDomain('folha.uol.com.br')) {
if (window.location.pathname.startsWith('/amp/')) {
amp_unhide_subscr_section('amp-sticky-ad');
} else {
let signup = document.querySelector('.c-top-signup');
removeDOMElement(signup);
}
}
let ads = 'div[class*="advertising"], div.jupiter-ads, div.up-floating, div[data-cp-id$="asfads"], div.ms-hapb, div.ms-apb, div.cardAd';
hideDOMStyle(ads);
}
else if (matchDomain('gauchazh.clicrbs.com.br')) {
let div_hidden = document.querySelector('div.m-paid-content > div.hidden');
if (div_hidden)
div_hidden.removeAttribute('class');
let ads = 'div.ad-banner, div.animate-pulse, div.overflow-hidden:has(div.bg-ad-placeholder), section.ads-section-area';
hideDOMStyle(ads);
let ads_rem = document.querySelectorAll('div[class^="superbaner"]');
removeDOMElement(...ads_rem);
}
else if (matchDomain('gazetadopovo.com.br')) {
if (window.location.pathname.endsWith('/amp/')) {
amp_unhide_subscr_section('div.ads-amp, div.tpl-wrapper', false);
} else {
let ads = 'div[class*="c-ads"]';
hideDOMStyle(ads);
}
}
else if (matchDomain('globo.com')) {
if (matchDomain('valor.globo.com')) {
if (!window.location.pathname.startsWith('/google/amp/')) {
amp_redirect('div.paywall');
} else {
amp_unhide_subscr_section();
amp_images_replace();
}
} else if (window.location.pathname.includes('/amp/'))
ampToHtml();
if (!window.location.pathname.includes('/amp/')) {
let ads = 'div[id^="ad-container"], div.content-ads, div[class^="block__advertising"], div#pub-in-text-wrapper, div.area_publicidade_container';
hideDOMStyle(ads);
}
}
else if (matchDomain('lanacion.com.ar')) {
setCookie(/^metering_arc/, '', 'lanacion.com.ar', '/', 0);
if (matchDomain('suscripciones.lanacion.com.ar')) {
let searchParams = new URLSearchParams(window.location.search);
if (searchParams.get('callback')) {
let article_sel = 'main.paywall-container';
let url = atob(searchParams.get('callback')).split('?')[0];
getArchive(url, article_sel + '> button', '', article_sel, '', 'div#fusion-app', 'div#wall');
}
}
let ads = 'div.ln-banner-container';
hideDOMStyle(ads);
}
else if (matchDomain('lance.com.br')) {
let paywall = document.querySelector('div.paywall-content[class*="h-\["]');
if (paywall)
removeClassesByPrefix(paywall, 'h-\[');
let banners = 'div[class*="backdrop-blur-"], div.shadow-sticky, div[style*="repeating-linear-gradient"], span.mx-2, span.h-px';
hideDOMStyle(banners);
}
else if (matchDomain('lasegunda.com')) {
if (window.location.pathname.endsWith('/Registro/Login.aspx') && window.location.search.startsWith('?urlBack=')) {
let intro = document.querySelector('body > div > article');
if (intro) {
intro.parentNode.removeAttribute('style');
intro.parentNode.parentNode.style = 'margin: 20px;';
let mh_new = document.createElement('div');
mh_new.style = 'font-size: 20px; font-weight: bold; text-align: center; margin: 20px;';
let main = document.createElement('a');
main.href = 'https://www.lasegunda.com';
main.innerText = 'la Segunda';
mh_new.appendChild(main);
intro.before(mh_new);
let page = document.querySelector('div#page');
if (page) {
let article_id_match = window.location.search.split('?urlBack=')[1].match(/\/(\d{6,})\//);
if (article_id_match) {
let article_id = article_id_match[1];
let url_src = 'https://newsapi.ecn.cl/NewsApi/lasegunda/noticia/' + article_id;
fetch(url_src)
.then(response => {
if (response.ok) {
response.json().then(json => {
try {
if (json._source) {
let art_source = json._source;
let author = document.createElement('span');
author.innerText = art_source.autor + (art_source.fechaPublicacion ? '\r\n' + art_source.fechaPublicacion.replace('T', ' ').replace(/:00$/, '') : '');
page.appendChild(author);
if (art_source.tablas && art_source.tablas.tablaMedios && art_source.tablas.tablaMedios[0]) {
let figure = makeFigure(art_source.tablas.tablaMedios[0].Url);
figure.style = 'margin: 15px;';
intro.firstChild.before(figure);
}
function make_fig(p1, p2 = '') {
let result = '<figure style="margin: 15px 0px"><img src="' + p1 + '"><figcaption>' + (p2 ? p2.replace(/^;\s?/, '') : '') + '</figcaption></figure>';
return result;
}
function make_imagen(match, p1, offset, string) {
return make_fig(p1);
}
function make_imagen_credito(match, p1, p2, offset, string) {
return make_fig(p1, p2);
}
function make_video(match, p1, offset, string) {
return '<video controls src="' + p1 + '" style="width: 100%; margin: 15px 0px;">';
}
function make_cifra(match, p1, p2, offset, string) {
return p1 + p2.replace(/^;\s?/, ' ');
}
let art_text = art_source.texto.replace(/&nbsp;/g, ' ').replace(/{IMAGEN?\s([^}]+)}/g, make_imagen);
art_text = art_text.replace(/{IMAGENCREDITO\s([^;]+)(;\s?[^}]+)}/g, make_imagen_credito);
art_text = art_text.replace(/{VIDEO?\s([^}]+)}/g, make_video);
art_text = art_text.replace(/{CIFRA\s([^;]+)(;\s?[^}]+)}/g, make_cifra);
art_text = art_text.replace(/{CITA[^}]+}/g, '').replace(/{DESTACAR\s/g, '').replace(/}/g, '');
if (!art_text.includes('{'))
art_text = art_text.replace(/}/g, '');
else
console.log('source still has macros');
let parser = new DOMParser();
let doc = parser.parseFromString('<div style="margin: 20px 0px;">' + art_text + '<br></div>', 'text/html');
let article_new = doc.querySelector('div');
page.append(article_new, document.createElement('br'));
}
} catch (err) {
console.log(err);
}
});
}
})
}
}
}
}
}
else if (matchDomain('latercera.com')) {
let ads = 'div.ads-block';
hideDOMStyle(ads);
}
else if (matchDomain('nsctotal.com.br')) {
let ads = 'div.ad, div[id^="floater"]';
hideDOMStyle(ads);
}
else if (matchDomain('revistaoeste.com')) {
if (window.location.pathname.startsWith('/revista/')) {
let loading_content = document.querySelector('div.loading_content');
if (loading_content)
loading_content.removeAttribute('class');
let spinner = document.querySelector('svg.spinner-eclipse');
removeDOMElement(spinner);
let lazy_images = document.querySelectorAll('img[src^="data:image/"][data-src]');
for (let elem of lazy_images)
elem.src = elem.getAttribute('data-src');
} else {
let div_expandable = document.querySelector('div.expandable');
if (div_expandable)
div_expandable.classList.remove('expandable');
let ads = 'section.ad-wrapper, div.autozep-outer';
hideDOMStyle(ads);
}
}
else if (matchDomain('semana.com')) {
if (!window.location.pathname.startsWith('/amp/'))
amp_redirect('div.paywall > div:not(.article-body)');
let ads = 'div.ads-cls, amp-fx-flying-carpet';
hideDOMStyle(ads);
}
}
ads_hide();
leaky_paywall_unhide();
}, 1000);
// General Functions
// import (see @require)
})();

View File

@@ -0,0 +1,185 @@
// ==UserScript==
// @name Bypass Paywalls Clean - fi/se
// @version 4.1.8.2
// @description Bypass Paywalls of news sites
// @author magnolia1234
// @downloadURL https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc.fi.se.user.js
// @updateURL https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc.fi.se.user.js
// @homepageURL https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters
// @supportURL https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters
// @license MIT; https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=LICENSE
// @noframes
// @match *://*.berlingske.dk/*
// @match *://*.dn.se/*
// @match *://*.etc.se/*
// @match *://*.suomensotilas.fi/*
// @match *://*.weekendavisen.dk/*
// @connect archive.fo
// @connect archive.is
// @connect archive.li
// @connect archive.md
// @connect archive.ph
// @connect archive.vn
// @grant GM.xmlHttpRequest
// @require https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc_func.js
// ==/UserScript==
(function() {
//'use strict';
window.setTimeout(function () {
if (window.location.hostname.endsWith('.dk')) {
if (matchDomain(['berlingske.dk', 'weekendavisen.dk'])) {
let paywall = document.querySelector('div#paywall');
if (paywall) {
removeDOMElement(paywall);
let article = document.querySelector('div[itemprop="articleBody"');
if (article) {
let intro = article.querySelector('p');
let intro_class = intro ? intro.className : '';
let json_script = document.querySelector('script#__NEXT_DATA__');
if (json_script) {
try {
let json = JSON.parse(json_script.text);
if (json && json.props.pageProps.article.body) {
function getChildValue(child) {
let value;
if (child.children && child.children[0]) {
if (child.children[0].value)
value = child.children[0].value;
else if (child.children[0].children)
value = child.children[0].children[0].value;
}
return value;
}
article.innerHTML = '';
let parser = new DOMParser();
let pars = json.props.pageProps.article.body;
for (let par of pars) {
let elem = document.createElement('p');
if (['ParagraphNode', 'HeadingNode'].includes(par.type)) {
elem.className = intro_class;
if (par.children) {
for (let child of par.children) {
let sub_elem;
if (child.type === 'TextNode') {
sub_elem = document.createElement('span');
sub_elem.innerText = child.value;
if (par.type === 'HeadingNode')
sub_elem.style = 'font-weight: bold;';
} else if (child.type === 'HyperlinkNode') {
let value = getChildValue(child);
if (child.url && value) {
sub_elem = document.createElement('a');
sub_elem.href = child.url;
sub_elem.innerText = value;
} else
console.log(child)
} else if (child.type === 'LineBreakNode') {
let sub_elem = document.createElement('br');
} else
console.log(child);
if (sub_elem)
elem.appendChild(sub_elem);
}
}
} else if (par.type === 'FigureNode') {
if (par.asset && par.asset.image && par.asset.image.assets) {
let asset = par.asset.image.assets.pop();
if (asset && asset.url) {
let caption;
if (par.caption && par.caption[0]) {
caption = getChildValue(par.caption[0]);
if (par.byline && par.byline[0])
caption += ' ' + getChildValue(par.byline[0]);
}
let sub_elem = makeFigure(asset.url, caption, {style: 'width: 95%;'});
elem.appendChild(sub_elem);
}
}
} else if (par.type === 'ListNode') {
let sub_elem = document.createElement('ul');
if (par.children) {
for (let child of par.children) {
let value = getChildValue(child);
if (value) {
let li = document.createElement('li');
li.innerText = value;
sub_elem.appendChild(li);
}
}
elem.appendChild(sub_elem);
}
} else if (par.type === 'LineBreakNode') {
let sub_elem = document.createElement('br');
elem.appendChild(sub_elem);
} else if (par.type === 'CustomCodeNode') {
elem = document.createElement('div');
if (par.code && !par.code.includes('newsletterSignupWidget')) {
let doc = parser.parseFromString('<div>' + par.code + '</div>', 'text/html');
let sub_elem = doc.querySelector('div');
elem.appendChild(sub_elem);
}
} else
console.log(par);
if (elem.hasChildNodes())
article.appendChild(elem);
}
}
} catch (err) {
console.log(err);
}
}
}
}
let ads = 'div[data-ad-banner]';
hideDOMStyle(ads);
}
} else if (window.location.hostname.endsWith('.se')) {
if (matchDomain('dn.se')) {
let url = window.location.href;
getArchive(url, 'div.paywall-wrapper', '', 'article');
let ads = 'div.bad';
hideDOMStyle(ads);
}
else if (matchDomain('etc.se')) {
let paywall = document.querySelector('section.prose-feature > section.teaser-section');
if (paywall) {
paywall.classList.remove('teaser-section');
paywall.parentNode.querySelectorAll('.hidden').forEach(e => e.classList.remove('hidden'));
}
let ads = 'div[class$="-ad"], article section.font-sans';
hideDOMStyle(ads);
let video_iframes = document.querySelectorAll('div.embed-block > iframe[width][height]');
for (let elem of video_iframes) {
if (elem.width > 1000) {
let ratio = elem.width / (mobile ? 320 : 640);
elem.width = elem.width / ratio;
elem.height = elem.height / ratio;
}
}
}
}
else if (matchDomain('suomensotilas.fi')) {
let obscured = document.querySelector('div.epfl-pw-obscured');
if (obscured)
obscured.classList.remove('epfl-pw-obscured');
}
ads_hide();
leaky_paywall_unhide();
}, 1000);
// General Functions
// import (see @require)
})();

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,382 @@
// ==UserScript==
// @name Bypass Paywalls Clean - it
// @version 4.3.6.0
// @description Bypass Paywalls of news sites
// @author magnolia1234
// @downloadURL https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc.it.user.js
// @updateURL https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc.it.user.js
// @homepageURL https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters
// @supportURL https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters
// @license MIT; https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=LICENSE
// @noframes
// @match *://*.it/*
// @match *://*.eastwest.eu/*
// @match *://*.ilsole24ore.com/*
// @match *://*.italian.tech/*
// @match *://*.quotidiano.net/*
// @match *://*.tuttosport.com/*
// @grant GM.xmlHttpRequest
// @require https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc_func.js
// ==/UserScript==
(function() {
//'use strict';
window.setTimeout(function () {
var it_gedi_domains = ['huffingtonpost.it', 'italian.tech', 'lastampa.it', 'lescienze.it', 'moda.it', 'repubblica.it'];
var it_ilmessaggero_domains = ['corriereadriatico.it', 'ilgazzettino.it', 'ilmattino.it', 'ilmessaggero.it', 'quotidianodipuglia.it'];
var it_quotidiano_domains = ['ilgiorno.it', 'ilrestodelcarlino.it', 'iltelegrafolivorno.it', 'lanazione.it', 'quotidiano.net'];
if (matchDomain('corriere.it')) {
if (window.location.pathname.endsWith('_amp.shtml')) {
amp_unhide_subscr_section('iframe[src^="https://ads."]');
} else {
if (window.location.pathname.includes('_preview.shtml') && !window.location.pathname.startsWith('/podcast/')) {
window.setTimeout(function () {
window.location.href = window.location.pathname.replace('_preview.shtml', '.shtml');
}, 500);
}
}
let ads = 'div.bck-adv, div.boxADVmanuale';
hideDOMStyle(ads);
}
else if (matchDomain('corrieredellosport.it')) {
if (!window.location.pathname.startsWith('/amp/')) {
amp_redirect('div[class^="MainTextTruncated_paragraph__"]');
let ads = 'div[class^="AdUnit_placeholder"]';
hideDOMStyle(ads);
}
}
else if (matchDomain('eastwest.eu')) {
let paywall = document.querySelector('.paywall');
if (paywall) {
paywall.removeAttribute('style');
paywall.classList.remove('paywall');
let intro = document.querySelectorAll('div#testo_articolo > p, div#testo_articolo > h3');
let offerta = document.querySelectorAll('div.offerta_abbonamenti');
removeDOMElement(...intro, ...offerta);
}
}
else if (matchDomain('editorialedomani.it')) {
let paywall = document.querySelector('div.paywallbox');
if (paywall) {
removeDOMElement(paywall);
let article = document.querySelector('div.article-preview');
if (article) {
article.classList.remove('article-faded');
let json_script = getArticleJsonScript();
if (json_script) {
let json = JSON.parse(json_script.text);
if (json) {
let json_text = json.articleBody;
let par = article.querySelector('p');
if (par)
par.innerText = json_text;
}
}
}
}
}
else if (matchDomain('gazzetta.it')) {
if (window.location.pathname.endsWith('_preview.shtml')) {
let paywall = document.querySelector('section.bck-freemium__wall');
if (paywall) {
removeDOMElement(paywall);
if (!window.location.search.startsWith('?reason=unauthenticated')) {
window.location.href = window.location.pathname.replace('_preview', '') + '?gaa_at=g';
} else {
let json_script = getArticleJsonScript();
let header = 'div.content > h2';
if (json_script) {
let json = JSON.parse(json_script.text);
if (json) {
let json_text = json.articleBody.replace(/(\s{3}|&nbsp;)/g, '\r\n\r\n');
let content = document.querySelector('div.content > p.has-first-letter');
if (json_text && content) {
let content_new = document.createElement('p');
content_new.innerText = json_text;
content.parentNode.replaceChild(content_new, content);
let article_body = document.querySelector('section.body-article');
if (article_body)
article_body.style = 'height: auto;';
} else
header_nofix(header);
}
} else
header_nofix(header);
}
}
} else if (window.location.pathname.endsWith('_amp.shtml'))
ampToHtml();
}
else if (matchDomain('ilfattoquotidiano.it')) {
if (window.location.pathname.endsWith('/amp/')) {
amp_unhide_subscr_section('div#_4sVideoContainer, div#post-consent-ui');
let logo = document.querySelector('a > amp-img[src$="/svg/logo-tablet.svg"]');
if (logo) {
let logo_new = document.createElement('img');
logo_new.src = logo.getAttribute('src').replace('/svg/logo-tablet.svg', '/fq-www/logo-ifq-it.svg');
logo_new.height = logo.getAttribute('height');
logo_new.width = logo.getAttribute('width');
logo.parentNode.replaceChild(logo_new, logo);
}
} else {
let paywall = document.querySelector('div#ifq-paywall-metered');
if (paywall) {
removeDOMElement(paywall);
let art_hidden = document.querySelector('article[id].cropped');
if (art_hidden)
art_hidden.classList.remove('cropped');
} else
header_nofix('div.ifq-post__content, div.article-content', 'div#ifq-paywall-hard, section.fqml-paywall');
}
let ads = 'div.adv, div.st-adunit, div[id^="ifq-adv-"], div.mgbox';
hideDOMStyle(ads);
let ad_units = document.querySelectorAll('div[id^="div-flx-"] > div[data-adunit]');
for (let elem of ad_units)
hideDOMElement(elem.parentNode);
}
else if (matchDomain('ilfoglio.it')) {
let paywall = document.querySelector('div.paywall');
if (paywall) {
removeDOMElement(paywall);
let div_hidden = document.querySelector('div.paywall-wrapper__story-content');
if (div_hidden)
div_hidden.removeAttribute('class');
}
let ads = '.advertisement';
hideDOMStyle(ads);
}
else if (matchDomain('ilmanifesto.it')) {
let paywall = document.querySelector('div[class*="before:bg-gradient-to-t"]');
if (paywall) {
removeDOMElement(paywall);
let url = window.location.href;
replaceDomElementExt(url, false, false, 'article div.prose');
}
}
else if (matchDomain('ilsole24ore.com')) {
header_nofix('div.paywalltext', 'div.lock');
waitDOMAttribute('body', 'BODY', 'style', node => node.removeAttribute('style'), true);
let ads = 'div.background-adv, div.abox, div.ob-smartfeed-wrapper, div.s24_adb';
hideDOMStyle(ads);
}
else if (domain = matchDomain(['iltirreno.it', 'lanuovasardegna.it']) || matchDomain(['gazzettadimodena.it', 'gazzettadireggio.it', 'lanuovaferrara.it'])) {
if (window.location.pathname.includes('/news/')) {
let paywall = document.querySelector('span > img[alt*="Paywall"]');
if (paywall) {
let header = paywall.parentNode.parentNode;
header_nofix(header);
removeDOMElement(paywall.parentNode);
}
window.setTimeout(function () {
let banners = document.querySelectorAll('div.MuiSnackbar-root, div.css-16cchgy');
removeDOMElement(...banners);
}, 1000);
}
setCookie(/__mtr$/, '', domain, '/', 0);
}
else if (matchDomain(it_ilmessaggero_domains)) {
if (window.location.pathname.toLowerCase().includes('/amp/')) {
amp_unhide_subscr_section();
} else {
let noscroll = document.querySelector('html[style]');
if (noscroll)
noscroll.removeAttribute('style');
let ads = 'div.adv_banner, div.inread_adv, div#outbrain';
hideDOMStyle(ads);
}
}
else if (matchDomain(it_quotidiano_domains)) {
if (window.location.pathname.endsWith('/amp') || window.location.search.startsWith('?amp')) {
amp_unhide_access_hide('="c.customGranted"', '="NOT c.customGranted"', 'amp-fx-flying-carpet, .watermark-adv, .amp__watermark');
} else {
amp_redirect('div[data-testid="paywall-container"], div[class^="Paywall_paywall_"]', '', window.location.pathname + '/amp');
let ads = 'div[id^="div-gpt-ad"]';
hideDOMStyle(ads);
}
}
else if (matchDomain('italiaoggi.it')) {
let paywall = document.querySelector('div.boxAbb');
if (paywall) {
let overlay = document.querySelector('div.article-locked-overlay');
removeDOMElement(paywall, overlay);
let article_locked = document.querySelector('div.article-locked');
if (article_locked) {
article_locked.classList.remove('article-locked');
let json_script = getArticleJsonScript();
if (json_script) {
let json = JSON.parse(json_script.text);
if (json) {
let json_text = json.articleBody;
let content = article_locked.querySelector('section');
if (json_text && content) {
let parser = new DOMParser();
json_text = json_text.replace(/&amp;apos;/g, "'").replace(/;/g, '');
let doc = parser.parseFromString('<div><section>' + json_text + '</section></div>', 'text/html');
let content_new = doc.querySelector('div');
content.parentNode.replaceChild(content_new, content);
}
}
}
}
}
}
else if (domain = matchDomain(it_gedi_domains)) {
let amp = window.location.pathname.match(/\/amp(\/)?$/);
if (matchDomain(['huffingtonpost.it', 'lastampa.it'])) {
if (window.location.pathname.includes('/news/')) {
if (!amp) {
let paywall = document.querySelector('iframe[id^="__limio_frame"]');
if (paywall) {
setCookie(/blaize_session/, '', domain, '/', 0);
removeDOMElement(paywall);
refreshCurrentTab(false);
}
let modal = document.querySelector('aside#widgetDP');
removeDOMElement(modal);
} else
ampToHtml();
}
} else if (matchDomain('repubblica.it')) {
if (!amp)
amp_redirect('iframe[id^="__limio_frame"]', '', window.location.pathname + 'amp/');
else {
amp_unhide_subscr_section();
if (!mobile)
addStyle('img.i-amphtml-fill-content {min-height: 50% !important; min-width: 50% !important;}');
let paywall = document.querySelector('div.not_granted__content');
if (paywall) {
removeDOMElement(paywall);
let article = document.querySelector('div.story__wrapper');
if (article) {
let url = window.location.href.split(/[#\?]/)[0].replace(/\/amp\/$/, '');
article.before(googleSearchToolLink(url));
}
}
}
} else {
if (!amp) {
let paywall = document.querySelector('div#ph-paywall');
removeDOMElement(paywall);
setCookie(/blaize_session/, '', domain, '/', 0);
} else
ampToHtml();
}
let ads = 'div[id^="adv"]';
hideDOMStyle(ads);
}
else if (matchDomain('milanofinanza.it')) {
let paywall = document.querySelector('div.paywall-content, section.payment');
if (paywall) {
removeDOMElement(paywall);
let json_script = getArticleJsonScript();
if (json_script) {
try {
let json = JSON.parse(json_script.text.replace(/!=/g, '').replace(/!function\(\){[^!]+(\(\);|0;[a-z])/g, ''));
if (json) {
let json_text = parseHtmlEntities(json.articleBody);
let article = document.querySelector('div.article-locked');
if (json_text && article) {
article.innerHTML = '';
let article_new = document.createElement('p');
article_new.innerText = json_text;
article.appendChild(article_new);
}
}
} catch (err) {
console.log(err);
header_nofix('div.article-locked', '', 'BPC > no fix (json-error)');
}
}
}
}
else if (matchDomain('nationalgeographic.it')) {
document.querySelectorAll('section[style]').forEach(e => e.removeAttribute('style'));
hideDOMStyle('section.paywall-container');
}
else if (matchDomain('sky.it')) {
let paywall = document.querySelector('div.c-paywall');
if (paywall && window.location.hostname.match(/^(sport|tg24)\./)) {
removeDOMElement(paywall);
let article = document.querySelector('div > div.c-article-abstract');
let json_script = getArticleJsonScript();
if (article && json_script) {
try {
let json = JSON.parse(json_script.text);
if (json) {
let json_text = json[0].articleBody;
if (json_text) {
let par_new = document.createElement('p');
par_new.innerText = json_text;
article.parentNode.appendChild(par_new);
}
}
} catch (err) {
console.log(err);
}
}
}
let ads = 'div.c-adv';
hideDOMStyle(ads);
}
else if (matchDomain('tuttosport.com')) {
if (!window.location.pathname.startsWith('/amp/')) {
let paywall = document.querySelector('div[class^="MainTextTruncated_premium"]');
if (paywall) {
removeDOMElement(paywall);
let article = document.querySelector('div > div[class^="MainTextTruncated_truncatedContent"]');
if (article) {
let json_script = document.querySelector('script#__NEXT_DATA__');
if (json_script) {
try {
let json = JSON.parse(json_script.text);
if (json && json.props.pageProps.news && json.props.pageProps.news.content) {
let url_next = json.props.pageProps.news.href;
if (url_next && !window.location.pathname.includes(url_next))
window.location.href = window.location.pathname;
let parser = new DOMParser();
let doc = parser.parseFromString('<div>' + json.props.pageProps.news.content + '</div>', 'text/html');
let article_new = doc.querySelector('div');
article.parentNode.replaceChild(article_new, article);
} else
refreshCurrentTab();
} catch (err) {
console.log(err);
}
}
}
}
let ads = 'div[class^="AdUnit_"]';
hideDOMStyle(ads);
}
}
ads_hide();
leaky_paywall_unhide();
}, 1000);
// General Functions
// import (see @require)
})();

View File

@@ -0,0 +1,924 @@
// ==UserScript==
// @name Bypass Paywalls Clean - nl/be
// @version 4.3.6.2
// @description Bypass Paywalls of news sites
// @author magnolia1234
// @downloadURL https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc.nl.user.js
// @updateURL https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc.nl.user.js
// @homepageURL https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters
// @supportURL https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters
// @license MIT; https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=LICENSE
// @noframes
// @match *://*.nl/*
// @match *://*.businessam.be/*
// @match *://*.demorgen.be/*
// @match *://*.doorbraak.be/*
// @match *://*.gva.be/*
// @match *://*.hbvl.be/*
// @match *://*.hln.be/*
// @match *://*.humo.be/*
// @match *://*.nieuwsblad.be/*
// @match *://*.projectcargojournal.com/*
// @match *://*.railfreight.cn/*
// @match *://*.railfreight.com/*
// @match *://*.railtech.be/*
// @match *://*.railtech.com/*
// @match *://*.standaard.be/*
// @match *://*.taxipro.be/*
// @match *://*.tijd.be/*
// @connect archive.fo
// @connect archive.is
// @connect archive.li
// @connect archive.md
// @connect archive.ph
// @connect archive.vn
// @connect mediafin.be
// @grant GM.xmlHttpRequest
// @require https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc_func.js
// ==/UserScript==
(function() {
//'use strict';
window.setTimeout(function () {
var be_mediahuis_domains = ['gva.be', 'hbvl.be', 'nieuwsblad.be', 'standaard.be'];
var nl_dpg_adr_domains = ['ad.nl', 'bd.nl', 'bndestem.nl', 'destentor.nl', 'ed.nl', 'gelderlander.nl', 'pzc.nl', 'tubantia.nl'];
var nl_dpg_media_domains = ['demorgen.be', 'flair.nl', 'humo.be', 'libelle.nl', 'margriet.nl', 'parool.nl', 'trouw.nl', 'volkskrant.nl'];
var nl_mediahuis_region_domains = ['gooieneemlander.nl', 'haarlemsdagblad.nl', 'ijmuidercourant.nl', 'leidschdagblad.nl', 'limburger.nl', 'noordhollandsdagblad.nl'];
if (matchDomain('adformatie.nl')) {
document.querySelectorAll('iframe[uc-src]').forEach(e => e.src = e.getAttribute('uc-src'));
let ads = 'div.c-ad-slot';
hideDOMStyle(ads);
}
else if (matchDomain(be_mediahuis_domains)) {
window.setTimeout(function () {
let video = document.querySelector('div.video, div[data-testid="article-video"]');
func_post = function () {
let article = document.querySelector(article_sel);
if (article) {
if (video) {
if (matchDomain(['gva.be', 'nieuwsblad.be'])) {
let placeholder = video.querySelector('div[class^="Placeholder_placeholder"]');
if (placeholder)
placeholder.removeAttribute('class');
}
let video_new = article.querySelector('div[id$="-streamone"], div[id^="video-player-"], div[id^="player_"]');
if (video_new && video_new.parentNode)
video_new.parentNode.replaceChild(video, video_new);
else {
let header = article.querySelector('h1');
let br = document.createElement('br');
if (header)
header.after(br, video, br);
}
}
let gallery, img_width, captions, next, next_images, next_img_width;
let gallery_new = document.createElement('div');
let figure_nr = 0;
let gallery_figures = document.querySelectorAll('div > ul > li > figure');
for (let figure of gallery_figures) {
if (!figure_nr) {
gallery = figure.parentNode.parentNode.parentNode;
captions = Array.from(gallery.querySelectorAll('span')).filter(e => e.innerText.includes('©'));
next = gallery.nextSibling;
if (next)
next_images = next.querySelectorAll('img[currentsourceurl]');
}
let img = figure.querySelector('img[currentsourceurl]');
if (img && next_images) {
let img_src = img.getAttribute('currentsourceurl');
if (img_src) {
if (img_src.includes('/alternates/'))
img_width = img_src.split('/alternates/')[1].split('/')[0];
} else if (img_width && next_images[figure_nr]) {
img_src = next_images[figure_nr].getAttribute('currentsourceurl');
if (img_src && img_src.includes('/alternates/')) {
next_img_width = img_src.split('/alternates/')[1].split('/')[0];
img_src = img_src.replace(next_img_width, img_width);
}
}
let figure_new = makeFigure(img_src, captions && captions[figure_nr] ? captions[figure_nr].parentNode.innerText : '', {style: 'height: 500px;'});
figure_new.style = 'margin: 20px 0px;';
gallery_new.appendChild(figure_new);
}
figure_nr++;
}
if (gallery && next) {
next.after(gallery_new);
removeDOMElement(gallery, next);
}
let errors = document.querySelectorAll('div[height][old-src]:not([src]):has(div#__next_error__)');
for (let elem of errors) {
let iframe = document.createElement('iframe');
iframe.src = elem.getAttribute('old-src');
iframe.style = 'width: 100%; height: ' + elem.getAttribute('height') + 'px;';
elem.parentNode.replaceChild(iframe, elem);
}
if (mobile) {
if (article_main) {
let div_next = document.querySelector('div[id="__next"]');
if (div_next)
article.style.width = 0.8 * div_next.offsetWidth + 'px';
}
let lazy_images = article.querySelectorAll('figure img[loading="lazy"][style]');
for (let elem of lazy_images) {
elem.style = 'width: 95%;';
if (elem.parentNode.style && elem.parentNode.getAttribute('style').includes('min-height:'))
elem.parentNode.style['min-height'] = 'unset';
}
let figures = article.querySelectorAll('figure div');
for (let elem of figures) {
elem.removeAttribute('style');
let svg = elem.querySelector('svg');
removeDOMElement(svg);
}
}
let pars = article.querySelectorAll('section > div[style*="font-size:"]:not([id])');
if (pars.length < 5)
article.firstChild.before(googleSearchToolLink(url));
let ads = article_sel + ' div:empty:not([class])';
hideDOMStyle(ads, 2);
}
}
let url = window.location.href;
let paywall_sel = 'head > meta[name$="article_ispaidcontent"][content="true"], div[data-testid="paywall-position-inline-paywall"]:not(:empty)';
let article_sel = 'main > article';
let article_main = document.querySelector(article_sel);
if (!article_main)
article_sel = 'article[role="article"] div[id]';
getArchive(url, paywall_sel, '', article_sel);
let popup = document.querySelector('div[data-testid="close-popup-button"]');
if (popup)
popup.click();
}, 1500);
let ads = 'div[id^="ad_inline-"], div.mh-ad-label';
hideDOMStyle(ads);
}
else if (matchDomain('businessam.be')) {
let paywall = document.querySelector('div.paywall');
if (paywall) {
removeDOMElement(paywall);
let article = document.querySelector('div.text-gradient');
if (article) {
let filter = /window\.fullcontent64\s?=\s?"/;
let content_script = getSourceJsonScript(filter);
if (content_script) {
try {
let content = decode_utf8(atob(content_script.text.split(filter)[1].split('";')[0]));
let parser = new DOMParser();
let doc = parser.parseFromString('<div>' + content + '</div>', 'text/html');
let content_new = doc.querySelector('div');
article.parentNode.replaceChild(content_new, article);
} catch (err) {
console.log(err);
}
}
}
}
}
else if (matchDomain('businessinsider.nl')) {
getJsonUrl('div.piano-article__paywall', '', 'div.piano-article__content');
}
else if (matchDomain('doorbraak.be')) {
window.setTimeout(function () {
let plus = document.querySelector('h1 > svg');
let article = document.querySelector('div > div.prose');
if (plus && article) {
let paywall_sel = 'div.paywall';
let paywall = document.querySelector(paywall_sel);
let pars = article.querySelectorAll('p');
if (paywall || pars.length < 2) {
removeDOMElement(paywall);
waitDOMElement(paywall_sel, 'DIV', removeDOMElement, false);
let json_script = document.querySelector('script#__NUXT_DATA__');
if (json_script) {
try {
if (!json_script.text.substr(0, 500).includes(window.location.pathname))
refreshCurrentTab();
let json = JSON.parse(json_script.text);
json = json.filter(x => typeof x === 'string' && x.startsWith('<p>'));
let json_text = json[0];
if (json_text) {
let parser = new DOMParser();
let doc = parser.parseFromString('<div>' + json_text + '</div>', 'text/html');
let content_new = doc.querySelector('div');
article.appendChild(content_new);
}
} catch (err) {
console.log(err);
}
}
}
}
}, 1000);
}
else if (matchDomain('fd.nl')) {
if (window.location.hostname === 'specials.fd.nl') {
document.querySelectorAll('div[class^="Opening_contentContainer"], section[class^="ScrollyText_"]').forEach(e => e.style = 'color: white;');
} else {
func_post = function () {
if (mobile) {
let art_width = document.body.offsetWidth;
document.querySelectorAll('article:not([id])').forEach(e => e.style = 'width: ' + art_width * 0.90 + 'px; margin: 20px;');
document.querySelectorAll('figure img[loading="lazy"][style]').forEach(e => e.style = 'width: 95%;');
}
let paywall = pageContains('section > h1', 'Lees direct het artikel');
if (paywall.length) {
let div_empty = document.querySelectorAll('div:empty');
removeDOMElement(paywall[0].parentNode.parentNode, ...div_empty);
header_nofix('main header', '', 'BPC > no archive-fix');
}
}
let url = window.location.href;
getArchive(url, 'section.upsell, div.upsell-modal-background', '', 'main');
}
let header = document.querySelector('div.header-placeholder');
if (header)
header.style.top = 0;
let ads = 'div[data-id^="fd-message-"]';
hideDOMStyle(ads);
}
else if (matchDomain('ftm.nl')) {
let videos = document.querySelectorAll('div.body > div.video-pp');
for (let video of videos) {
let video_id_dom = video.querySelector('a.video[data-youtube-id]');
if (video_id_dom) {
video_new = document.createElement('iframe');
video_new.src = 'https://www.youtube.com/embed/' + video_id_dom.getAttribute('data-youtube-id');
video_new.style = 'width: 95%; height: 400px; margin: 0px 20px;';
video.parentNode.replaceChild(video_new, video);
}
}
let audio_controls = document.querySelectorAll('audio[controls][style]');
for (let elem of audio_controls)
elem.removeAttribute('style');
document.querySelectorAll('div.foldable').forEach(e => e.classList.remove('foldable'));
let banners = 'div.banner-pp';
hideDOMStyle(banners);
}
else if (matchDomain('groene.nl')) {
let url = window.location.href;
getArchive(url, 'div#closed-block', '', 'article');
let login = document.querySelector('header li > a[href*="/accounts/inloggen"]');
if (login) {
let pop = document.createElement('li');
let pop_link = document.createElement('a');
pop_link.href = '/populair';
pop_link.innerText = 'Populair';
pop.appendChild(pop_link);
login.parentNode.after(pop);
}
}
else if (matchDomain(['lc.nl', 'dvhn.nl']) || document.querySelector('head > link[href*=".ndcmediagroep.nl/"]')) {
let paywall = document.querySelector('div.signupPlus, div.pw-wrapper:not(.pw-none, .pw-pending');
if (paywall) {
if (window.location.pathname.match(/\/(live|sportblog)-/)) {
header_nofix(paywall, '', 'BPC > try to remove cookies for site');
removeDOMElement(paywall);
return;
}
let intro = document.querySelector('div.startPayWall');
let html = document.documentElement.outerHTML;
if (html.includes('window.__NUXT__=')) {
removeDOMElement(paywall, intro);
try {
let json = html.split('window.__NUXT__=')[1].split('</script>')[0].trim();
let json_match = json.includes('type:"article",');
if (json_match) {
let path_match = window.location.pathname.match(/-(\d+)\./);
if (path_match) {
let article_id = path_match[1];
json_match = json.includes(',id:"' + article_id + '",');
if (!json_match) {
let path_regex_str = '-' + article_id + '\\.';
if (json.match(/[(,]null,/)) {
let art_match = json.split(/[(,]null,/)[1].match(new RegExp(path_regex_str, 'g'));
json_match = art_match && art_match.length > 1;
}
if (!json_match) {
if (json.includes(',routePath:"')) {
json_match = json.split(',routePath:"')[1].split('"')[0].match(new RegExp(path_regex_str));
} else if (json.includes(',relativeUrl:"')) {
let json_split = json.split(',relativeUrl:"');
json_match = json_split.some(e => e.split(/[",]/)[0].match(new RegExp(path_regex_str)));
}
}
}
}
}
if (!json_match)
refreshCurrentTab();
else if (json.includes(',body:')) {
let nuxt_vars = json.split(/^\(function\(/)[1].split('){')[0].split(',');
let nuxt_values = json.split('}}(')[1].split('));')[0].replace(/(^|,)(true|false|\.?\d+|{}),/g, ',"$1$2",').replace(/(^|,)(null),/g, ',"$1$2",').replace(/,(void\s\d),/g, ',"$1",').split(/\\?",\\?"/);
function findNuxtText(str, attributes = false) {
if (nuxt_vars.length && nuxt_values.length && !(attributes && str.length === 1 && str === str.toUpperCase())) {
let index = nuxt_vars.indexOf(str);
if (nuxt_values[index])
str = nuxt_values[index].replace(/\\u002F/g, '/');
}
return str;
}
let intro;
let intro_match = json.match(/,leadtext_raw:"([^"]+)",/);
let intro_meta_dom = document.querySelector('head > meta[data-hid="description"][content]');
if (intro_match || intro_meta_dom) {
intro = document.createElement('p');
intro.innerText = intro_match ? intro_match[1].replace(/\\u002F/g, '/') : intro_meta_dom.content;
intro.style = 'font-weight: bold;';
}
let json_text = json.split(',body:')[1].split(/,(leadText|brand_key|tts|pianoKeywords):/)[0].replace(/([{,])(\w+)(?=:(["\{\[]|[\w$]{1,2}[,\}]))/g, "$1\"$2\"").replace(/(Image\\":)(\d)([,}])/g, '$1\\"$2\\"$3').replace(/\":(\[)?([\w\$\.]+)([\]},])/g, "\":$1\"$2\"$3");
let article = document.querySelector('div.content');
if (article) {
article.innerHTML = '';
if (intro)
article.appendChild(intro);
let pars = JSON.parse(json_text);
function addParText(elem, par_text, add_br = false, attributes = false, sup = false) {
if (par_text) {
if (par_text.length <= 2 && !sup)
par_text = findNuxtText(par_text, attributes);
let span = document.createElement(sup ? 'sup' : 'span');
span.innerText = par_text.replace(/\u00a0/g, ' '); //&nbsp;
elem.appendChild(span);
if (add_br)
elem.appendChild(document.createElement('br'));
}
}
function addLink(elem, link_text, href, add_br = false) {
let par_link = document.createElement('a');
par_link.href = href;
par_link.innerText = link_text.replace(/(\\n|\\t|\s)+$/g, '');
if (href.startsWith('http') && !href.startsWith(window.location.origin))
par_link.target = '_blank';
elem.appendChild(par_link);
if (add_br)
elem.appendChild(document.createElement('br'));
}
function addImage(elem, child) {
let figure = document.createElement('figure');
let img = document.createElement('img');
if (child.relation.href.length <= 2)
child.relation.href = findNuxtText(child.relation.href);
img.src = child.relation.href;
figure.appendChild(img);
if (child.relation.caption) {
if (child.relation.caption.length <= 2)
child.relation.caption = findNuxtText(child.relation.caption).replace(/\\"/g, '"').replace(/\\n/g, ' - ').replace(/\\u002F/g, '/');
if (child.relation.photographer) {
if (child.relation.photographer.length <= 2)
child.relation.photographer = findNuxtText(child.relation.photographer).replace(/\\u002F/g, '/');
child.relation.caption += ' ' + child.relation.photographer;
}
let caption = document.createElement('figcaption');
caption.innerText = child.relation.caption;
figure.appendChild(caption);
}
elem.appendChild(figure);
}
function addChildren(elem, children, add_br = false, attributes = false, sup = false) {
for (let child of children) {
if (child.text) {
addParText(elem, child.text, add_br, attributes, sup);
} else if (child.relation && (child.type === 'img' || child.relation.caption) && child.relation.href) {
let img_par = document.createElement('p');
addImage(img_par, child);
elem.appendChild(img_par);
} else if (child.relation && child.relation.link) {
if (child.relation.link.length <= 2)
child.relation.link = findNuxtText(child.relation.link).replace(/\\u002F/g, '/');
if (child.relation.title.length <= 2)
child.relation.title = findNuxtText(child.relation.title);
addLink(elem, child.relation.title, child.relation.link);
} else if (child.children) {
if (child.children.length) {
for (let item of child.children) {
if (item.text) {
if ((child.href && child.href.length > 2) || (child.relation && child.relation.follow && child.relation.follow.url)) {
if (item.text.length > 2) {
addLink(elem, item.text, child.href || child.relation.follow.url, add_br);
if (item.text.endsWith(' '))
elem.appendChild(document.createTextNode(' '));
}
} else
addParText(elem, item.text, add_br, child.attributes && child.attributes.length);
} else if (findNuxtText(item.type) === 'br') {
elem.appendChild(document.createElement('br'));
} else
addChildren(elem, item.children, false, item.attributes && item.attributes.length, item.type === 'sup');
}
} else
elem.appendChild(document.createElement('br'));
}
}
}
for (let par of pars) {
let par_type = par.type ? findNuxtText(par.type) : '';
let elem = document.createElement(par_type === 'h2' ? 'h2': 'p');
if (par.code) {
if (par.code.includes('flourish-embed') && par.code.includes(' data-src=\"')) {
elem = document.createElement('div');
let sub_elem = document.createElement('iframe');
sub_elem.src = 'https://public.flourish.studio/' + par.code.split(' data-src=\"')[1].split('"')[0];
sub_elem.style = 'width: 100%; height: 600px;';
elem.appendChild(sub_elem);
} else {
let parser = new DOMParser();
let doc = parser.parseFromString('<div>' + par.code + '</div>', 'text/html');
elem = doc.querySelector('div');
}
} else if (par.insertbox_head || par.insertbox_text) {
if (par.insertbox_head && par.insertbox_head.length > 2)
addParText(elem, par.insertbox_head, true);
if (par.insertbox_text) {
for (let item of par.insertbox_text) {
if (item.children)
addChildren(elem, item.children, true);
}
}
} else if (par.text) {
if (par_type !== 'streamer')
addParText(elem, par.text);
} else if (par.children) {
addChildren(elem, par.children);
} else if (par.typename.length > 2)
console.log(par);
if (elem.hasChildNodes()) {
article.appendChild(elem);
}
}
}
}
} catch (err) {
console.log(err);
}
}
}
let ads = 'div.top__ad, div.marketingblock-article';
hideDOMStyle(ads);
}
else if (matchDomain('linda.nl')) {
window.setTimeout(function () {
let premium_sel = 'div[class$="premiumlabel" i], article.premium-article_container';
let premium = window.location.pathname.startsWith('/premium/') || document.querySelector(premium_sel);
let article_sel = 'div.premium-article_main-content, div.article-content_htmlContent';
let article = document.querySelector(article_sel);
if (premium && article) {
let paywall_sel = cs_param.paywall_sel || 'div.premium-login-box_loginBox';
hideDOMStyle(paywall_sel);
let fade = document.querySelector('div[class*="_loginRequired"]');
if (fade)
fade.className = article.className.replace(/[-\w]+_loginRequired/, '');
let pars = article.querySelectorAll('p');
if (pars.length > 5)
return;
let filter = /^window\.__INITIAL_PROPS__\s?=\s?/;
let json_script = getSourceJsonScript(filter);
if (json_script) {
try {
let json = JSON.parse(json_script.text.split(filter)[1]);
if (json) {
let slug = json.slug;
if ((slug && !window.location.pathname.includes(slug)) || !json.viewData)
refreshCurrentTab();
if (json.viewData.article) {
function replace_also_read(str) {
return str.replace(/{also-read title="([^}]+)" url="([^}]+)" [^}]+"}/g, "<div style='margin: 15px 0px'><a href=\"$2\">Lees ook: $1</a></div>");
}
if (json.viewData.article.modules) {
let modules = json.viewData.article.modules;
article.innerHTML = '';
for (let elem of modules) {
let type = elem.acf_fc_layout;
if (type) {
let item = document.createElement('div');
if (['body_text', 'intro', 'quote'].includes(type)) {
if (elem.text) {
let parser = new DOMParser();
let doc = parser.parseFromString('<div style="margin: 20px;">' + replace_also_read((elem.title ? elem.title : '') + elem.text.replace(/\r\n/g, '<br>')) + '</div>', 'text/html');
item = doc.querySelector('div');
if (type === 'intro') {
let intro = item.querySelector('p');
if (intro)
intro.style = 'font-weight: bold; ';
} else if (type === 'quote')
item.style['text-align'] = 'center';
article.append(item);
}
} else if (type === 'image') {
let elem_images = elem.images_portrait || elem.images_landscape;
if (elem_images && elem_images.length) {
for (let img of elem_images) {
let url = img.image.sizes.large;
let caption_text = img.credits ? img.credits.replace(/(\n|<[^<]*>)/g, '') : '';
item = makeFigure(url, caption_text, {style: 'width: 100%;'});
article.append(item);
}
}
} else
console.log(elem);
}
}
} else if (json.viewData.article.body) {
let parser = new DOMParser();
let doc = parser.parseFromString('<div>' + replace_also_read(json.viewData.article.body) + '</div>', 'text/html');
let article_new = doc.querySelector('div');
if (article_new) {
article.innerHTML = '';
article.appendChild(article_new);
}
} else
header_nofix('div.article-content_base');
}
}
} catch (err) {
console.log(err);
}
}
}
}, 1000);
}
else if (matchDomain('nationalgeographic.nl')) {
let ads = 'div#gpt-leaderboard-ad, .breaker-ad:is(div, section)';
hideDOMStyle(ads);
}
else if (matchDomain(nl_dpg_adr_domains.concat(['hln.be']))) {
func_post = function () {
let article = document.querySelector(article_sel);
if (article) {
if (mobile) {
document.querySelectorAll('div[style*="grid-column-end:"]').forEach(e => e.style.width = article.offsetWidth + 'px');
}
article.querySelectorAll('div[style*="background-color:"][style*="width:"]:not(:has(> figure))').forEach(e => e.style.width = '85%'); //shades
let lazy_images = article.querySelectorAll('img[loading="lazy"][style]:not([style*=";width:100%;"])');
for (let elem of lazy_images) {
elem.style = 'width: 95%;';
if (elem.parentNode.style && elem.parentNode.getAttribute('style').includes('min-height:')) {
elem.parentNode.removeAttribute('style');
elem.parentNode.parentNode.removeAttribute('style');
}
if ((!elem.src || elem.src.startsWith('data:image/')) && elem.getAttribute('currentsourceurl'))
elem.src = elem.getAttribute('currentsourceurl');
}
let widgets = article.querySelectorAll('div > div > div[old-src]:not([src])');
for (let elem of widgets) {
let iframe = document.createElement('iframe');
iframe.src = elem.getAttribute('old-src');
iframe.style = 'width: 100%; border: none;';
if (iframe.src.includes('/widgets/') || iframe.src.includes('/playlists/'))
iframe.style.height = '400px';
elem.parentNode.replaceChild(iframe, elem);
}
let errors = article.querySelectorAll('div > div[old-src]:not([src]):has(div#main-frame-error)');
for (let elem of errors) {
let elem_new = document.createElement('iframe');
elem_new.src = elem.getAttribute('old-src');
elem_new.style = 'width: 100%; height: 400px; border: none;';
elem.parentNode.removeAttribute('style');
elem.parentNode.replaceChild(elem_new, elem);
}
let picture_divs = article.querySelectorAll('picture > div[style*="min-height:"]:has(svg)');
for (let elem of picture_divs) {
elem.parentNode.removeAttribute('style');
removeDOMElement(elem);
}
let video_buttons = article.querySelectorAll('button[type="button"]');
removeDOMElement(...video_buttons);
if (header_img && !article.querySelector('header figure, figure > div > svg'))
article.firstChild.before(header_img);
if (comments)
article.appendChild(comments);
if (readmore)
article.appendChild(readmore);
}
let article_divs = document.querySelectorAll(article_sel + ' > div:not(:empty)');
if (article_divs.length < 3)
article.before(googleSearchToolLink(url));
let ads = 'span[style*="background-color:"]:has(> span[style*="min-height:"]), span > br, ' + article_sel + ' div:empty:not([class])';
hideDOMStyle(ads, 2);
}
let header_img = document.querySelector('div[data-content-type="MEDIA_TOP"]');
let comments = document.querySelector('div[data-content-type="SHARE"]');
let readmore = document.querySelector('div[data-content-type="CROSS_PROMOTION"]');
let url = window.location.href;
let article_sel = 'article';
let paywall_sel = article_sel + ' svg.premium-indicator[class*="article-premium-indicator-"]';
let paywall_action = {rm_class: 'premium-indicator'};
if (window.location.pathname.includes('~') && !document.querySelector(paywall_sel)) { // regwall
let pars = document.querySelectorAll(article_sel + ' div[data-content-type="PARAGRAPH"]');
if (pars.length < 3) {
if (document.querySelector('div[data-content-type="MEDIA_TOP"] > div > figure'))
header_nofix('section.grid', '', 'BPC > regwall (use free account)');
getArchive(url, article_sel, {rm_attrib: 'none'}, article_sel);
}
} else
getArchive(url, paywall_sel, paywall_action, article_sel);
let ads = 'div.dfp-space';
hideDOMStyle(ads);
}
else if (matchDomain(nl_dpg_media_domains)) {
setCookie('TID_ID', '', '', '/', 0);
let banners = 'aside[data-temptation-position^="ARTICLE_"], div[data-temptation-position^="PAGE_"], div[class^="ad--"], div[id^="article_paragraph_"], div[data-advert-orig-id], div[class$="1-container"]';
hideDOMStyle(banners);
window.setTimeout(function () {
document.querySelectorAll('[class^="artstyle__"][style="display: none;"]').forEach(e => e.removeAttribute('style'));
}, 500);
}
else if (matchDomain(nl_mediahuis_region_domains)) {
let video = document.querySelector('div.video, div[data-testid="article-video"]');
func_post = function () {
let article = document.querySelector(article_sel);
if (article) {
if (video) {
let video_new = article.querySelector('div[id$="-streamone"], div[id^="video-player-"], div[id^="player_"]');
if (video_new && video_new.parentNode)
video_new.parentNode.replaceChild(video, video_new);
else {
let header = article.querySelector('h1');
let br = document.createElement('br');
if (header)
header.after(br, video, br);
}
}
article.querySelectorAll('hgroup, section:not(:empty)').forEach(e => e.style = 'width: 95%;');
if (mobile) {
let div_next = document.querySelector('div[id="__next"]');
if (div_next)
article.style.width = div_next.offsetWidth - 20 + 'px';
article.querySelectorAll('figure img[loading="lazy"][style]').forEach(e => e.style = 'width: 95%;');
let figures = article.querySelectorAll('figure div');
for (let elem of figures) {
elem.removeAttribute('style');
let svg = elem.querySelector('svg');
removeDOMElement(svg);
}
}
if (article.innerText.length < 1000) {
let header = article.querySelector('hgroup');
if (header)
header.before(googleSearchToolLink(url));
}
}
}
let paywall_sel = 'head > meta[name$="article_ispaidcontent"][content="true"]';
let article_sel = 'main > article';
let url = window.location.href;
getArchive(url, paywall_sel, '', article_sel);
window.setTimeout(function () {
let noscroll_sel = 'body[style*="popover-top-position:"]';
let noscroll = document.querySelector(noscroll_sel);
if (noscroll)
noscroll.style = 'position: static !important; overflow: visible !important';
}, 500);
let ads = 'div.mh-ad-label';
hideDOMStyle(ads);
}
else if (matchDomain('nrc.nl')) {
setCookie('counter', '', '', '/', 0, true);
let banners = 'div[id$="modal__overlay"], div.header__subscribe-bar, div.banner, dialog.dmt-login-modal';
hideDOMStyle(banners);
}
else if (matchDomain('telegraaf.nl')) {
func_post = function () {
let article = document.querySelector(article_sel);
if (article) {
if (mobile) {
let body = document.querySelector('body');
if (body) {
article.style.width = body.offsetWidth * 0.95 + 'px';
let lazy_images = document.querySelectorAll('button > img[loading="lazy"]');
for (let elem of lazy_images) {
elem.style = 'width: 100%;';
elem.parentNode.style['min-height'] = 'auto';
}
}
article.querySelectorAll('section[style*=";width:"]').forEach(e => e.removeAttribute('style'));
}
let gallery, img_width, captions, next, next_images, next_img_width;
let gallery_new = document.createElement('div');
let figure_nr = 0;
let gallery_figures = document.querySelectorAll('div > ul > li > figure');
for (let figure of gallery_figures) {
if (!figure_nr) {
gallery = figure.parentNode.parentNode.parentNode;
captions = Array.from(gallery.querySelectorAll('span')).filter(e => e.innerText.includes('©'));
next = gallery.nextSibling;
if (next)
next_images = next.querySelectorAll('img[currentsourceurl]');
}
let img = figure.querySelector('img[currentsourceurl]');
if (img && next_images) {
let img_src = img.getAttribute('currentsourceurl');
if (img_src) {
if (img_src.includes('/alternates/'))
img_width = img_src.split('/alternates/')[1].split('/')[0];
} else if (img_width && next_images[figure_nr]) {
img_src = next_images[figure_nr].getAttribute('currentsourceurl');
if (img_src && img_src.includes('/alternates/')) {
next_img_width = img_src.split('/alternates/')[1].split('/')[0];
img_src = img_src.replace(next_img_width, img_width);
}
}
let figure_new = makeFigure(img_src, captions && captions[figure_nr] ? captions[figure_nr].parentNode.innerText : '', {style: 'width: 100%;'});
figure_new.style = 'margin: 20px 0px;';
gallery_new.appendChild(figure_new);
}
figure_nr++;
}
if (gallery && next) {
next.after(gallery_new);
removeDOMElement(gallery, next);
}
let iframes = pageContains('div[style]', /^<iframe/);
if (iframes.length) {
let parser = new DOMParser();
for (let elem of iframes) {
let doc = parser.parseFromString('<div>' + elem.innerText.replace(/”/g, '"') + '</div>', 'text/html');
let elem_new = doc.querySelector('div');
elem.parentNode.replaceChild(elem_new, elem);
}
}
let social_media = article.querySelectorAll('div[style*="background-position:"] > button');
if (social_media.length) {
let json_script = document.querySelector('script#__NEXT_DATA__');
if (json_script) {
try {
let json = JSON.parse(json_script.text);
if (json) {
let embedcodes = getNestedKeys(json, 'props.pageProps.data.context.embedcodes');
if (embedcodes && embedcodes.length) {
let parser = new DOMParser();
for (let n = 0; n < social_media.length; n++) {
if (embedcodes[n] && embedcodes[n].html) {
let doc = parser.parseFromString('<div style="margin: 20px 0px;">' + embedcodes[n].html + '</div>', 'text/html');
let embed_new = doc.querySelector('div');
social_media[n].parentNode.parentNode.replaceChild(embed_new, social_media[n].parentNode);
}
}
}
}
} catch (err) {
console.log(err);
}
}
}
let errors = document.querySelectorAll('div[old-src]:not([src]):has(div#__next_error__)');
for (let elem of errors) {
let elem_new = document.createElement('iframe');
elem_new.src = elem.getAttribute('old-src');
elem_new.style = 'width: 100%; height: ' + elem.getAttribute('height') + 'px;';
elem.parentNode.replaceChild(elem_new, elem);
}
document.querySelectorAll('div > div[style^="min-height:"] > div[id^="player_"]').forEach(e => hideDOMElement(e.parentNode.parentNode));
let pars = document.querySelectorAll(article_sel + ' section > div[style*="font-family:"]:not(:empty)');
if (pars.length < 5)
article.after(googleSearchToolLink(url));
let ads = article_sel + ' div:empty';
hideDOMStyle(ads, 2);
}
}
let url = window.location.href.split(/[#\?]/)[0];
let article_sel = 'article';
window.setTimeout(function () {
let paywall_sel = 'div[data-testid="paywall-position-popover"]:not(:empty)';
let paywall = document.querySelector(paywall_sel);
if (paywall) {
if (window.location.pathname.startsWith('/video/') && document.querySelector('div[data-testid="article-video"]'))
removeDOMElement(paywall);
else
getArchive(url, paywall_sel, '', article_sel);
let noscroll = document.querySelector('body[class]');
if (noscroll)
noscroll.removeAttribute('class');
}
}, 1000);
let ads = 'div[id^="ad_"], div[class^="scrollable-ads"], iframe#ecommerce-ad-iframe, div[data-pym-src], div.mh-ad-label';
hideDOMStyle(ads);
}
else if (matchDomain('tijd.be')) {
let article_match = window.location.pathname.match(/\/(\d+)\.html$/);
if (article_match) {
let article_id = article_match[1];
let url = window.location.href;
let nofix_msg = 'BPC > no data yet (refresh page)';
if (matchDomain('belegger.tijd.be')) {
let paywall = document.querySelector('html.paywalled');
if (paywall) {
paywall.classList.remove('paywalled');
let article = document.querySelector('main div.row > div');
if (article) {
let authorization = mediafin_get_auth();
if (authorization) {
let url_src = 'https://api.mediafin.be/content/article/urn:article:' + article_id;
getExtFetch(url_src, '', {headers: {authorization: authorization}}, mediafin_main, [article]);
} else {
header_nofix(article, '', nofix_msg);
article.before(googleSearchToolLink(url));
}
}
}
addStyle('body {overflow: auto !important} ' + 'main div.row > div p {margin: 20px 0px}');
let banner = document.querySelector('div[data-id="react-paywall-auth0"]');
removeDOMElement(banner);
} else {
window.setTimeout(function () {
let close_button = document.querySelector('button.ds-modal__top-bar__closebutton');
if (close_button)
close_button.click();
}, 1000);
let paywall = document.querySelector('html.paywall-active');
if (paywall) {
paywall.classList.remove('paywall-active');
if (!(window.location.href.includes('/live-blog/') || document.querySelector('header.live-blog-header'))) {
let article = document.querySelector('div[itemprop="articleBody"]');
if (article) {
let authorization = mediafin_get_auth();
if (authorization) {
let url_src = 'https://api.mediafin.be/content/article/urn:article:' + article_id;
getExtFetch(url_src, '', {headers: {authorization: authorization}}, mediafin_main, [article]);
} else {
header_nofix(article, '', nofix_msg);
article.before(googleSearchToolLink(url));
}
}
} else {
let main = document.querySelector('main');
if (main)
main.after(googleSearchToolLink(url));
}
}
}
function clear_inert() {
document.querySelectorAll('[inert]').forEach(e => e.removeAttribute('inert'));
}
clear_inert();
}
}
else if (matchDomain('vn.nl')) {
let paywall = document.querySelectorAll('section[class^="c-paywall"]');
if (paywall.length) {
removeDOMElement(...paywall);
let article = document.querySelector('div.c-article-content__container');
if (article) {
let json_script = document.querySelector('script#__NEXT_DATA__');
if (json_script) {
try {
let json = JSON.parse(json_script.text);
if (json && json.props.pageProps.article && json.props.pageProps.article.content) {
let parser = new DOMParser();
let doc = parser.parseFromString('<div>' + json.props.pageProps.article.content + '</div>', 'text/html');
let content_new = doc.querySelector('div');
article.innerHTML = '';
article.appendChild(content_new);
let audio = document.querySelector('div.c-author-info__audio-player');
if (audio) {
if (json.props.pageProps.article.audioplayer.audioFile.node.mediaItemUrl) {
let audio_new = document.createElement('audio');
audio_new.src = json.props.pageProps.article.audioplayer.audioFile.node.mediaItemUrl;
audio_new.style = 'height: 50px; width: 60%;';
audio_new.setAttribute('controls', '');
audio.parentNode.replaceChild(audio_new, audio);
}
}
} else
refreshCurrentTab();
} catch (err) {
console.log(err);
}
}
}
let noscroll = document.querySelector('html[class]');
if (noscroll)
noscroll.removeAttribute('class');
}
}
ads_hide();
leaky_paywall_unhide();
}, 1000);
// General Functions
// import (see @require)
})();

View File

@@ -0,0 +1,118 @@
// ==UserScript==
// @name Bypass Paywalls Clean - pl
// @version 4.3.4.0
// @description Bypass Paywalls of news sites
// @author magnolia1234
// @downloadURL https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc.pl.user.js
// @updateURL https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc.pl.user.js
// @homepageURL https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters
// @supportURL https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters
// @license MIT; https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=LICENSE
// @noframes
// @match *://*.auto-swiat.pl/*
// @match *://*.businessinsider.com.pl/*
// @match *://*.forbes.pl/*
// @match *://*.komputerswiat.pl/*
// @match *://*.magazyn-kuchnia.pl/*
// @match *://*.newsweek.pl/*
// @match *://*.onet.pl/*
// @match *://*.parkiet.com/*
// @match *://*.pb.pl/*
// @match *://*.rp.pl/*
// @match *://*.wyborcza.biz/*
// @match *://*.wyborcza.pl/*
// @match *://*.wysokieobcasy.pl/*
// @connect archive.fo
// @connect archive.is
// @connect archive.li
// @connect archive.md
// @connect archive.ph
// @connect archive.vn
// @grant GM.xmlHttpRequest
// @require https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc_func.js
// ==/UserScript==
(function() {
//'use strict';
window.setTimeout(function () {
var pl_ringier_domains = ['auto-swiat.pl', 'businessinsider.com.pl', 'forbes.pl', 'komputerswiat.pl', 'newsweek.pl', 'onet.pl'];
if (matchDomain('pb.pl')) {
let paywall = document.querySelector('div.paywall');
if (paywall) {
paywall.classList.remove('paywall');
let article_hidden = paywall.querySelector('section.o-article-content');
if (article_hidden)
article_hidden.removeAttribute('class');
let loader = document.querySelector('div.o-piano-template-loader-box');
removeDOMElement(loader);
}
}
else if (matchDomain(pl_ringier_domains)) {
let premium = document.querySelector('div.contentPremium[style]');
if (premium) {
premium.removeAttribute('class');
premium.removeAttribute('style');
premium.parentNode.removeAttribute('class');
}
if (matchDomain('newsweek.pl')) {
let audio_tts = document.querySelector('button.pw-ap__button[disabled]');
if (audio_tts)
audio_tts.removeAttribute('disabled');
let podcast_locked = document.querySelector('div.embed__podcastPlayer.contentPremium-locked');
if (podcast_locked)
podcast_locked.classList.remove('contentPremium-locked');
let podcast_video = document.querySelector('div.videoPremiumWrapper > div.embed__mainVideoWrapper');
if (podcast_video) {
podcast_video.removeAttribute('class');
podcast_video.parentNode.removeAttribute('class');
}
}
let ads = 'div.adPlaceholder , div[class^="Ad"][class*="Placeholder_"], div[data-placeholder-caption], div[data-run-module$=".floatingAd"], aside[data-ad-container], aside.adsContainer, [class^="pwAds"], .hide-for-paying, div.onet-ad, div.bottomBar, ad-default, ad-floating-group, aside.ods-ads__ad-space';
hideDOMStyle(ads);
}
else if (matchDomain(['rp.pl', 'parkiet.com'])) {
let paywall = document.querySelector('div.paywallComp');
if (paywall) {
removeDOMElement(paywall);
let article = document.querySelector('div.article--content');
if (article) {
let url = window.location.href;
article.firstChild.before(googleSearchToolLink(url));
}
}
}
else if (matchDomain(['wyborcza.biz', 'wyborcza.pl', 'wysokieobcasy.pl', 'magazyn-kuchnia.pl'])) {
func_post = function () {
let block_quotes = document.querySelectorAll('blockquote > a[href]');
for (let elem of block_quotes) {
if (!elem.innerText.trim())
elem.innerText = elem.href;
}
let empty_spans = document.querySelectorAll('figure > a > span:empty');
removeDOMElement(...empty_spans);
header_nofix('div.mrf-article-body', 'span[style*="linear-gradient"]', 'BPC > no archive-fix');
let ads = 'div[style^="min-height:"]';
hideDOMStyle(ads, 2);
}
let url = window.location.href;
getArchive(url, 'div.article--content-fadeout', {rm_attrib: 'class'}, 'div.container[class*="pt"]', '', 'div.body > div:not([style*="background-color:"]):not([old-position]):not([name]):not([id])');
let ads = 'div[id^="adUnit"], div[id^="ads-"]';
hideDOMStyle(ads);
}
ads_hide();
leaky_paywall_unhide();
}, 1000);
// General Functions
// import (see @require)
})();

File diff suppressed because it is too large Load Diff