Add The Indian Express
parent
f212b451fc
commit
ff0db4d43f
|
@ -632,6 +632,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 (Chrome 50+)
|
||||
|
|
|
@ -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/#/')) {
|
||||
|
|
|
@ -39,5 +39,5 @@
|
|||
"webRequestBlocking",
|
||||
"<all_urls>"
|
||||
],
|
||||
"version": "2.4.7.6"
|
||||
"version": "2.4.7.7"
|
||||
}
|
||||
|
|
|
@ -240,6 +240,7 @@
|
|||
"*://*.inc.com/*",
|
||||
"*://*.inc42.com/*",
|
||||
"*://*.independent.ie/*",
|
||||
"*://*.indianexpress.com/*",
|
||||
"*://*.indystar.com/*",
|
||||
"*://*.informacion.es/*",
|
||||
"*://*.infzm.com/*",
|
||||
|
@ -582,5 +583,5 @@
|
|||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.4.7.6"
|
||||
"version": "2.4.7.7"
|
||||
}
|
||||
|
|
6
sites.js
6
sites.js
|
@ -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…
Reference in New Issue