TIL hashes can be completely removed from the addressbar, including the #, with:
history.replaceState(null, "", location.pathname) #html5
@jvhellemond That snippet would also remove the query string part, though.
-
-
@mathias Well, yes. I've seen a lot of “location.hash = "" does not remove the #” questions and even more “that can't be helped” answers.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.