diff --git a/userscripts/redirect-amazon.js b/userscripts/redirect-amazon.js index aec6b86..ae0d41a 100644 --- a/userscripts/redirect-amazon.js +++ b/userscripts/redirect-amazon.js @@ -11,6 +11,6 @@ // ==/UserScript== (function () { - 'use strict'; - top.location.hostname = "smile.amazon.com"; + 'use strict'; + top.location.hostname = "smile.amazon.com"; })(); diff --git a/userscripts/redirect-medium.js b/userscripts/redirect-medium.js index 62ccd04..5bcac5d 100644 --- a/userscripts/redirect-medium.js +++ b/userscripts/redirect-medium.js @@ -11,6 +11,6 @@ // ==/UserScript== (function () { - 'use strict'; - top.location.hostname = "m.rdsm.ca"; + 'use strict'; + top.location.hostname = "m.rdsm.ca"; })(); diff --git a/userscripts/redirect-pwr.js b/userscripts/redirect-pwr.js new file mode 100644 index 0000000..f63df51 --- /dev/null +++ b/userscripts/redirect-pwr.js @@ -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}`; + } +})(); diff --git a/userscripts/redirect-reddit.js b/userscripts/redirect-reddit.js index 9d2767b..ee2d260 100644 --- a/userscripts/redirect-reddit.js +++ b/userscripts/redirect-reddit.js @@ -12,6 +12,6 @@ // ==/UserScript== (function () { - 'use strict'; - top.location.hostname = "r.rdsm.ca"; + 'use strict'; + top.location.hostname = "r.rdsm.ca"; })(); diff --git a/userscripts/redirect-twitter.js b/userscripts/redirect-twitter.js index 8d637e6..7b4ce4f 100644 --- a/userscripts/redirect-twitter.js +++ b/userscripts/redirect-twitter.js @@ -12,6 +12,6 @@ // ==/UserScript== (function () { - 'use strict'; - top.location.hostname = "t.rdsm.ca"; + 'use strict'; + top.location.hostname = "t.rdsm.ca"; })(); diff --git a/userscripts/style-hackernews.js b/userscripts/style-hackernews.js index f82d13b..d4b73fa 100644 --- a/userscripts/style-hackernews.js +++ b/userscripts/style-hackernews.js @@ -19,8 +19,8 @@ function injectStyle(css) { } (function () { - 'use strict'; - injectStyle(` + 'use strict'; + injectStyle(` body { background-color: #11111b; } diff --git a/userscripts/style-hckrnews.js b/userscripts/style-hckrnews.js index c0dcea4..89313dc 100644 --- a/userscripts/style-hckrnews.js +++ b/userscripts/style-hckrnews.js @@ -19,8 +19,8 @@ function injectStyle(css) { } (function () { - 'use strict'; - injectStyle(` + 'use strict'; + injectStyle(` body, .form-actions { background: #1e1e2e;