Add The Indian Express

merge-requests/3/head
magnolia1234 3 years ago
parent ba60f48d69
commit 8335331804

@ -610,6 +610,7 @@ Grouped in options:\
[The Economic Times (ET Prime)](https://economictimes.indiatimes.com) -
[The Hindu](https://www.thehindu.com) -
[The Hindu BusinessLine](https://www.thehindubusinessline.com) -
[The Indian Express](https://indianexpress.com) -
[Times of India](https://timesofindia.indiatimes.com)
#### Israel

@ -34,11 +34,13 @@ const restrictions = {
'seekingalpha.com': /.+\/seekingalpha\.com\/($|(amp\/)?(article|news)\/|samw\/)/,
'statista.com': /^((?!\.statista\.com\/(outlook|study)\/).)*$/,
'techinasia.com': /\.techinasia\.com\/.+/,
'theaustralian.com.au': /^((?!todayspaper\.theaustralian\.com\.au\/).)*$/,
'theglobeandmail.com': /\.theglobeandmail\.com\/.+\//,
'timeshighereducation.com': /.+\.timeshighereducation\.com\/((features|news|people)\/|.+((\w)+(\-)+){3,}.+|sites\/default\/files\/)/
}
for (let domain of au_news_corp_domains)
restrictions[domain] = new RegExp('^((?!todayspaper\\.' + domain.replace(/\./g, '\\.') + '\\/).)*$');
// Don't remove cookies before/after page load
var allow_cookies = [];
var remove_cookies = [];
@ -212,7 +214,7 @@ function set_rules(sites, sites_updated, sites_custom) {
if (rule.block_regex instanceof RegExp)
blockedRegexes[domain] = rule.block_regex;
else
blockedRegexes[domain] = new RegExp(rule.block_regex.replace('{domain}', domain.replace('.', '\\.').replace(/(^\/|\/$)/g, '')));
blockedRegexes[domain] = new RegExp(rule.block_regex.replace('{domain}', domain.replace(/\./g, '\\.').replace(/(^\/|\/$)/g, '')));
}
if (rule.useragent) {
switch (rule.useragent) {

@ -8,6 +8,7 @@ Add Lequipe.fr
Add LaLibre.be
Add LeVif.be
Add San Antonio Express-News (local USA)
Add The Indian Express
Add Vrij Nederland
Fix Bloomberg (permission block js)
Remove tabs-permission (amo - Firefox 86+)

@ -2228,6 +2228,15 @@ else if (matchDomain('inc42.com')) {
}
}
else if (matchDomain('indianexpress.com')) {
if (window.location.pathname.endsWith('/lite/'))
amp_unhide_access_hide('="metering.result=\'ALLOW_ACCESS\'"', '', '.amp-ad, amp-embed');
else {
let ads = document.querySelectorAll('div[class^="adsbox"]');
removeDOMElement(...ads);
}
}
else if (matchDomain('infzm.com')) {
let url = window.location.href;
if (url.includes('/wap/#/')) {

@ -252,6 +252,7 @@
"*://*.inc.com/*",
"*://*.inc42.com/*",
"*://*.independent.ie/*",
"*://*.indianexpress.com/*",
"*://*.indystar.com/*",
"*://*.informacion.es/*",
"*://*.infzm.com/*",
@ -594,5 +595,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.4.7.6"
"version": "2.4.7.7"
}

@ -1456,6 +1456,11 @@ var defaultSites = {
allow_cookies: 1,
block_regex: /(cdn\.cxense\.com\/|\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad(s)?)-.+\.js)/
},
"The Indian Express": {
domain: "indianexpress.com",
allow_cookies: 1,
block_regex: /(\/indianexpress\.com\/.+\/indianexpress\/js\/evolok\/.+\.js|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js)/
},
"The Intercept": {
domain: "theintercept.com",
allow_cookies: 1,
@ -1859,6 +1864,7 @@ var grouped_sites = {};
expandSiteRules(defaultSites);
// grouped domains (background)
var au_news_corp_domains = grouped_sites['###_au_news_corp'];
var it_repubblica_domains = defaultSites['###_gr_it_repubblica_domains']['group_rule_domains'];
var nl_mediahuis_region_domains = grouped_sites['###_nl_mediahuis_region'];
var no_nhst_media_domains = grouped_sites['###_no_nhst_media'];

@ -25,6 +25,12 @@
"domain": "expressnews.com",
"block_regex": "(\\.blueconic\\.net\\/|cdn\\.ampproject\\.org\\/v\\d\/amp-(access|(sticky-)?ad)-.+\\.js)"
},
"The Indian Express": {
"domain": "indianexpress.com",
"allow_cookies": 1,
"amp_unhide": 1,
"block_regex": "(\\/indianexpress\\.com\\/.+\\/indianexpress\\/js\\/evolok\\/.+\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|(sticky-)?ad)-.+\\.js)"
},
"The (New Orleans) Advocate": {
"domain": "###_usa_theadvocate",
"group": [

Loading…
Cancel
Save