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
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 65%
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 cb94e37..19301ea 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
@@ -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 = 'delete';
+ // node.innerHTML = '';
+ 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 = "" +
- "