您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Temu购物平台限制了网页翻译,通过此脚本可去除限制
// ==UserScript== // @name Remove Translate Attribute For Temu // @name:zh-CN Temu去除翻译限制 // @namespace https://github.com/KPI0/tampermonkey // @version 0.4 // @description Remove translate attribute from HTML tag // @description:zh-cn Temu购物平台限制了网页翻译,通过此脚本可去除限制 // @author KPI0 // @match https://www.temu.com/* // @icon https://www.temu.com/favicon.ico // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // 获取 HTML 标签 var htmlTag = document.querySelector('html'); // 检查是否存在 translate 属性并且值为 "no" if (htmlTag && htmlTag.hasAttribute('translate') && htmlTag.getAttribute('translate') === 'no') { // 移除 translate 属性 htmlTag.removeAttribute('translate'); } })();