不要翻譯 OSMWIKI 的tag!

避免瀏覽器翻譯 OpenStreetMap Wiki 上的tag。

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Don't translate tags in OSMWIKI!
// @name:zh-CN         不要翻译 OSMWIKI 的tag!
// @name:zh-TW         不要翻譯 OSMWIKI 的tag!
// @name:ja         OSMWIKIタグを翻訳しないでください!
// @namespace    https://www.jianshu.com/u/8f333703e491
// @version      0.2
// @description  Prevent tags in OpenStreetMap Wiki from being translated by browser.
// @description:zh-CN  避免浏览器翻译 OpenStreetMap Wiki 上的tag。
// @description:zh-TW  避免瀏覽器翻譯 OpenStreetMap Wiki 上的tag。
// @description:ja  OpenStreetMap Wikiのタグがブラウザーによって翻訳されないようにします。
// @icon               https://www.openstreetmap.org/favicon.ico
// @author       Xiao_Le
// @include      *://wiki.openstreetmap.org*
// @match        *://wiki.openstreetmap.org*
// ==/UserScript==
window.onload = function(){
    $('p tt').each(function (i, e) {$(this).attr('id', 'tag');});
    $('p tt').each(function (i, e) {$(this).attr('class', 'mw-content-ltr notranslate');});
    $('li tt').each(function (i, e) {$(this).attr('id', 'tag');});
    $('li tt').each(function (i, e) {$(this).attr('class', 'mw-content-ltr notranslate');});
    $('td tt').each(function (i, e) {$(this).attr('id', 'tag');});
    $('td tt').each(function (i, e) {$(this).attr('class', 'mw-content-ltr notranslate');});
}