Greasy Fork

Greasy Fork is available in English.

彩云小译脚本

彩云小译双语对照翻译!

当前为 2021-02-05 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         彩云小译脚本
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  彩云小译双语对照翻译!
// @author       lonelykid
// @include      https://*
// @include      http://*
// @exclude      *://*.google*/*
// @exclude      *://*.github*/*
// @exclude      *://*gov.cn/*
// @exclude      *://*edu.cn/*
// @exclude      *://*.cn/*
// @exclude      *://*.baidu.com/*
// @exclude      *://*.qq.com/*
// @exclude      *://*.bilibili.com/*
// @exclude      *://*.jianshu.com/*
// @exclude      *://*sspai.com/*
// @exclude      *://*cnki.net/*
// @exclude      *://*.160.com/*
// @exclude      *://*.huaweicloud.com/*
// @exclude      *://*ikeepstudying.com/*
// @exclude      *://*.ifdream.net/*
// @exclude      *://*.topthink.com/*
// @exclude      /(^[^:\/#\?]*:\/\/([^#\?\/]*\.)?github\.com(:[0-9]{1,5})?\/.*$)/
// @exclude      *://*.wordpress.org/zh*
// @exclude      https://developer.wordpress.org/reference/*
// @exclude      *://*.oceanengine.com/*
// @exclude      *://*.lusongsong.com/*
// @exclude      *://*.cambridge.org/*
// @grant        GM_registerMenuCommand
// @require      https://cdnjs.cloudflare.com/ajax/libs/jquery/1.10.2/jquery.min.js
// @note         2021-02-05-v0.1 初次发布
// ==/UserScript==

GM_registerMenuCommand("翻译当前网页",zfy,'Y');

function zfy() {
    var cyfy = document.createElement("script");
    cyfy.type = "text/javascript";
    cyfy.charset = "UTF-8";
    cyfy.src = ("https:" == document.location.protocol ? "https://" : "http://") + "cdn.jsdelivr.net/gh/ttttmr/Caiyun@master/trs.min.js";
    document.body.appendChild(cyfy);
}