From: Dariusz Murakowski Date: Sun, 19 Aug 2018 20:19:10 +0000 (-0400) Subject: Washington Post: avoid URL path disappearing upon hitting paywall X-Git-Url: http://src.murakowski.org/?a=commitdiff_plain;h=da44211634f79a23525aef90c61fe96501e40f68;p=userscripts.git Washington Post: avoid URL path disappearing upon hitting paywall --- 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)");