Add Swarajyamag (India)

merge-requests/15/head
magnolia1234 10 months ago
parent 987494ce23
commit 2cd01faf87

@ -864,6 +864,7 @@ Grouped in options:\
[Mid-Day](https://www.mid-day.com) -
[Outlook](https://www.outlookindia.com) -
[Outlook Business](https://www.outlookbusiness.com) -
[Swarajyamag](https://swarajyamag.com) -
[The Economic Times (ET Prime)](https://economictimes.indiatimes.com) -
[The Financial Express](https://www.financialexpress.com) -
[The Hindu](https://www.thehindu.com) -

@ -6,6 +6,7 @@ Post-release
Add Autocar.co.uk
Add Bar and Bench (India)
Add Crikey.com.au
Add Swarajyamag (India)
Add Washington Examiner
Fix EUobserver (css)
Fix Grupo Vocento (limit amp-redirect)

@ -4446,6 +4446,19 @@ else if (matchDomain('studocu.com')) {
}, 1000);
}
else if (matchDomain('swarajyamag.com')) {
let paywall = document.querySelector('div#story-notification');
if (paywall) {
removeDOMElement(paywall);
let non_subscriber_text = document.querySelector('div#non-subscriber-text');
if (non_subscriber_text)
non_subscriber_text.removeAttribute('id');
let subscriber_text = document.querySelectorAll('div.subscriber-text');
for (let elem of subscriber_text)
elem.removeAttribute('class');
}
}
else if (matchDomain('techinasia.com')) {
let paywall = document.querySelector('.paywall-content');
if (paywall && dompurify_loaded) {

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.2.7.7"
"version": "3.2.7.8"
}

@ -364,7 +364,7 @@
},
"Odt.co.nz": {
"allow_cookies": 1,
"block_regex": "my\\.odt\\.co\\.nz\\/bwtw\\/api\\/TheWall",
"block_regex": "\\.odt\\.co\\.nz\\/bwtw\\/api\\/TheWall",
"cs_code": "[{\"cond\":\"div[property='content:encoded']\", \"rm_attrib\":\"property\"}]",
"domain": "odt.co.nz"
},
@ -466,10 +466,6 @@
"block_regex": "\\.tinypass\\.com",
"domain": "supchina.com"
},
"Swarajyamag.com": {
"amp_redirect": "div#story-notification",
"domain": "swarajyamag.com"
},
"Tagesspiegel.de": {
"add_ext_link": "div#paywal|div.article--paid",
"add_ext_link_type": "archive.is",

@ -608,6 +608,7 @@
"*://*.sun-sentinel.com/*",
"*://*.suomensotilas.fi/*",
"*://*.svz.de/*",
"*://*.swarajyamag.com/*",
"*://*.syracuse.com/*",
"*://*.tampabay.com/*",
"*://*.techinasia.com/*",
@ -775,5 +776,5 @@
"*://*.wyleex.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.2.7.7"
"version": "3.2.7.8"
}

@ -1923,6 +1923,11 @@ var defaultSites = {
allow_cookies: 1,
block_regex: /\/suomensotilas\.fi\/wp-content\/plugins\/epflpw\/js\/pw\.js/
},
"Swarajyamag": {
domain: "swarajyamag.com",
allow_cookies: 1,
remove_cookies: 1
},
"Tampa Bay Times": {
domain: "tampabay.com",
allow_cookies: 1,

@ -137,6 +137,13 @@
"cs_code": "[{\"cond\":\"div.mod-paywall\", \"rm_elem\":1}]",
"new_site": 1
},
"Swarajyamag": {
"domain": "swarajyamag.com",
"allow_cookies": 1,
"remove_cookies": 1,
"cs_code": "[{\"cond\":\"div#story-notification\", \"rm_elem\": 1, \"elems\":[{\"cond\":\"div#non-subscriber-text\", \"rm_attrib\": \"id\"}, {\"cond\":\"div.subscriber-text\", \"rm_attrib\": \"class\"}]}]",
"new_site": 1
},
"Telegraaf": {
"domain": "telegraaf.nl",
"allow_cookies": 1,

Loading…
Cancel
Save