From da44211634f79a23525aef90c61fe96501e40f68 Mon Sep 17 00:00:00 2001 From: Dariusz Murakowski Date: Sun, 19 Aug 2018 16:19:10 -0400 Subject: [PATCH] Washington Post: avoid URL path disappearing upon hitting paywall --- (WaPo) history.replaceState=false.user.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 (WaPo) history.replaceState=false.user.js diff --git a/(WaPo) history.replaceState=false.user.js b/(WaPo) history.replaceState=false.user.js new file mode 100644 index 0000000..15f73de --- /dev/null +++ b/(WaPo) history.replaceState=false.user.js @@ -0,0 +1,14 @@ +// ==UserScript== +// @name (WaPo) history.replaceState=false +// @namespace http://tampermonkey.net/ +// @version 0.1 +// @description prevent Washington Post from changing URL +// @author Dariusz Murakowski +// @match *.washingtonpost.com/* +// @grant none +// ==/UserScript== + +// adapted from wikipedia redirect-URL-change-preventer + +// trick from http://wiki.greasespot.net/Location_hacks +location.replace("javascript:void(history.replaceState = false)"); -- 2.7.4