悠久TIARA 说: 试了一下,貌似不行
// ==UserScript== // @name Remove all lang attributes from Google search results // @namespace gift4u // @version 0.1.0 // @description Remove all lang attributes from Google search results // @author gift4u // @match http*://www.google.com/search?q=* // @icon https://www.google.com/images/branding/googleg/1x/googleg_standard_color_128dp.png // @grant none // ==/UserScript== (function() { 'use strict'; const childClass = ["jtfYYd", "tF2Cxc", "GLI8Bc"]; for(var i=0;i<childClass.length;i++){ const results = document.getElementsByClassName(childClass); if(results) {Array.from(results).forEach(item => item.parentElement.removeAttribute("lang"));} } })();
换火狐吧