Append Hostname to Page Title

Append the domain name of the site to the page title. Helps offer a hint to tools like AHK so that they can indentify the site loaded.

目前为 2021-01-15 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Append Hostname to Page Title
  3. // @namespace https://greasyfork.org/users/77886
  4. // @version 0.01
  5. // @description Append the domain name of the site to the page title. Helps offer a hint to tools like AHK so that they can indentify the site loaded.
  6. // @author muchtall
  7. // @include *
  8. // @match *
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. document.title = document.title + " - (" + window.location.hostname + ")";
  15. })();