您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Stops google from reordering the tabs like wtf are you doing you piece of shit, stolen from https://greasyfork.org/en/scripts/18521-google-fixed-tab-order/code and updated for October 2021
当前为
// ==UserScript== // @name Google Fixed Tab Order (Oct. 2021) // @namespace google.com // @description Stops google from reordering the tabs like wtf are you doing you piece of shit, stolen from https://greasyfork.org/en/scripts/18521-google-fixed-tab-order/code and updated for October 2021 // @include https://www.google.com/search?* // @include https://www.google.com/webhp?* // @version 3.0 // @grant none // ==/UserScript== function contains(selector, text) { var elements = document.querySelectorAll(selector); return [].filter.call(elements, function(element){ return RegExp(text).test(element.textContent); }); } function getTab(text) { let e = contains('.hdtb-mitem', text); if (e != undefined && e[0] != undefined) return e[0]; e = contains('.NZmxZe', text); if (e != undefined && e[0] != undefined) return e[0]; e = contains('[jscontroller="nabPbb"]', text); if (e != undefined && e[0] != undefined) return e[0]; } function moveToFront(text) { var tab = getTab(text); if (tab == undefined) return; var newtab = tab.cloneNode(true); var wrapper = tab.parentElement; wrapper.removeChild(tab); wrapper.appendChild(newtab); } function removeTab(text) { getTab(text).style.display = 'none'; } function fixTabs() { moveToFront('Images'); moveToFront('Videos'); moveToFront('News'); moveToFront('Books'); moveToFront('Apps'); moveToFront('Shopping'); moveToFront('Flights'); moveToFront('More'); } (function() { fixTabs(); // setInterval(fixTabs, 1000); })();