mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 04:01:58 +01:00
Fix Barron's links to sign in/read more articles
Bottom (recommendation) article-link stays unaltered (probably timing issue). Sometimes article holds on to multiple recommendations layout (only intros).
This commit is contained in:
parent
d81aa3d3d7
commit
23bf64ce61
1 changed files with 15 additions and 0 deletions
|
@ -489,6 +489,21 @@ else if (matchDomain('challenges.fr')) {
|
|||
});
|
||||
}
|
||||
|
||||
else if (window.location.href.indexOf("barrons.com") !== -1) {
|
||||
var href = '';
|
||||
const signin_links = document.querySelectorAll('a.primary-button--link');
|
||||
for (let i = 0; i < signin_links.length; i++) {
|
||||
href = signin_links[i].href;
|
||||
if (href.includes('target=')) {
|
||||
href = href.split('target')[1].split('%3F')[0];
|
||||
href = href.replace('=', '').replace('%3A', ':');
|
||||
href = href.replace('%2F', '/').replace('%2F', '/').replace('%2F', '/').replace('%2F', '/');
|
||||
signin_links[i].href = href;
|
||||
signin_links[i].text = 'Click';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// General Functions
|
||||
function removeDOMElement(...elements) {
|
||||
for (let element of elements) {
|
||||
|
|
Loading…
Reference in a new issue