added paywall reader userscript
This commit is contained in:
parent
f185e32b56
commit
6e1e43da96
|
@ -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}`;
|
||||
}
|
||||
})();
|
Loading…
Reference in New Issue