Greasy Fork

Greasy Fork is available in English.

抖音来客后台 title显示nav

2023年1月31日 14:25:09

当前为 2023-01-31 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        抖音来客后台 title显示nav
// @namespace   Violentmonkey Scripts
// @match       https://life.douyin.com/p/*
// @grant       ShowLe_e
// @version     1.16
// @author      -
// @description 2023年1月31日 14:25:09
// @license     MIT
// @require     https://cdn.staticfile.org/jquery/3.6.0/jquery.min.js
// ==/UserScript==


   //每隔3秒执行一次

setTimeout(function() {
	$("#staff-mark").remove();
	var nTit = $("div[class^=src-pages-HomeV2-components-VerificationV2-index-module__account-select-indicator__wrapper]").text();
	var nTit2 = nTit.replace("北海市", "");
	var nTit3 = nTit2.replace("海城区", "");
	var nTit4 = nTit3.replace("银海区", "");
	let nTitle1 = nTit4.replace("有限公司", "");
	document.title = nTitle1;
	setInterval(function() {
		let nTitle2 = $(".life-core-menu-item-active:first").text();
		let nTitle = nTitle1 + " " + nTitle2;
		document.title = nTitle;
	}, 3000);
}, 2500);