master
magnolia1234 2020-06-20 09:42:45 +02:00
parent e0a3e3e4f4
commit 75c196b2fe
5 changed files with 19 additions and 3 deletions

View File

@ -46,11 +46,11 @@ Visit the [Firefox repository](https://bitbucket.org/magnolia1234/bypass-paywall
* You will be logged out for any site you have checked.
### 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) -
@ -104,7 +104,7 @@ Visit the [Firefox repository](https://bitbucket.org/magnolia1234/bypass-paywall
[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) -

View File

@ -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;
}

View File

@ -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) {

View File

@ -102,6 +102,7 @@
"*://*.ilmessaggero.it/*",
"*://*.inc.com/*",
"*://*.independent.ie/*",
"*://*.inkl.com/*",
"*://*.inquirer.com/*",
"*://*.intelligentinvestor.com.au/*",
"*://*.irishtimes.com/*",
@ -231,6 +232,7 @@
"*://*.evolok.net/*",
"*://*.flip-pay.com/*",
"*://*.htmedia.in/*",
"*://*.jsdelivr.net/*",
"*://*.lightboxcdn.com/*",
"*://*.lp4.io/*",
"*://*.nyt.com/*",

View File

@ -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",