您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
微软翻译组件 右下角点击翻译
当前为
// ==UserScript== // @name 微软翻译组件 // @description 微软翻译组件 右下角点击翻译 // @include * // @exclude *.jpg // @exclude *.png // @exclude *.jpeg // @exclude *.gif // @exclude *.pdf // @require http://code.jquery.com/jquery-1.11.3.min.js // @require https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.1.3/js.cookie.min.js // @grant aogg // @version 1.3 // @namespace https://greasyfork.org/users/25818 // ==/UserScript== var str = "<div id='MicrosoftTranslatorWidget' class='Dark' style='color:white;background-color:#555555;position: fixed;right: 0;bottom: 0;'></div><script type='text/javascript'>setTimeout(function(){{var s=document.createElement('script');s.type='text/javascript';s.charset='UTF-8';s.src=((location && location.href && location.href.indexOf('https') == 0)?'https://ssl.microsofttranslator.com':'http://www.microsofttranslator.com')+'/ajax/v3/WidgetV3.ashx?siteData=ueOIGRSKkd965FeEGM5JtQ**&ctf=False&ui=true&settings=Manual&from=';var p=document.getElementsByTagName('head')[0]||document.documentElement;p.insertBefore(s,p.firstChild); }},0);</script>"; // 重置cookie console.log('remove cookie mstto'); Cookies.remove('mstto'); $('body').append(str) function addGlobalStyle(css) { var head, style; head = document.getElementsByTagName('head')[0]; if (!head) { return; } style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); } console.log('完成');