Greasy Fork镜像 还支持 简体中文。

Qidian Translation Enabler

Allow translation on qidian.com

// ==UserScript==
// @name         Qidian Translation Enabler
// @version      2025-07-23
// @description  Allow translation on qidian.com
// @author       Aersuy
// @namespace    Aersuy
// @license      MIT
// @match        https://www.qidian.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=qidian.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    let html_tag = document.getElementsByTagName("html")[0];
    if (html_tag) {

        html_tag.setAttribute("translate", "yes");

        if (html_tag.classList.contains("notranslate")) {
            html_tag.classList.remove("notranslate");
        }
    }


    let elements = document.querySelectorAll(".notranslate");
    elements.forEach(element => {
        element.classList.remove("notranslate");
    });
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址