您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Change title edited file in editor to filename.
// ==UserScript== // @name GitHub shorter title edited files // @description Change title edited file in editor to filename. // @author hawkeye116477, krystian3w // @namespace https://gf.zukizuki.org/users/167625 // @icon https://i.imgur.com/KmWlHbe.png // @match https://github.com/*/*/edit/master/* // @version 1.0.5 // @grant none // @run-at document-idle // @compatible firefox Firefox // @compatible chrome Chrome // @compatible edge Edge // ==/UserScript== const elementsGitHub = document.getElementsByClassName("js-blob-filename"); if (elementsGitHub.length > 0) { document.title = elementsGitHub[0].value; } else { document.title = document.querySelectorAll('[aria-label="File name"]')[0].value; }