您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Make ado tabs more distinguishable
当前为
// ==UserScript== // @name AdoIcon // @namespace xiba // @version 0.1 // @description Make ado tabs more distinguishable // @author zejunchen // @match https://*.visualstudio.com/* // @match https://*.azure.com/* // @grant window.onurlchange // @license MIT // ==/UserScript== (function () { function getDisplayed() { var displayed = document.querySelectorAll("div.displayed-container") if(displayed.length >= 1){ var img = displayed[0].querySelector("img") if(img)return img.src } return "https://cdn.vsassets.io/content/icons/favicon.ico"; } function changePageIcon() { var icon = getDisplayed(); document.getElementById("page-icon").href = icon; } changePageIcon(); if (window.onurlchange === null) { // feature is supported window.addEventListener("urlchange", changePageIcon); } })();