{"id":8288,"date":"2019-08-14T14:59:47","date_gmt":"2019-08-14T12:59:47","guid":{"rendered":"https:\/\/www.zylstra.org\/blog\/?p=8288"},"modified":"2021-01-19T11:27:30","modified_gmt":"2021-01-19T10:27:30","slug":"how-to-prevent-sites-changing-your-browser-url","status":"publish","type":"post","link":"https:\/\/www.zylstra.org\/blog\/2019\/08\/how-to-prevent-sites-changing-your-browser-url\/","title":{"rendered":"How To Prevent Sites Changing Your Browser URL?"},"content":{"rendered":"<p>Many (news(y)) websites have become highly irritating to browse: when you scroll down towards the end of an article you&#8217;re reading they append a next article underneath it, and if you scroll past the end of the article change the URL in your browser&#8217;s address bar. Below is an example I encountered today.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/zylstra.org\/blog\/images\/urlchange.gif\"><\/p>\n<p>That is highly irritating, as the browser is my tool, not theirs. <\/p>\n<ul>\n<li>It regularly frustrates bookmarking (if you hit a bookmarklet at the end of an article it saves the url of the next article),<\/li>\n<li>it creates an endless scroll experience (a dark pattern copied from the likes of FB), where news sites get an opportunity to present content they selected by algorithm that you weren&#8217;t looking for.<\/li>\n<li>it doesn&#8217;t influence the back button. Hitting that brings you to an unexpected place therefore, as you may not realise you&#8217;re in an endless timeline and think you somehow landed in a different article,<\/li>\n<li>if you use your browser&#8217;s default setting you won&#8217;t have noticed that the URL has changed as the address bar will only show the domain, not the full URL.<\/li>\n<\/ul>\n<p>This behaviour is based on HTML5 pushstate, which allows a site to interact with your browser history. This can be used to e.g. decrease load times of additional pages and content. The endless scrolling however feels like a dark pattern usage of this possibility to me.<\/p>\n<p>In keeping with Doc Searls&#8217; <a href=\"http:\/\/blogs.harvard.edu\/vrm\/2016\/06\/19\/the-castle-doctrine\/\">Castle Doctrine<\/a> of browsers, I&#8217;d like to block this behaviour. <\/p>\n<p>Options that are available seem to be:<\/p>\n<ul>\n<li>Use a reader view. This seems to break bookmarklets though, which is one of the nuisances I&#8217;m trying to fix<\/li>\n<li>Block all javascript and use an allow-list. Seems drastic, though it&#8217;s something I&#8217;m increasingly leaning towards over the past few years. Alternatively I could use a ban-list.<\/li>\n<li>Use ad blockers by adding rules for the specific scripts causing this.<\/li>\n<\/ul>\n<p>Reader view is useful, but not for this specific issue. Adding rules to my adblocker might be feasible, but assumes that I can easily spot a) which sites do this b) which script on their site is doing it, in order to block it. Using a ban-list for Javascript only needs me to spot sites that do this, which is half the hassle of adding filters to my adblocking. Ban-listing some sites for javascript is also less inconvenient than blocking all javascript and allow exceptions. So for now that&#8217;s the way forward. Bloomberg, the source of the example given above, is now on the ban-list.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Blacklisted @bloomberg @bloombergopinion for javascript in the browser, for their endless scroll attached whenever you want to read a single article. It&#8217;s a dark pattern afaic.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"webmentions_disabled_pings":false,"webmentions_disabled":false,"footnotes":""},"categories":[487,86,89],"tags":[1319,943,1320],"class_list":["post-8288","post","type-post","status-publish","format-standard","category-timeline","category-metablogging","category-technology","tag-bloomberg","tag-darkpattern","tag-endless-scroll","h-entry","hentry"],"archive_meta":{"categories":["Day to Day","metablogging","technology"],"tags":["bloomberg","darkpattern","endless scroll"],"page_categories":[],"format":null,"kind":null,"ref":null},"_links":{"self":[{"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/posts\/8288","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/comments?post=8288"}],"version-history":[{"count":10,"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/posts\/8288\/revisions"}],"predecessor-version":[{"id":15607,"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/posts\/8288\/revisions\/15607"}],"wp:attachment":[{"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/media?parent=8288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/categories?post=8288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zylstra.org\/blog\/wp-json\/wp\/v2\/tags?post=8288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}