mirror of
https://github.com/iamadamdev/bypass-paywalls-chrome
synced 2025-04-30 02:34:26 +02:00
Remove unnecessary code (#671)
This commit is contained in:
parent
8adffed422
commit
cec5d46f3d
@ -289,7 +289,7 @@ extensionApi.webRequest.onBeforeSendHeaders.addListener(function (details) {
|
||||
// this fixes images not being loaded on cooking.nytimes.com main page
|
||||
// referrer has to be *nytimes.com otherwise returns 403
|
||||
requestHeader.value = 'https://cooking.nytimes.com';
|
||||
} else if (isSameDomain(details.url, 'wsj.com') || isSameDomain(details.url, 'ft.com') || isSameDomain(details.url, 'fd.nl')) {
|
||||
} else if (isSameDomain(details.url, 'fd.nl')) {
|
||||
requestHeader.value = 'https://www.facebook.com/';
|
||||
} else {
|
||||
requestHeader.value = 'https://www.google.com/';
|
||||
@ -305,7 +305,7 @@ extensionApi.webRequest.onBeforeSendHeaders.addListener(function (details) {
|
||||
|
||||
// otherwise add it
|
||||
if (!setReferer) {
|
||||
if (isSameDomain(details.url, 'wsj.com') || isSameDomain(details.url, 'ft.com') || isSameDomain(details.url, 'fd.nl')) {
|
||||
if (isSameDomain(details.url, 'fd.nl')) {
|
||||
requestHeaders.push({
|
||||
name: 'Referer',
|
||||
value: 'https://www.facebook.com/'
|
||||
|
Loading…
x
Reference in New Issue
Block a user