mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-04 12:00:10 +00:00
Add Inkl
This commit is contained in:
parent
504b7140bf
commit
e3ef95e7ed
@ -17,11 +17,11 @@ Here you can also find a limited permissions version (custom sites will not be w
|
||||
Install add-on by downloading xpi-file.
|
||||
|
||||
### List of supported websites
|
||||
#### United States of America
|
||||
##### World news
|
||||
[First Things](https://www.firstthings.com) -
|
||||
[Foreign Policy](https://www.foreignpolicy.com) -
|
||||
[Harper's Magazine](https://harpers.org) -
|
||||
[Inkl](https://www.inkl.com) -
|
||||
[National Review](https://www.nationalreview.com) -
|
||||
[The American Interest](https://www.the-american-interest.com) -
|
||||
[The Atlantic](https://www.theatlantic.com) -
|
||||
@ -75,7 +75,7 @@ Install add-on by downloading xpi-file.
|
||||
[SofRep](https://sofrep.com) -
|
||||
[The Daily Beast](https://www.thedailybeast.com)*
|
||||
|
||||
##### Local US news
|
||||
##### Local USA news
|
||||
[Baltimore Sun](https://www.baltimoresun.com) -
|
||||
[Crain's Chicago Business](https://www.chicagobusiness.com) -
|
||||
[Chicago Tribune](https://www.chicagotribune.com) -
|
||||
|
@ -42,6 +42,7 @@ var allow_cookies = [
|
||||
'heraldsun.com.au',
|
||||
'humo.be',
|
||||
'independent.ie',
|
||||
'inkl.com',
|
||||
'intelligentinvestor.com.au',
|
||||
'kleinezeitung.at',
|
||||
'lc.nl',
|
||||
@ -413,7 +414,8 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||
return { cancel: true };
|
||||
}
|
||||
|
||||
if (!isSiteEnabled(details)) {
|
||||
let inkl_site = (matchUrlDomain('cdn.jsdelivr.net', details.url) && matchUrlDomain('inkl.com', header_referer) && isSiteEnabled({url: header_referer}));
|
||||
if (!isSiteEnabled(details) && !(inkl_site)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -688,6 +688,17 @@ else if (matchDomain('ftm.nl')) {
|
||||
removeDOMElement(banner_pp);
|
||||
}
|
||||
|
||||
else if (matchDomain('inkl.com')) {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
let article_container = document.querySelector('div.article-content-container');
|
||||
if (article_container)
|
||||
article_container.setAttribute("style", "overflow: visible;");
|
||||
let gradient_container = document.querySelector('div.gradient-container');
|
||||
if (gradient_container)
|
||||
gradient_container.setAttribute("style", "height:auto;");
|
||||
});
|
||||
}
|
||||
|
||||
// General Functions
|
||||
function removeDOMElement(...elements) {
|
||||
for (let element of elements) {
|
||||
|
@ -114,6 +114,7 @@
|
||||
"*://*.ilmessaggero.it/*",
|
||||
"*://*.inc.com/*",
|
||||
"*://*.independent.ie/*",
|
||||
"*://*.inkl.com/*",
|
||||
"*://*.inquirer.com/*",
|
||||
"*://*.intelligentinvestor.com.au/*",
|
||||
"*://*.irishtimes.com/*",
|
||||
@ -243,6 +244,7 @@
|
||||
"*://*.evolok.net/*",
|
||||
"*://*.flip-pay.com/*",
|
||||
"*://*.htmedia.in/*",
|
||||
"*://*.jsdelivr.net/*",
|
||||
"*://*.lightboxcdn.com/*",
|
||||
"*://*.lp4.io/*",
|
||||
"*://*.nyt.com/*",
|
||||
|
1
sites.js
1
sites.js
@ -65,6 +65,7 @@ var defaultSites =
|
||||
"Il Manifesto": "ilmanifesto.it",
|
||||
"Il Messaggero": "ilmessaggero.it",
|
||||
"Illawarra Mercury": "illawarramercury.com.au",
|
||||
"Inkl": "inkl.com",
|
||||
"Intelligent Investor": "intelligentinvestor.com.au",
|
||||
"Irish Independent": "independent.ie",
|
||||
"Kleine Zeitung": "kleinezeitung.at",
|
||||
|
Loading…
Reference in New Issue
Block a user