Title - host

This extension changes the tab title to include the host. Make Chrome fully compatible with KeePass autotype.

什么是Title - host?

Title - host是由jpauls开发的Chrome扩展程序,该扩展的主要功能是“This extension changes the tab title to include the host. Make Chrome fully compatible with KeePass autotype.”。

扩展截图

screenshot

下载Title - host扩展crx文件

下载Title - host扩展crx格式的文件,手动将Chrome插件安装到浏览器中,也可以将crx文件分享给朋友,轻松安装Chrome插件。

扩展使用说明

                        Don't worry about your privacy, full code is below. 

v1.1.2 Added manifest short_name. Improved description.

v1.1.1 Continue checking for dirty title for entire time on webpage.  This improves compatibility with sites like Gmail who change the title every time an email is clicked.

v1.1.0 Refined code to fix hard to change site titles. Code runs asynchronously in background. Checks every second for fifteen seconds.

function sleep(ms) {
  return new Promise(resolve => setTimeout(resolve, ms));
}

async function titlehost() {
  while(true)
  {
	Log('checked');
	if(IsTitleDirty())
		ChangeTitle();
	await sleep(1000);
  }
}

function IsTitleDirty() {
  return (!GetTitle().endsWith(GetHost()));
}

function ChangeTitle() {
  document.title = GetTitle() + ' - ' + GetHost();
  Log('changed');
}

function GetTitle() {
  return document.title;
}

function GetHost() {
  return location.host;
}

function Log(message) {
  return console.log('Title - host> ' + message);
}

titlehost();                    

扩展基本信息

名称 Title - host Title - host
ID ijgmehophgjjjhipcmcfblojkekdecfo
官方URL https://chromewebstore.google.com/detail/title-host/ijgmehophgjjjhipcmcfblojkekdecfo
简介 This extension changes the tab title to include the host. Make Chrome fully compatible with KeePass autotype.
文件大小 50.55 KB
安装次数 56
当前版本 1.1.2
更新时间 2017-11-01
上架时间 2017-11-01
评分 5.00/5 共2次评分
开发者 jpauls
电子邮箱 [email protected]
付费类型 free
支持的语言 en-US
manifest.json
{
    "update_url": "https:\/\/clients2.google.com\/service\/update2\/crx",
    "manifest_version": 2,
    "name": "Title - host",
    "short_name": "Title - host",
    "author": "Jeff Schollaart",
    "description": "This extension changes the tab title to include the host.  Make Chrome fully compatible with KeePass autotype.",
    "version": "1.1.2",
    "icons": {
        "16": "icon16.png",
        "48": "icon48.png",
        "128": "icon128.png"
    },
    "content_scripts": [
        {
            "matches": [
                ""
            ],
            "js": [
                "titlehost.js"
            ]
        }
    ]
}