Fix-update Faz.net (layout)

This commit is contained in:
magnolia1234 2020-04-30 20:49:35 +02:00
parent 5967eb7b2e
commit 804ebbbf49
2 changed files with 11 additions and 9 deletions

View file

@ -259,17 +259,19 @@ When coming across a paywall click the cookie icon to remove the cookies then re
_*May not always succeed_ _*May not always succeed_
### New site requests ### New site requests
You can submit a request for a new website [here](https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean/issues?status=new&status=open). Please read the following instructions and share your results for a quicker process. Remember to check the [previous requests](https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean/issues) before asking for a new website. You can submit a request for a new website [here](https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean/issues?status=new&status=open).
1. Visit an article on the site you want to bypass the paywall for and copy the article title. Please read the following instructions and share your results for a quicker process.
2. Open up a new incognito window (Ctrl+Shift+N) and paste the article title into Google. Remember to check the [previous requests](https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean/issues) before asking for a new website.
3. Click on the same article from the Google search results page. Or you can: 1. Visit an article on the site you want to bypass the paywall for and copy the article title.
4. Disable javascript on the website by clicking the button right icon </> on the uBlock panel. 2. Open up a new incognito window (Ctrl+Shift+N) and paste the article title into Google.
3. Click on the same article from the Google search results page. Or you can:
4. Disable javascript on the website by clicking the button right icon </> on the uBlock panel.
5. Refresh the page. 5. Refresh the page.
### Add custom site ### Add custom site
Add your own custom site (also for testing). Add your own custom site (also for testing).
Check 'Options'-link in popup-menu and go to custom sites. Check 'Options'-link in popup-menu and go to custom sites.
By default sites' cookies are removed after page loads (to bypass article limit). By default sites' cookies are removed after page loads (to bypass article limit).
Also you can enable Googlebot user-agent or disable Javascript for (sub)domain(s). Also you can enable Googlebot user-agent or disable Javascript for (sub)domain(s).
### Troubleshooting ### Troubleshooting

View file

@ -536,7 +536,7 @@ else if (matchDomain('faz.net')) {
const breakText = (str) => { const breakText = (str) => {
str = str.replace(/(?:^|[\w\"\“])(\.|\?|!)(?=[A-Za-zÀ-ÿ\„]{2,})/gm, "$&\n\n"); str = str.replace(/(?:^|[\w\"\“])(\.|\?|!)(?=[A-Za-zÀ-ÿ\„]{2,})/gm, "$&\n\n");
str = str.replace(/([a-z\"\“])(?=[A-Z])/gm, "$&\n\n"); str = str.replace(/([a-z\"\“])(?=[A-Z](?=[A-Za-zÀ-ÿ]+))/gm, "$&\n\n");
// exceptions: names with alternating lower/uppercase (no general fix) // exceptions: names with alternating lower/uppercase (no general fix)
str = str.replace(/Glaxo\n\nSmith\n\nKline/g, "GlaxoSmithKline"); str = str.replace(/Glaxo\n\nSmith\n\nKline/g, "GlaxoSmithKline");
str = str.replace(/If\n\nSG/g, "IfSG"); str = str.replace(/If\n\nSG/g, "IfSG");