dnomaid

YouTube

GitHub
500px
Keybase

Projects
FaQ
Tech
About

Next Post »
« Previous Post

If you want your page title to change if you are visiting via the file URI scheme, you can just use this simple code snippet.

If you want this to apply to all pages you visit as files, put the code into a user script management extension like Greasemonkey or Tampermonkey.

if (location.protocol == 'file:') {
  document.title = 'your title';
}

Pretty simple, right?

The script in action. Notice how the local site has [f] in its title.
The script in action. Notice how the local site has [f] in its title.