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==
(function () {
'use strict';
top.location.hostname = "smile.amazon.com";
'use strict';
top.location.hostname = "smile.amazon.com";
})();

View file

@ -11,6 +11,6 @@
// ==/UserScript==
(function () {
'use strict';
top.location.hostname = "m.rdsm.ca";
'use strict';
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==
(function () {
'use strict';
top.location.hostname = "r.rdsm.ca";
'use strict';
top.location.hostname = "r.rdsm.ca";
})();

View file

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

View file

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

View file

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