added paywall reader userscript

This commit is contained in:
Rudis Muiznieks 2022-12-20 07:49:11 -06:00
parent f185e32b56
commit 6e1e43da96
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
7 changed files with 51 additions and 12 deletions

View File

@ -11,6 +11,6 @@
// ==/UserScript== // ==/UserScript==
(function () { (function () {
'use strict'; 'use strict';
top.location.hostname = "smile.amazon.com"; top.location.hostname = "smile.amazon.com";
})(); })();

View File

@ -11,6 +11,6 @@
// ==/UserScript== // ==/UserScript==
(function () { (function () {
'use strict'; 'use strict';
top.location.hostname = "m.rdsm.ca"; top.location.hostname = "m.rdsm.ca";
})(); })();

View File

@ -0,0 +1,39 @@
// ==UserScript==
// @name Redirect-Paywall-Reader
// @namespace code.sitosis.com
// @version 1.0
// @description Rediret Paywall-Reader https://github.com/joshterrill/paywall-reader
// @author rudism
// @match https://www.nytimes.com/*
// @match https://cooking.nytimes.com/*
// @match https://nytimes.com/*
// @match https://www.newyorker.com/*
// @match https://newyorker.com/*
// @match https://www.economist.com/*
// @match https://economist.com/*
// @match https://www.washingtonpost.com/*
// @match https://washingtonpost.com/*
// @match https://www.latimes.com/*
// @match https://latimes.com/*
// @match https://www.theathletic.com/*
// @match https://theathletic.com/*
// @match https://www.businessinsider.com/*
// @match https://businessinsider.com/*
// @match https://www.bloomberg.com/*
// @match https://bloomberg.com/*
// @match https://www.vogue.com/*
// @match https://vogue.com/*
// @match https://www.atlantic.com/*
// @match https://atlantic.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
(function () {
'use strict';
if (top.location.pathname !== '/') {
var host = top.location.hostname.replace(/^www\./, '');
var url = encodeURIComponent(top.location);
top.location=`https://p.rdsm.ca/read?source=${host}&url=${url}`;
}
})();

View File

@ -12,6 +12,6 @@
// ==/UserScript== // ==/UserScript==
(function () { (function () {
'use strict'; 'use strict';
top.location.hostname = "r.rdsm.ca"; top.location.hostname = "r.rdsm.ca";
})(); })();

View File

@ -12,6 +12,6 @@
// ==/UserScript== // ==/UserScript==
(function () { (function () {
'use strict'; 'use strict';
top.location.hostname = "t.rdsm.ca"; top.location.hostname = "t.rdsm.ca";
})(); })();

View File

@ -19,8 +19,8 @@ function injectStyle(css) {
} }
(function () { (function () {
'use strict'; 'use strict';
injectStyle(` injectStyle(`
body { body {
background-color: #11111b; background-color: #11111b;
} }

View File

@ -19,8 +19,8 @@ function injectStyle(css) {
} }
(function () { (function () {
'use strict'; 'use strict';
injectStyle(` injectStyle(`
body, body,
.form-actions { .form-actions {
background: #1e1e2e; background: #1e1e2e;