Washington Post: avoid URL path disappearing upon hitting paywall
authorDariusz Murakowski <murakdar@gmail.com>
Sun, 19 Aug 2018 20:19:10 +0000 (16:19 -0400)
committerDariusz Murakowski <murakdar@gmail.com>
Sun, 19 Aug 2018 20:19:10 +0000 (16:19 -0400)
(WaPo) history.replaceState=false.user.js [new file with mode: 0644]

diff --git a/(WaPo) history.replaceState=false.user.js b/(WaPo) history.replaceState=false.user.js
new file mode 100644 (file)
index 0000000..15f73de
--- /dev/null
@@ -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)");