您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
cousera课程翻译
当前为
// ==UserScript== // @name CouseraTranslator // @namespace http://tampermonkey.net/ // @version 0.4 // @description cousera课程翻译 // @author JiaoWoBanXianEr // @match https://www.coursera.org/* // @icon https://www.google.com/s2/favicons?sz=64&domain=baidu.com // @grant none // ==/UserScript== let color = '#ffff22'; let bgColor = "#7f7f7f"; let fontSize = 60 let t = document.createElement("div"); t.innerHTML = '<div id="sub_container" style="z-index: 99; position: absolute; top: 10%; left: auto; right: auto; height: 60px; margin: auto; text-align: center; background-color: rgb(127, 127, 127); font-size: 60px; color: rgb(255, 255, 34);"></div>'; document.querySelector('.vjs-react.c-video.vjs-fluid.vjs-circle-play-centered').appendChild(t); t.style.height = 40 + 'px'; t.style.left = 'auto'; t.style.right = 'auto'; t.style.top = 10+'%'; t.style.backgroundColor = "#ffffff"; t.style.fontSize = 40+'px'; t.style.color = '#ffff00'; function translate(){ let text = document.querySelector('.rc-Phrase.active.css-ugczj4'); t.textContent = text.outerText; } var i = setInterval(function() {translate();}, 100); (function() { 'use strict'; // Your code here... })();