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.

Från och med 2021-01-15. Se den senaste versionen.

// ==UserScript==
// @name         Append Hostname to Page Title
// @namespace    https://greasyfork.org/users/77886
// @version      0.1
// @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.
// @author       muchtall
// @include      *
// @match        *
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    document.title = document.title + " - (" + window.location.hostname + ")";
})();