Add Republic.ru
This commit is contained in:
parent
99a3338f0a
commit
4f22cbfd07
@ -236,6 +236,8 @@ Visit the [Firefox repository](https://bitbucket.org/magnolia1234/bypass-paywall
|
||||
[Trouw](https://www.trouw.nl) -
|
||||
[Volkskrant](https://www.volkskrant.nl) -
|
||||
[Vrij Nederland](https://www.vn.nl)
|
||||
##### Russia
|
||||
[Republic.ru](https://republic.ru)
|
||||
##### Spain
|
||||
[El Mundo](https://www.elmundo.es) -
|
||||
[El País](https://elpais.com)
|
||||
|
@ -123,6 +123,7 @@ const use_google_bot_default = [
|
||||
'miamiherald.com',
|
||||
'ntnews.com.au',
|
||||
'quora.com',
|
||||
'republic.ru',
|
||||
'seekingalpha.com',
|
||||
'switzersuperreport.com.au',
|
||||
'theathletic.co.uk',
|
||||
@ -382,7 +383,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||
}
|
||||
|
||||
// remove cookies Discover Magazine
|
||||
if (matchUrlDomain('ctfassets.net', details.url) && matchUrlDomain('discovermagazine.com', header_referer) && isSiteEnabled({url: 'https://www.discovermagazine.com'}) {
|
||||
if (matchUrlDomain('ctfassets.net', details.url) && matchUrlDomain('discovermagazine.com', header_referer) && isSiteEnabled({url: 'https://www.discovermagazine.com'})) {
|
||||
ext_api.cookies.getAll({domain: 'discovermagazine.com'}, function(cookies) {
|
||||
for (let cookie of cookies) {
|
||||
ext_api.cookies.remove({url: (cookie.secure ? "https://" : "http://") + cookie.domain + cookie.path, name: cookie.name});
|
||||
|
@ -679,6 +679,11 @@ else if (matchDomain('independent.ie')) {
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('republic.ru')) {
|
||||
let paywall = document.querySelector('.paywall-section');
|
||||
removeDOMElement(paywall);
|
||||
}
|
||||
|
||||
// General Functions
|
||||
function removeDOMElement(...elements) {
|
||||
for (let element of elements) {
|
||||
|
@ -157,6 +157,7 @@
|
||||
"*://*.quora.com/*",
|
||||
"*://*.qz.com/*",
|
||||
"*://*.repubblica.it/*",
|
||||
"*://*.republic.ru/*",
|
||||
"*://*.sacbee.com/*",
|
||||
"*://*.sandiegouniontribune.com/*",
|
||||
"*://*.science-et-vie.com/*",
|
||||
|
1
sites.js
1
sites.js
@ -113,6 +113,7 @@ var defaultSites =
|
||||
"Pittsburgh Post Gazette": "post-gazette.com",
|
||||
"Quartz": "qz.com",
|
||||
"Quora": "quora.com",
|
||||
"Republic.ru": "republic.ru",
|
||||
"San Diego Union Tribune": "sandiegouniontribune.com",
|
||||
"San Francisco Chronicle": "sfchronicle.com",
|
||||
"Science & Vie": "science-et-vie.com",
|
||||
|
Loading…
x
Reference in New Issue
Block a user