From 57274cfce082555b3728dcb0c28ed1561a1c0422 Mon Sep 17 00:00:00 2001 From: Anoir Ben Tanfous Date: Tue, 27 Dec 2022 16:35:04 -0500 Subject: [PATCH 1/4] English Translation (WIP) --- ...\350\247\243\351\231\244(\346\224\271).js" | 686 +++++++++--------- 1 file changed, 342 insertions(+), 344 deletions(-) diff --git "a/Remove-web-limits-\347\275\221\351\241\265\351\231\220\345\210\266\350\247\243\351\231\244(\346\224\271).js" "b/Remove-web-limits-\347\275\221\351\241\265\351\231\220\345\210\266\350\247\243\351\231\244(\346\224\271).js" index cb94e37..85891f3 100644 --- "a/Remove-web-limits-\347\275\221\351\241\265\351\231\220\345\210\266\350\247\243\351\231\244(\346\224\271).js" +++ "b/Remove-web-limits-\347\275\221\351\241\265\351\231\220\345\210\266\350\247\243\351\231\244(\346\224\271).js" @@ -1,29 +1,27 @@ // ==UserScript== -// @namespace https://greasyfork.org/zh-CN/users/106222-qxin-i - // @name 网页限制解除(改) -// @name:en Remove web limits(modified) +// @name:en Remove web limits (mod) // @name:zh 网页限制解除(改) // @name:ja ウェブの規制緩和(変更) - -// @author Cat73 & iqxin(修改) +// @namespace https://greasyfork.org/users/106222-qxin-i +// @author Cat73 & iqxin(修改) // @contributor iqxin - + // @description 通杀大部分网站,可以解除禁止复制、剪切、选择文本、右键菜单的限制。原作者cat73,因为和搜索跳转脚本冲突,遂进行了改动。 -// @description:en Pass to kill most of the site, you can lift the restrictions prohibited to copy, cut, select the text, right-click menu.revised version +// @description:en Pass to kill most of the site, you can lift the restrictions prohibited to copy, cut, select the text, right-click menu. revised version // @description:zh 通杀大部分网站,可以解除禁止复制、剪切、选择文本、右键菜单的限制。原作者cat73,因为和搜索跳转脚本冲突,遂进行了改动 // @description:zh-TW 通殺大部分網站,可以解除禁止復制、剪切、選擇文本、右鍵菜單的限制。 // @description:ja サイトのほとんどを殺すために渡し、あなたは、コピー切り取り、テキスト、右クリックメニューを選択することは禁止の制限を解除することができます。 - -// @description 原作者https://www.github.com/Cat7373/,因为和搜索跳转脚本冲突,遂进行了改动 + +// @description:original 原作者https://www.github.com/Cat7373/,因为和搜索跳转脚本冲突,遂进行了改动 // @homepageURL https://cat7373.github.io/remove-web-limits/ // @supportURL https://greasyfork.org/zh-CN/scripts/28497 - + // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAABpElEQVR4nO3Vv2uUQRDG8c/ebSMWqay0trATAxrUSi1S2AiWFoJYpNCgoBjURsHWJKeNRfAvsDgFixQqKdPZ2ViEiCJYBOQu8f1hEXO59713j7MUfLZ6d2a/O8vMO0OzDnin9Ku2Mjvuaw07xgSAYEVXe2indMhj92zpKJLnBhF8MDeye9hn6zbN70eRiqCw02Bra3up8BBLu1FEBxsBucXqW4csz0ULe4jorSCMuPU89boRELDMHiI6Y8V65bbCUTccc70RkaOwKLOg0IkyXa9qTjOu2LAs6NZuD86hrdTyxRNTkUqqdhXlHrngGRVEZsMpJwex9DxIZSHYclesIb65LCoHgIs66UJq6btDBZHZrPh8V6YBOX66LbOkTGckBYimBW2FVTNeuOZNyrFJ236Yl4NSy5SbVm1PDvhodqgyMledTdRlAtDzqfL9tfkwUtyaRkv9LwFj9B/w7wPycXOhqlJ0yZHKPChMi5MCiM47XhsopbVJAUHfrYbmN/EToN+02eLPfz9OYyZhFJzW1Jn3lTsxaKQjCkp52jy45r1ZvSbTb9M0d4PBozGZAAAAAElFTkSuQmCC - + // @version 4.4.8 // @license LGPLv3 - + // @match *://*/* // @exclude *www.bilibili.com/video* // @exclude *www.bilibili.com/v* @@ -41,7 +39,7 @@ // @exclude *.taobao.com/* // @exclude *tmall.com* // @exclude *signin* - + // @connect eemm.me // @grant GM_getValue // @grant GM_setValue @@ -54,11 +52,11 @@ // ==/UserScript== (function() { 'use strict'; - + var settingData = { "status":1, "version" : 0.1, - "message" : "啦啦啦,啦啦啦,我是卖报的小行家", + "message" : "La-la-la, la-la-la, I'm a small connoisseur who sells newspapers", "positionTop":"0", "positionLeft":"0", "positionRight":"auto", @@ -67,7 +65,7 @@ "waitUpload":[], "currentURL":"null", "shortcut":3, - // 域名规则列表 + // List of domain name rules "rules" : { "rule_def": { "name": "default", @@ -165,115 +163,115 @@ "www.szxx.com.cn", ] } - + var rwl_userData = null; var hostname = window.location.hostname; - var btn_node = null; + var btn_node = null; var rule = null; var list = null; var hasFrame = false; - - // 储存名称 + + // Storage name var storageName = "iqxinStorageName"; - // 要处理的 event 列表 + // A list of events to process var hook_eventNames, unhook_eventNames, eventNames; - // 储存被 Hook 的函数 + // Stores functions that are hooked var EventTarget_addEventListener = EventTarget.prototype.addEventListener; var document_addEventListener = document.addEventListener; var Event_preventDefault = Event.prototype.preventDefault; - - // 查看本地是否存在旧数据 + + // Check to see if there is old data locally rwl_userData = GM_getValue("rwl_userData"); if(!rwl_userData){ rwl_userData = settingData // GM_setValue("rwl_userData",rwl_userData); } - // 自动更新数据 + // Automatically update data for(let value in settingData){ if(!rwl_userData.hasOwnProperty(value)){ rwl_userData[value] = settingData[value]; GM_setValue("rwl_userData",rwl_userData); } } - + version_up_3_to_4(); - - // 获取黑名单网站 + + // Get blacklisted websites list = get_black_list(); - - // 添加按钮 + + // Add a button // if(rwl_userData.addBtn){ - addBtn(); // 添加 - btn_node = document.getElementById("black_node"); - - var timer = setInterval(function(){ - if(document.getElementById("black_node")){ - clearInterval(timer); - qxinStart(); - } else { - addBtn(); - } - },500) - + addBtn(); // Add to + btn_node = document.getElementById("black_node"); + + var timer = setInterval(function(){ + if(document.getElementById("black_node")){ + clearInterval(timer); + qxinStart(); + } else { + addBtn(); + } + },500) + // } - - GM_registerMenuCommand("复制限制解除 设置", setMenu) + + GM_registerMenuCommand("Copy Restriction Released Settings", setMenu) var userSetting = GM_getValue("rwl_userData"); - - // // ------------------------------函数 func - + + // // ------------------------------ function + function qxinStart(){ - console.log("脚本: 复制限制解除(改) --- 开始执行 --- 发布者: qxin --- GitHub: https://github.com/qxinGitHub/Remove-web-limits-"); + console.log("script: Copy Restriction Lifted (Modified) --- Start Execution --- Publisher: qxin --- GitHub: https://github.com/qxinGitHub/Remove-web-limits-"); addDragEven(); setBtnClick(); - - // 检查是否在黑名单中 + + // Check if it is in the blacklist if(check_black_list(list,hostname)){ try { if(rwl_userData.addBtn){ btn_node.checked = true; } } catch (e) { - console.error("脚本rwl-错误:\n btn_node : %s\n%s\n脚本rwl-错误位置: btn_node.checked = true;",btn_node,e); + console.error("script rwl - error:\n btn_node : %s\n%s\nscript rwl - wrong location: btn_node.checked = true;",btn_node,e); } finally { init(); } } } - - //添加按钮 func + + //Add button func function addBtn(){ var node = document.createElement("remove-web-limits-iqxin"); node.id = "rwl-iqxin"; node.className = "rwl-exempt"; - - // 再次打开窗口小于之前窗口的情况,导致按钮出现在可视窗口之外 + + // Re-opening a window that is smaller than the previous one, causing the button to appear outside the visible window var screenClientHeight = document.documentElement.clientHeight; var tempHeight; if (rwl_userData.positionTop>screenClientHeight){ - tempHeight = screenClientHeight -40; + tempHeight = screenClientHeight -40; } else{ tempHeight = rwl_userData.positionTop; } - // 改变窗口大小的情况 - window.onresize=function(){ + // Changing the window size + window.onresize=function(){ var screenClientHeight = document.documentElement.clientHeight; var tempHeight; - + if (rwl_userData.positionTop>screenClientHeight){ - tempHeight = screenClientHeight -40; + tempHeight = screenClientHeight -40; } else{ tempHeight = rwl_userData.positionTop; } - - node.style.top = tempHeight + "px"; + + node.style.top = tempHeight + "px"; } - + tempHeight = tempHeight<0?0:tempHeight node.style.cssText = "position:fixed;top:"+tempHeight+"px;left:"+rwl_userData.positionLeft+"px;right:"+rwl_userData.positionRight+"px;"; // node.innerHTML = 'delete'; // node.innerHTML = ''; - node.innerHTML = ' set 限制解除 '; + node.innerHTML = ' set Restrictions lifted '; if(window.self === window.top){ if (document.querySelector("body")){ document.body.appendChild(node); @@ -290,69 +288,69 @@ black_check(black_node.checked); },100) }); - + var style = document.createElement("style"); style.type="text/css"; - + var styleInner = "#rwl-iqxin{" + - "position:fixed;" + - "transform:translate(-95%,0);" + - "width:85px;" + - "height:25px;" + - "font-size:12px;" + - "font-weight: 500;" + - "font-family:Verdana, Arial, '宋体';" + - "color:#fff;" + - "background:#333;" + - "z-index:2147483647;" + - "margin: 0;" + - "opacity:0.05;" + - "transition:0.3s;" + - "overflow:hidden;" + - "user-select:none;" + - "text-align:center;" + - "white-space:nowrap;" + - "line-height:25px;" + - "padding:0 16px;" + - "border:1px solid #ccc;" + - "border-width:1px 1px 1px 0;" + - "border-bottom-right-radius:5px;" + - "box-sizing: content-box;" + + "position:fixed;" + + "transform:translate(-95%,0);" + + "width:85px;" + + "height:25px;" + + "font-size:12px;" + + "font-weight: 500;" + + "font-family:Verdana, Arial, '宋体';" + + "color:#fff;" + + "background:#333;" + + "z-index:2147483647;" + + "margin: 0;" + + "opacity:0.05;" + + "transition:0.3s;" + + "overflow:hidden;" + + "user-select:none;" + + "text-align:center;" + + "white-space:nowrap;" + + "line-height:25px;" + + "padding:0 16px;" + + "border:1px solid #ccc;" + + "border-width:1px 1px 1px 0;" + + "border-bottom-right-radius:5px;" + + "box-sizing: content-box;" + "}" + "#rwl-iqxin input{" + - "margin: 0;" + - "padding: 0;" + - "vertical-align:middle;" + - "-webkit-appearance:checkbox !important;" + - "-moz-appearance:checkbox;" + - "position: static;" + - "clip: auto;" + - "opacity: 1;" + - "cursor: pointer;" + + "margin: 0;" + + "padding: 0;" + + "vertical-align:middle;" + + "-webkit-appearance:checkbox !important;" + + "-moz-appearance:checkbox;" + + "position: static;" + + "clip: auto;" + + "opacity: 1;" + + "cursor: pointer;" + "}" + "#rwl-iqxin.rwl-active-iqxin{" + - "left: 0px;" + - "transform:translate(0,0);" + - "opacity: 0.9;" + - "height: 32px;" + - "line-height: 32px" + + "left: 0px;" + + "transform:translate(0,0);" + + "opacity: 0.9;" + + "height: 32px;" + + "line-height: 32px" + "}" + "#rwl-iqxin label{" + - "margin:0;" + - "padding:0;" + - "font-weight:500;" + + "margin:0;" + + "padding:0;" + + "font-weight:500;" + "}" + "#rwl-iqxin #rwl-setbtn{" + - "margin: 0 4px 0 0;" + - "padding: 0 0 0 4px;" + - "border: none;" + - "border-radius: 2px;" + - "cursor: pointer;" + - "background: #fff;" + - "color: #000;" + + "margin: 0 4px 0 0;" + + "padding: 0 0 0 4px;" + + "border: none;" + + "border-radius: 2px;" + + "cursor: pointer;" + + "background: #fff;" + + "color: #000;" + "}" + " " - + if(!rwl_userData.addBtn){ var styleTemp = "#rwl-iqxin{display:none}"; style.innerHTML = styleInner + styleTemp; @@ -360,41 +358,41 @@ style.innerHTML = styleInner; } if(document.querySelector("#rwl-iqxin")){ - // console.log("通过style插入"); + // console.log("Insert via style"); document.querySelector("#rwl-iqxin").appendChild(style); } else { - // console.log("通过GM插入"); + // console.log("Insert via GM"); GM_addStyle(styleInner); } }; - - // 给按钮绑定点击事件 - function setBtnClick(){ + + // Binding click events to buttons + function setBtnClick(){ document.querySelector("#rwl-setbtn").addEventListener("click",setMenu); } - - // 菜单 - function setMenu(){ - var oldEditBox = document.querySelector("#rwl-setMenu"); - if(oldEditBox){ - oldEditBox.parentNode.removeChild(oldEditBox); - return; - } - var userSetting = GM_getValue("rwl_userData"); - var upload_checked = userSetting.connectToTheServer?"checked":""; - var btnchecked = userSetting.addBtn?'checked':'' - - var odom = document.createElement("div"); - odom.id = "rwl-setMenu"; - odom.style.cssText ="position: fixed;" + - "top: 100px;" + - "left: 50px;" + - "padding: 10px;" + - "background: #fff;" + - "border-radius: 4px;"; - GM_addStyle("#rwl-setMenuSave," + - "#rwl-reset," + - "#rwl-setMenuClose{" + + + // set menu + function setMenu(){ + var oldEditBox = document.querySelector("#rwl-setMenu"); + if(oldEditBox){ + oldEditBox.parentNode.removeChild(oldEditBox); + return; + } + var userSetting = GM_getValue("rwl_userData"); + var upload_checked = userSetting.connectToTheServer?"checked":""; + var btnchecked = userSetting.addBtn?'checked':'' + + var odom = document.createElement("div"); + odom.id = "rwl-setMenu"; + odom.style.cssText ="position: fixed;" + + "top: 100px;" + + "left: 50px;" + + "padding: 10px;" + + "background: #fff;" + + "border-radius: 4px;"; + GM_addStyle("#rwl-setMenuSave," + + "#rwl-reset," + + "#rwl-setMenuClose{" + "margin: 0;" + "padding: 0 2px;" + "border: none;" + @@ -402,66 +400,66 @@ "cursor: pointer;" + "background: #fff;" + "color: #000;" + - "}" + - "#rwl-reset{" + + "}" + + "#rwl-reset{" + "border: 1px solid #666;" + - "}" + - "#rwl-setMenuSave{" + + "}" + + "#rwl-setMenuSave{" + "border: 1px solid green;" + - "}" + - "#rwl-setMenuClose{" + + "}" + + "#rwl-setMenuClose{" + "border: 1px solid red;" + - "}" + - "#rwl-setMenu{" + + "}" + + "#rwl-setMenu{" + "text-align:left;" + "font-size:14px;" + "z-index:999999;" + "border: 1px solid cornflowerblue;" + - "}" + - "#rwl-setMenu p{" + + "}" + + "#rwl-setMenu p{" + "margin:5px auto;" + - "}" + - " ") - var innerH = "" + - "

距离顶部距离(单位 像素)

" + "" + - // "

允许上传黑名单

" + "
" + - "

快捷键:" + - "" + - "

" + - "

显示按钮 点击脚本管理扩展可以再次打开设置

" + "
" + - "

问题反馈地址: GitHub(qxin), GreasyFork(qxin)

" + - "

项目原作者为 cat7373, 项目主页

" + - "

能力有限,不能每个网站都能完美

" + - "

如若反馈,务必带上详细网址

" + - "

" + - // "

显示按钮(待添加)

" + - // "

按钮透明度(待添加)

" + - // "

快速复制(待添加)

" + - // "

其他 (待添加)

" + - "

数据存储方式为JSON,如若在此修改,注意引号逗号

" + - "" + - "
" + - "清空设置    " + - "保存    " + - "关闭    " + - "--| qxin v4.4.8 2022-12-13 |--" + - "" - ""; - odom.innerHTML = innerH; - document.body.appendChild(odom); - - document.querySelector("#rwl-setMenuSave").addEventListener("click",saveSetting); - document.querySelector("#rwl-setMenuClose").addEventListener("click",closeMenu); - document.querySelector("#rwl-reset").addEventListener("click",rwlReset); - - } - - // 保存选项 + "}" + + " ") + var innerH = "" + + "

Distance from the top (in pixels)

" + "" + + // "

允许上传黑名单

" + "
" + + "

Shortcut Keys:" + + "" + + "

" + + "

Show button Click the Script Management extension to open the settings again

" + "
" + + "

Feedback address: GitHub(qxin), GreasyFork(qxin)

" + + "

The original author of the project is cat7373, Project home page

" + + "

The ability is limited and not every website can be perfect

" + + "

If you give feedback, be sure to bring the detailed URL

" + + "

" + + // "

显示按钮(待添加)

" + + // "

按钮透明度(待添加)

" + + // "

快速复制(待添加)

" + + // "

其他 (待添加)

" + + "

The data storage method is JSON. If you modify it here, pay attention to the quotation marks and commas

" + + "" + + "
" + + "Clear Settings    " + + "Save    " + + " close    " + + "--| qxin v4.4.8 2022-12-13 |--" + + "" + ""; + odom.innerHTML = innerH; + document.body.appendChild(odom); + + document.querySelector("#rwl-setMenuSave").addEventListener("click",saveSetting); + document.querySelector("#rwl-setMenuClose").addEventListener("click",closeMenu); + document.querySelector("#rwl-reset").addEventListener("click",rwlReset); + + } + + // Save settings function saveSetting(){ var positionTop = document.querySelector("#rwl-setMenu #positiontop").value; // var uploadChecked = document.querySelector("#rwl-setMenu #uploadchecked").checked; @@ -470,31 +468,31 @@ var codevalue = document.querySelector("#rwl-setMenu textarea").value; if(codevalue){ var userSetting = GM_getValue("rwl_userData"); - + userSetting.addBtn = addBtnChecked; userSetting.data = JSON.parse(codevalue); userSetting.positionTop = parseInt(positionTop); userSetting.shortcut = parseInt(shortcut); // userSetting.connectToTheServer = uploadChecked; - + GM_setValue("rwl_userData",userSetting); - // 刷新页面 + // Refresh the page setTimeout(function(){ window.location.reload(); },300); } else { - alert("输入为空"); + alert("The input is empty"); // this.reset(); } closeMenu(); } - // 复原菜单 + // Reset the menu function rwlReset(){ GM_deleteValue("rwl_userData"); window.location.reload(); } - - //关闭菜单 + + // Close the menu function closeMenu(){ var oldEditBox = document.querySelector("#rwl-setMenu"); if(oldEditBox){ @@ -502,40 +500,40 @@ return; } } - - // 增加拖拽事件 进行绑定 + + // Add drag event for binding function addDragEven(){ setTimeout(function(){ try { dragBtn() } catch (e) { - console.error("dragBtn函数 报错"); + console.error("dragBtn function Error"); } },1000) - // dragBtn(); // 增加拖动事件 + // dragBtn(); // Add drag event } - - // 增加拖动事件 func + + // Add drag event func function dragBtn(){ var rwl_node = document.querySelector("#rwl-iqxin"); rwl_node.addEventListener("mousedown",function(event){ rwl_node.style.transition = "null"; var disX = event.clientX - rwl_node.offsetLeft; var disY = event.clientY - rwl_node.offsetTop; - + var move = function(event){ rwl_node.style.left = event.clientX - disX + "px" ; - rwl_node.style.top = event.clientY - disY + "px" ; + rwl_node.style.top = event.clientY - disY + "px" ; } - + document.addEventListener("mousemove",move); document.addEventListener("mouseup",function(){ rwl_node.style.transition = "0.3s"; document.removeEventListener("mousemove",move); - // 此函数内所有的注释语句都是有用的 - // 开启后,可拖动到屏幕右侧,但尚未添加css - // 在上面添加 rwl-active-iqxin 的地方加上判断左右,在加上相应的css即可 - // 懒 2018-04-18 21:51:32 + // All comment statements inside this function are useful + // Once enabled, you can drag to the right side of the screen, but CSS has not been added + // Add a judgement around the place where rwl-active-iqxin is added above, and add the corresponding css + // lazy 2018-04-18 21:51:32 // var bodyWidth = document.body.clientWidth; var rwl_nodeWidth = rwl_node.offsetLeft + rwl_node.offsetWidth/2; // if(rwl_nodeWidth > bodyWidth/2){ @@ -544,47 +542,47 @@ // rwl_userData.positionLeft = "auto"; // rwl_userData.positionRight = "0"; // } else { - rwl_node.style.right = rwl_userData.positionRight = "auto"; - rwl_node.style.left = rwl_userData.positionLeft = 0; + rwl_node.style.right = rwl_userData.positionRight = "auto"; + rwl_node.style.left = rwl_userData.positionLeft = 0; // } rwl_userData.positionTop = rwl_node.offsetTop; GM_setValue("rwl_userData",rwl_userData); - + }) }) } - - // 初始化 init func 这里才是核心 + + // Initialize init func This is where the core is function init() { - // 针对个别网站采取不同的策略 + // Adopt different strategies for individual websites rule = clear(); - // 设置 event 列表 + // set event list hook_eventNames = rule.hook_eventNames.split("|"); // TODO Allowed to return value unhook_eventNames = rule.unhook_eventNames.split("|"); eventNames = hook_eventNames.concat(unhook_eventNames); - - // 调用清理 DOM0 event 方法的循环 + + // Call the loop that cleans up the DOM0 event method if(rule.dom0) { setInterval(clearLoop, 10 * 1000); setTimeout(clearLoop, 1500); window.addEventListener('load', clearLoop, true); clearLoop(); } - - // hook addEventListener //导致搜索跳转失效的原因 + + // hook addEventListener //The reason why the search jump fails if(rule.hook_addEventListener) { EventTarget.prototype.addEventListener = addEventListener; document.addEventListener = addEventListener; - + if(hasFrame){ for(let i = 0;i= 0) { var funcsName = storageName + type + (useCapture ? 't' : 'f'); - + if(this[funcsName] === undefined) { this[funcsName] = []; _addEventListener.apply(this, [type, useCapture ? unhook_t : unhook_f, useCapture]); } - + this[funcsName].push(func); } else { _addEventListener.apply(this, arguments); } } - - // 清理循环 + + // Clean up the loop function clearLoop() { - rule = clear() // 对于动态生成的节点,随时检测 + rule = clear() // For dynamically generated nodes, detect at any time var elements = getElements(); - + for(var i in elements) { - for(var j in eventNames) { - var name = 'on' + eventNames[j]; - - // ;?未解决 - // 2018-04-02 elements中会有字符串出现,原版不会,问题不明,根本原因尚未解决 - // 相关反馈 https://greasyfork.org/zh-CN/forum/discussion/36014 - // 问题版本号 v3.0.7 - // 问题补充 之前可以使用,具体版本未测(2018-04-02 21:27:53),原版可以使用 - if(Object.prototype.toString.call(elements[i])=="[object String]"){ - continue; - } - - // console.log(elements[i]) - // if(typeof elements[i][name] === "object"){ - // console.log(typeof elements[i][name]) - // } - if(elements[i][name] !== null && elements[i][name] !== onxxx) { - if(unhook_eventNames.indexOf(eventNames[j]) >= 0) { - elements[i][storageName + name] = elements[i][name]; - elements[i][name] = onxxx; - } else { - elements[i][name] = null; - } + for(var j in eventNames) { + var name = 'on' + eventNames[j]; + + // ;?unsolved + // 2018-04-02 Strings will appear in elements, the original will not, the problem is unknown, and the root cause has not been solved + // Relevant feedback https://greasyfork.org/zh-CN/forum/discussion/36014 + // Issue version number v3.0.7 + // Problem supplement Can be used before, the specific version has not been tested (2018-04-02 21:27:53), the original version can be used + if(Object.prototype.toString.call(elements[i])=="[object String]"){ + continue; + } + + // console.log(elements[i]) + // if(typeof elements[i][name] === "object"){ + // console.log(typeof elements[i][name]) + // } + if(elements[i][name] !== null && elements[i][name] !== onxxx) { + if(unhook_eventNames.indexOf(eventNames[j]) >= 0) { + elements[i][storageName + name] = elements[i][name]; + elements[i][name] = onxxx; + } else { + elements[i][name] = null; + } + } } - } } - + document.onmousedown = function(){return true;}; } - - // 返回true的函数 + + // A function that returns true function returnTrue(e) { return true; } @@ -691,24 +689,24 @@ for(var i in list) { list[i](e); } - + e.returnValue = true; return true; } function onxxx(e) { var name = storageName + 'on' + e.type; this[name](e); - + e.returnValue = true; return true; } - - // 获取所有元素 包括document + + // Get all elements including document function getElements() { var elements = Array.prototype.slice.call(document.getElementsByTagName('*')); elements.push(document); - - // 循环所有 frame 窗口 + + // Loop through all frame windows var frames = document.querySelectorAll("frame") if(frames){ hasFrame = frames; @@ -721,65 +719,65 @@ } return elements; }; - - // 获取黑名单网站 Func + + // Get the blacklisted website Func function get_black_list(){ - // 之前版本可能导致存储空的字符串 - // 2018-06-11 15:11:44 保留,当容错处理 + // Previous versions may result in storing empty strings + // 2018-06-11 15:11:44 Reserved, when fault-tolerant var data_temp = rwl_userData.data; data_temp = data_temp.filter(function(item){ - return item.length>1; - }) + return item.length>1; + }) return data_temp; } - - // 检查是否存在于黑名单中 返回位置 func + + // Check if it exists in the blacklist Return location func function check_black_list(list,host){ for(let i=0;i1; }) - - // 更新数据 + + // Update data rwl_userData.data = lists.sort(); - + // 将本地黑名单上传 // if (rwl_userData.waitUpload.length > 0 && rwl_userData.connectToTheServer){ // // console.log("rwl : 上传...",rwl_userData.waitUpload); @@ -798,32 +796,32 @@ // }); // rwl_userData.waitUpload = []; // } - + GM_setValue("rwl_userData",rwl_userData); return rwl_userData; } - - // 数组去重 + + // Array de-duplication function unique(arr) { - var ret = [] - for (var i = 0; i < arr.length; i++) { - var item = arr[i] - if (ret.indexOf(item) === -1) { - ret.push(item) + var ret = [] + for (var i = 0; i < arr.length; i++) { + var item = arr[i] + if (ret.indexOf(item) === -1) { + ret.push(item) + } } - } - return ret; + return ret; } - - // 复制到剪贴板 + + // Copy to clipboard function setClipboard(){ var text_obj = window.getSelection(); var text = text_obj.toString(); GM_setClipboard(text); - + } - - // 快捷键 F1(ctrl+f1) 复制 + + // Shortcut key F1 (ctrl+f1) copy function hotkey() { var a = window.event.keyCode; // if ((a == 112) && (event.ctrlKey)) { @@ -838,12 +836,12 @@ } else if((a == 67) && (event.ctrlKey) && userSetting.shortcut == 3){ setClipboard(); }else { - console.log("关闭了快捷键"); + console.log("Shortcut keys are turned off"); } - } - document.onkeydown = hotkey; //当onkeydown 事件发生时调用hotkey函数 - - // 部分网站采用了其他的防复制手段 + } + document.onkeydown = hotkey; //The hotkey function is called when the onkeydown event occurs + + // Some sites use other anti-copying methods function clear(){ // console.log("进入clear",hostname,rwl_userData.rules); switch (hostname){ @@ -861,27 +859,27 @@ case "www.longmabookcn.com": clear_covers(".fullimg"); return rwl_userData.rules.rule_plus; break; case "boke112.com": return rwl_userData.rules.rule_plus; break; case "www.shangc.net": return rwl_userData.rules.rule_plus; break; - // 去除弹窗 + // 去除弹窗 case "www.daodoc.com": clear_marks(".marks"); break; case "www.wcqjyw.com": clear_marks(".marks"); break; case "www.jianbiaoku.com": clear_marks(".layui-layer-shade"); break; } return rwl_userData.rules.rule_def; } - // 去除覆盖层 + // Remove the overlay function clear_covers(ele){ var odiv = document.querySelector(ele); if(odiv){ odiv.parentNode.removeChild(odiv); } } - // b站将文字嵌套在链接中 + // Station B nests text in links function clear_link_bilibili(){ var odiv = document.querySelector(".description"); if(odiv){ var tDiv = odiv.querySelector(".content-ellipsis"); var aDiv = odiv.querySelector("a"); - odiv.appendChild(tDiv); + odiv.appendChild(tDiv); } } // https://votetw.com/wiki/%E6%9E%97%E6%99%BA%E5%A0%85 @@ -893,7 +891,7 @@ }) } - // 去除弹窗, 复制后会出现弹窗提示, 但实际已经复制成功 + // Remove the pop-up window, which will appear after copying, but the copy is actually successful function clear_marks(node){ GM_addStyle(` ${node} { @@ -901,16 +899,16 @@ } `) } - - // 创世中文网 + + // Genesis Chinese Network function clear_chuangshi(){ - console.log("创世中文网 开始执行"); + console.log("Genesis Chinese Network begins execution"); - // JS 汉字与Unicode码的相互转化 - // https://www.cnblogs.com/wwlhome/p/5650744.html + // Conversion of JS Chinese characters to Unicode codes + // https://www.cnblogs.com/wwlhome/p/5650744.html function tounicode(data) { - if(data == '') return '请输入汉字'; + if(data == '') return 'Please enter Chinese characters'; var str =''; for(var i=0;i Date: Tue, 27 Dec 2022 16:38:33 -0500 Subject: [PATCH 2/4] =?UTF-8?q?Update=20and=20rename=20Remove-web-limits-?= =?UTF-8?q?=E7=BD=91=E9=A1=B5=E9=99=90=E5=88=B6=E8=A7=A3=E9=99=A4(?= =?UTF-8?q?=E6=94=B9).js=20to=20Remove-web-limits-EN.user.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\231\244(\346\224\271).js" => Remove-web-limits-EN.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename "Remove-web-limits-\347\275\221\351\241\265\351\231\220\345\210\266\350\247\243\351\231\244(\346\224\271).js" => Remove-web-limits-EN.user.js (99%) diff --git "a/Remove-web-limits-\347\275\221\351\241\265\351\231\220\345\210\266\350\247\243\351\231\244(\346\224\271).js" b/Remove-web-limits-EN.user.js similarity index 99% rename from "Remove-web-limits-\347\275\221\351\241\265\351\231\220\345\210\266\350\247\243\351\231\244(\346\224\271).js" rename to Remove-web-limits-EN.user.js index 85891f3..45c75db 100644 --- "a/Remove-web-limits-\347\275\221\351\241\265\351\231\220\345\210\266\350\247\243\351\231\244(\346\224\271).js" +++ b/Remove-web-limits-EN.user.js @@ -778,7 +778,7 @@ // Update data rwl_userData.data = lists.sort(); - // 将本地黑名单上传 + // Upload the local blacklist // if (rwl_userData.waitUpload.length > 0 && rwl_userData.connectToTheServer){ // // console.log("rwl : 上传...",rwl_userData.waitUpload); // // console.log("rwl : 开始上传-----"); @@ -883,7 +883,7 @@ } } // https://votetw.com/wiki/%E6%9E%97%E6%99%BA%E5%A0%85 - // 会创建多个无id,无class的div,覆盖在文字上层 + // Multiple divs with no id and no class will be created to cover the upper layer of the text function clear_votetw(){ var odivs = document.querySelectorAll(".mw-parser-output>div") odivs.forEach(function(value){ From 6293517c46219cd409de7209555f8dc85fdbd924 Mon Sep 17 00:00:00 2001 From: Anoir Ben Tanfous Date: Tue, 27 Dec 2022 16:42:29 -0500 Subject: [PATCH 3/4] English translation (Google, Bing, DeepL) --- README.md | 284 +++++++++++++++++++++++++++--------------------------- 1 file changed, 142 insertions(+), 142 deletions(-) diff --git a/README.md b/README.md index dffa32a..39d8fbb 100644 --- a/README.md +++ b/README.md @@ -1,168 +1,168 @@ -# Remove-web-limits- 网页限制解除 -在线安装 [Greasy Fork](https://greasyfork.org/zh-CN/scripts/28497-remove-web-limits-modified) +# Remove-web-limits- Web page unrestricted +Online Installation [Greasy Fork](https://greasyfork.org/zh-CN/scripts/28497-remove-web-limits-modified) -可以解除禁止复制、剪切、选择文本、右键菜单的限制, 通杀大部分网站. +You can unblock copy, cut, select text, right-click menu, and kill most websites. -安装后会在网页右上角出现一个半透明的小方框,虽然脚本已经内置了部分网站,但是如果您浏览的网站无法生效,可以将鼠标滑动至此,点击选框即可对该网站生效。 无效的情况下可以在此反馈 +After installation a small translucent box will appear in the top right corner of the page, although the script has some websites built in, if the website you are viewing does not work, you can slide your mouse over this and click the checkbox to make it work for that website. If it does not work you can give feedback here -原作者 [cat73](https://cat7373.github.io/remove-web-limits/) , 已停止维护,其相关链接 [Greasy Fork](https://greasyfork.org/zh-CN/scripts/14146) , [GitHub](https://github.com/Cat7373/remove-web-limits) ,因为和 [搜索跳转脚本](https://greasyfork.org/zh-CN/scripts/27752-searchenginejump) 有 [冲突](https://greasyfork.org/zh-CN/forum/discussion/21298/x?locale=zh-CN#) ,遂进行了改动。 +The original author [cat73](https://cat7373.github.io/remove-web-limits/) , has stopped maintaining it, and its related links [Greasy Fork](https://greasyfork.org/zh-CN/scripts/14146) , [GitHub](https://github.com/Cat7373/remove-web-limits) , have been changed because of [conflict](https://greasyfork.org/zh-CN/forum/discussion/21298/x?locale=zh-CN#) with [search jump script](https://greasyfork.org/zh-CN/scripts/27752-searchenginejump) . -因为原作者因工作关系已停止维护,所以如果反馈的话,务必在我的 [GitHub](https://github.com/qxinGitHub/Remove-web-limits-/issues) 或者 [Greasy Fork](https://greasyfork.org/zh-CN/scripts/28497-remove-web-limits-modified) 下进行反馈,并提供相关网址。 如果是感谢的话可以去 [原作者的GitHub](https://github.com/Cat7373/remove-web-limits) 感谢。 +Since the original author has stopped maintaining it due to work, be sure to give feedback under my [GitHub](https://github.com/qxinGitHub/Remove-web-limits-/issues) or [Greasy Fork](https://greasyfork.org/zh-CN/scripts/28497-remove-web-limits-modified) with the relevant URL if you are giving feedback. If it's a thank you go to [original author's GitHub](https://github.com/Cat7373/remove-web-limits) to thank him. -## 相关说明 -0. 某些页面原作者的脚本可以而我的不行,所以当出现这种情况的时候可以尝试下原作者的。 -1. flash页面上的文字无法复制 -2. 链接上的文字可以通过按住alt键进行选择复制 -3. 如果对视频网站使用,会使视频拖动条无法使用。 请在复制完成后关掉对视频网站的规则使用。 -4. 某些网站会依旧提示让你开vip又或者付费, 但是粘贴试试, 有些是可以成功的 +## Related notes +0. Some pages the original author's script works and mine doesn't, so try the original author's when that happens. +1. Text on flash pages cannot be copied +2. The text on the link can be copied by holding down the alt key to select +3. If used for video sites, it will make the video drag bar unusable. Please turn off the use of rules for video sites after copying is complete. +4. Some sites will still prompt you to open a vip or pay for it, but try pasting it, some will work -## 更新历史 +## Update history > v4.4.8 2022-12-13 - - 增加: 默认规则里增加了一些网站 ("www.daodoc.com","www.wcqjyw.com","www.szxx.com.cn") + - Added: Some websites have been added to the default rules ("www.daodoc.com", "www.wcqjyw.com", "www.szxx.com.cn") > v4.4.7 2022-11-24 - - 增加: 增加了一些网站 - - 排除: 排除了一些网站, 解决了知乎的登录问题 + - Added: Added some sites + - Exclude: Exclude some websites, solve Zhihu login problem > v4.4.6 2021-06-09 - - 增加: www.bimiacg.net + - Added: www.bimiacg.net > v4.4.5 2021-03-19 - - 增加: www.uta-net.com + - Added: www.uta-net.com > v4.4.4 2021-03-13 - - 增加: xiegw.cn + - Add: xiegw.cn > v4.4.3 2021-03-13 - - 增加: chuangshi.qq.com 部分支持 + - Added: partial support for chuangshi.qq.com > v4.4.2 2021-03-10 - - 增加 myhtebooks.com + - add myhtebooks.com > v4.4.1 2021-03-07 - - 增加: votetw.com - - 增加: boke112.com + - Added: votetw.com + - Added: boke112.com > v4.4.0 2020-08-03 - - 增加复制快捷键默认 Cttl + C ,可以改为 F1 或关闭(即便该网站不在黑名单中也会起作用) - - 设置界面,关闭按钮无法使用的问题 - - 排除哔哩哔哩/youtube视频播放界面 - - 隐藏按钮后无法生效的问题 - - 增加了几个网站 - > v4.3.3 2020-02-23 - - 增加清空设置按钮 - - 增加 www.uslsoftware.com 网站 - > v4.3.3 2020-02-23 - - 修复可能导致无法隐藏的问题 - > v4.3.2 2020-02-21 - - 内部参数错误 导致新用户无法正常使用. 4.3.0 版本导致 - > v4.3.1 2020-02-20 - - 样式微调 - > v4.3.0 2020-02-19 - - 更改设置菜单,可以隐藏按钮 - > v4.2.0 2020-02-16 之前的版本历史在[Greasy Fork](https://greasyfork.org/zh-CN/scripts/28497-remove-web-limits-modified) - - 获取所有节点 包括iframe中的节点 - - 修正 [海棠文化小说网站](https://www.myhtlmebook.com/) - > v4.1.4 2018-07-02 - - 移除广告 - > v4.1.3 2018-06-30 - - 百度页面翻页后,会占用网页内容,感谢评论区 Gem Tre 反馈 - > v4.1.2 2018-06-29 - - 更新了广告 - > v4.1.1 2018-06-26 - - 增加了设置菜单 - - 增加了广告 - > v4.0.0 2018-06-11 - - 4.0.0版本,整理了代码 - > v3.2.3 2018-06-05 - - 感谢评论区 JsonBorn 的帮助,目前对于b站,仅排除视频区和番剧区 - > v3.2.2 2018-05-18 - - 无法复制 b站的动态 问题,感谢反馈区 peter17ji 的反馈 - > v3.2.1 2018-05-10 - - 注释掉脚本会无法生效的问题,感谢评论区Fengyifu 反馈 - - 改变窗口大小,按钮若离开可视窗口,会自动挪到最下方 - > v3.2.0 2018-04-18 - - 增加吸附边缘,可以拖动位置,因为懒得原因,目前只能吸附在左边 - > v3.1.0 2018-04-02 - - 个别网站会获取到错误的节点对象,导致程序异常终止。感谢评论区 Deleted user 163399 的反馈 - > v3.0.7 2018-03-13 - - 知乎无法复制的问题,感谢用户 Qun Wang 的反馈 - > v3.0.6 2018-03-09 - - 修改了英语和日语名字,用于和原脚本做区分 - > v3.0.5 2018-02-15 - - 增加 beforeunload,去除离开限制,感谢评论区lickety建议, - > v3.0.4 2018-02-15 - - 脚本默认排除b站,熊猫直播网站, - > v3.0.3 2018-02-15 - - 应用宝等网站选中后透明,让用户产生无法选中的错觉, - - 同时修正龙腾网(www.ltaaa.com)页面变蓝的情况 - > v3.0.2 2018-01-11 - - 部分网站页面变成蓝色,感谢评论区Liang_Jinpeng 反馈 - > v3.0.1 2018-01-02 - - 勾选后不再主动刷新页面; - - 选中文字后,强制将颜色变为蓝底白字,某些页面选中文字后,背景与字体颜色无变化,给人一种无法选中的更觉 - > v3.0.0 2017-11-28 - - 此版本开始会将列表上传至我的服务器,用以整合黑名单, + - Increase the copy shortcut key by default Cttl + C, which can be changed to F1 or closed (even if the website is not in the blacklist, it will work) + - The setting interface, the problem that the close button cannot be used + - Exclude Bilibili/youtube video playback interface + - The problem that the hidden button cannot take effect + - Added several sites + > v4.3.3 2020-02-23 + - Add clear settings button + - Added www.uslsoftware.com website + > v4.3.3 2020-02-23 + -Fixed a problem that may lead to not being able to hide + > v4.3.2 2020-02-21 + - Incorrect internal parameters cause new users to be unable to use normally. Version 4.3.0 causes + > v4.3.1 2020-02-20 + - Style fine-tuning + > v4.3.0 2020-02-19 + - Change settings menu, button can be hidden + > v4.2.0 Version history before 2020-02-16 at [Greasy Fork](https://greasyfork.org/zh-CN/scripts/28497-remove-web-limits-modified) + - Get all nodes including nodes in iframe + - Corrected [Begonia Cultural Novel Website](https://www.myhtlmebook.com/) + > v4.1.4 2018-07-02 + - remove ads + > v4.1.3 2018-06-30 + - After the Baidu page is turned, it will occupy the content of the webpage, thanks for the feedback from Gem Tre in the comment area + > v4.1.2 2018-06-29 + - Updated ads + > v4.1.1 2018-06-26 + - Added settings menu + - Added ads + > v4.0.0 2018-06-11 + - Version 4.0.0, tidied up the code + > v3.2.3 2018-06-05 + - Thanks to the help of JsonBorn in the comment area. Currently, for station b, only the video area and the drama area are excluded + > v3.2.2 2018-05-18 + - Unable to copy the dynamic problem of station b, thanks for the feedback from peter17ji in the feedback area + > v3.2.1 2018-05-10 + - Commenting out the problem that the script will not take effect, thanks to Fengyifu in the comment area for feedback + - Change the size of the window, if the button leaves the visible window, it will automatically move to the bottom + > v3.2.0 2018-04-18 + - Increase the adsorption edge, you can drag the position, because of laziness, currently it can only be adsorbed on the left + > v3.1.0 2018-04-02 + - Some websites will obtain wrong node objects, resulting in abnormal termination of the program. Thanks for the feedback from Deleted user 163399 in the comment area + > v3.0.7 2018-03-13 + - Zhihu cannot reproduce the problem, thanks to the feedback from user Qun Wang + > v3.0.6 2018-03-09 + - Changed English and Japanese names to distinguish it from the original script + > v3.0.5 2018-02-15 + - Add beforeunload, remove the leave restriction, thanks for the lickety suggestion in the comment area, + > v3.0.4 2018-02-15 + - The script excludes Station B, Panda Live Website by default, + > v3.0.3 2018-02-15 + - Websites such as App Store are transparent after selection, giving users the illusion that they cannot be selected, + - At the same time, correct the situation that the page of Longteng.com (www.ltaaa.com) turns blue + > v3.0.2 2018-01-11 + - Some website pages turn blue, thanks to Liang_Jinpeng's feedback in the comment area + > v3.0.1 2018-01-02 + - After checking, the page will no longer be actively refreshed; + - After the text is selected, the color will be changed to white on a blue background. After the text is selected on some pages, the background and font color will not change, giving people a feeling that they cannot be selected + > v3.0.0 2017-11-28 + - Starting from this version, the list will be uploaded to my server to integrate the blacklist, > v2.4.11 2017-11-21 - - 知乎无法点击搜索框的下拉联想搜索,感谢 w153140 用户反馈 + - Zhihu can’t click the drop-down association search in the search box, thanks to w153140 user feedback > v2.4.10 2017-11-20 - - 之前保存数据可能导致保存空的字符串,致使所有完整都能匹配成功 - > v2.4.9 2017-10-17 - - 增加对mousemove事件的清除,感谢 weijen6 用户反馈 - > v2.4.8.1 2017-10-12 - - 精简无用的代码 - > v2.4.7 2017-10-11 - - 发生故障,不知道问题原因,甚至不知道从哪个版本出现的问题。回滚到2.4.3. 在此版本上进行修改。 - - 在网站city.udn.com中gm_getvalue间歇性无法使用。 - - Array.from无法将set结构转换为数组,返回值为undefined。感谢评论区的weijen6反馈 - > v2.4.6 2017-09-28 - - ~~可以简易的查看已屏蔽网站的列表~~ - > v2.4.5 2017-08-31 - - ~~设置菜单位置偏移现象~~ - > v2.4.4 2017-08-27 - - ~~黑名单中增加 “ http://bbs.coocaa.com,http://luxmuscles.com”,感谢 zhangbaida 及另一位用户提供。 小更新~~ - > v2.4.3 2017-08-22 - - 知乎评论会同时删除两个字符的问题,新一轮的更新即将开始 - > v2.4.2 2017-06-04 - - 完善 rwl-exempt,对于class中含有 “rwl-exempt”的,js事件将不会被覆盖掉 - > v2.4.1 2017-05-20 - - 黑名单中增加 “ book.hjsm.tom.com;chuangshi.qq.com”,感谢 zhangbaida 提供 - > v2.4.0 2017-05-18 - - 更改网址匹配规则,一(或多)级域名若在黑名单,则跟在其上面的多级域名同样位于黑名单 - - 本地数据版本更新至1.0, 在storage中使用名称排序,数据更新至25个网站。 - > v2.3.0 2017-05-16 - - 更新本地数据库,尝试维护防复制网站这么个列表 对于class中含有 rwl-exempt 的元素免杀,若自己的脚本和它冲突,请尝试在元素的class中添加 ”rwl-exempt “ - > v2.2.4 2017-05-15 - - 百度花语huayu.baidu.com, 原脚本对该网站是有效的,而我的却出了问题,临时先用其他方法解决它,所以单独更新个脚本以便日后排查这个问题 - > v2.2.3 2017-05-15 - - 修复纵横,起点无选框的问题 - > v2.2.2 2017-05-07 - - 默认规则中添加清空 mousedown,mouseup 事件 - > v2.2.1 2017-05-02 - - 更改名字;更改图标;样式修复;去掉凤凰网的新闻分享; - > v2.2.0 2017-04-26 - - 对当初 2.1 修改版中一些不合逻辑的地方进行修改 - > v2.1.6 2017-04-26 - - z-index 调为最大值; 在没有body元素的网页直接插入到html最后;加入图标 - > v2.1.5 2017-04-25 - - 个别网站使用透明图层覆盖防止复制 - > v2.1.4 2017-04-24 - - 注释掉 console.log - > v2.1.3 2017-04-24 - - 添加基本样式appearance - > v2.1.2 2017-04-07 - - 2.1.2 修复iframe也显示的问题 - > v2.1.1 2017-03-31 - - 样式修改 style fix + - Saving data before may result in saving an empty string, causing all complete matches to succeed + > v2.4.9 2017-10-17 + - Increase the clearing of mousemove events, thanks to weijen6 user feedback + > v2.4.8.1 2017-10-12 + - Streamline useless code + > v2.4.7 2017-10-11 + - Crashes, don't know the cause of the problem, or even from which version the problem arises. Roll back to 2.4.3. Make changes on this version. + - gm_getvalue does not work intermittently on site city.udn.com. + - Array.from cannot convert the set structure to an array, and the return value is undefined. Thanks for the feedback from weijen6 in the comment area + > v2.4.6 2017-09-28 + - ~~You can easily view the list of blocked websites~~ + > v2.4.5 2017-08-31 + - ~~Setting menu position offset phenomenon~~ + > v2.4.4 2017-08-27 + - ~~ Added "http://bbs.coocaa.com, http://luxmuscles.com" to the blacklist, thanks to zhangbaida and another user. small update~~ + > v2.4.3 2017-08-22 + - Knowing that comments will delete two characters at the same time, a new round of updates is about to start + > v2.4.2 2017-06-04 + - Improve rwl-exempt, for the class containing "rwl-exempt", the js event will not be overwritten + > v2.4.1 2017-05-20 + - Added "book.hjsm.tom.com; chuangshi.qq.com" to the blacklist, thanks to zhangbaida + > v2.4.0 2017-05-18 + - Change the URL matching rules, if one (or more) level domain names are in the blacklist, then the multi-level domain names above it are also in the blacklist + - The local data version is updated to 1.0, the storage is sorted by name, and the data is updated to 25 websites. + > v2.3.0 2017-05-16 + - Update the local database and try to maintain a list of anti-copy websites. For elements containing rwl-exempt in the class, avoid killing. If your own script conflicts with it, please try to add "rwl-exempt" to the class of the element + > v2.2.4 2017-05-15 + - Baidu Flower Language huayu.baidu.com, the original script is valid for this website, but mine has a problem. I use other methods to solve it temporarily, so I update the script separately to troubleshoot this problem in the future + > v2.2.3 2017-05-15 + - Fix the problem that the vertical and horizontal, starting point has no marquee + > v2.2.2 2017-05-07 + - Added clear mousedown and mouseup events to the default rules + > v2.2.1 2017-05-02 + - Change the name; change the icon; fix the style; remove the news sharing of Fenghuang.com; + > v2.2.0 2017-04-26 + - Modify some illogical places in the original 2.1 revision + > v2.1.6 2017-04-26 + - Adjust the z-index to the maximum value; insert directly into the end of the html on a webpage without a body element; add an icon + > v2.1.5 2017-04-25 + - Individual websites are overlaid with transparent layers to prevent copying + > v2.1.4 2017-04-24 + - Comment out console.log + > v2.1.3 2017-04-24 + - Add basic style appearance + > v2.1.2 2017-04-07 + - 2.1.2 Fix the problem that iframe is also displayed + > v2.1.1 2017-03-31 + - Style modification style fix > v2.1.0 2017-03-30 - > v2.1.0 2017-03-30 - - 大变动,很大的变动 + > v2.1.0 2017-03-30 + - big change, big change > v2.0.1 2017-03-29 > v2.0.1 2017-03-29 From 5868aeb01842ecd5f439fb3275752d6336d77f80 Mon Sep 17 00:00:00 2001 From: Anoir Ben Tanfous Date: Tue, 27 Dec 2022 17:01:28 -0500 Subject: [PATCH 4/4] polishing a bit --- Remove-web-limits-EN.user.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Remove-web-limits-EN.user.js b/Remove-web-limits-EN.user.js index 45c75db..19301ea 100644 --- a/Remove-web-limits-EN.user.js +++ b/Remove-web-limits-EN.user.js @@ -269,8 +269,8 @@ tempHeight = tempHeight<0?0:tempHeight node.style.cssText = "position:fixed;top:"+tempHeight+"px;left:"+rwl_userData.positionLeft+"px;right:"+rwl_userData.positionRight+"px;"; - // node.innerHTML = 'delete'; - // node.innerHTML = ''; + // node.innerHTML = 'delete'; + // node.innerHTML = ''; node.innerHTML = ' set Restrictions lifted '; if(window.self === window.top){ if (document.querySelector("body")){ @@ -422,7 +422,7 @@ " ") var innerH = "" + "

Distance from the top (in pixels)

" + "" + - // "

允许上传黑名单

" + "
" + + // "

Allow blacklist uploads

" + "
" + "

Shortcut Keys:" + "" + "

" + - "

Show button Click the Script Management extension to open the settings again

" + "
" + + "

Show button Click the Script Management extension to open the settings again

" + "
" + "

Feedback address: GitHub(qxin), GreasyFork(qxin)

" + "

The original author of the project is cat7373, Project home page

" + "

The ability is limited and not every website can be perfect

" + "

If you give feedback, be sure to bring the detailed URL

" + "

" + - // "

显示按钮(待添加)

" + - // "

按钮透明度(待添加)

" + - // "

快速复制(待添加)

" + - // "

其他 (待添加)

" + + // "

Show button (to be added)

" + + // "

Button transparency (to be added)

" + + // "

Quick copy (to be added)

" + + // "

Other (to be added)

" + "

The data storage method is JSON. If you modify it here, pay attention to the quotation marks and commas

" + "" + "
" + - "Clear Settings    " + + "Reset Settings    " + "Save    " + - " close    " + + "Close    " + "--| qxin v4.4.8 2022-12-13 |--" + "" "";