Skip to content

Commit eedca26

Browse files
committed
fix
1 parent df172e1 commit eedca26

5 files changed

Lines changed: 23 additions & 14 deletions

File tree

Anti-anti-pic-stealing-link/Anti-anti-pic-stealing-link.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// @name 反图片防盗链
33
// @name:en Anti-anti-pic-stealing-link
44
// @namespace hoothin
5-
// @version 0.2
5+
// @version 0.3
66
// @description 破解图片防盗链
77
// @description:en crack Anti-pic-stealing-link to show real picture
88
// @author hoothin
@@ -42,7 +42,7 @@
4242
for (var i in sites) {
4343
var sitePatt=new RegExp(sites[i],"i");
4444
if(sitePatt.test(item.src)){
45-
if(!(new RegExp(i,"i")).test(location.href)){
45+
if(!(new RegExp(i,"i")).test(location.hostname)){
4646
refererChanger(item);
4747
}
4848
break;

Easy offline/Easy offline.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// @namespace http://tampermonkey.net/
99
// @require https://cdn.jsdelivr.net/jquery/1.7.2/jquery.min.js
1010
// @require https://cdn.jsdelivr.net/hi-base64/0.2.0/base64.min.js
11-
// @version 1.5.2
11+
// @version 1.5.3
1212
// @author Hoothin
1313
// @mail rixixi@gmail.com
1414
// @include http*://*/*
@@ -587,7 +587,7 @@
587587
var isDisk=false;
588588
for(x = 0; x < sitesArr.length; x++){
589589
let siteConfig=sitesArr[x];
590-
if(siteConfig.regex.test(location.href)){
590+
if(siteConfig.regex.test(location.hostname)){
591591
isDisk=true;
592592
if(curlink){
593593
if(siteConfig.offFunc)siteConfig.offFunc();

Easy offline/README.MD

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,27 @@
1717
* 某带参mp4视频 `mp4\?[^\/]+$`
1818

1919
###Update
20-
- 添加用户设置功能,填入正则表达式可增加支持链接
21-
- 添加命令菜单,点击快速在当前网站禁用或启用并记录选择
20+
- **`Alt + F9`** 自定义下载,选中文本超链则下载文本超链,鼠标指向链接则下载链接,没有选中则弹框输入链接下载
21+
- 按住 **`Ctrl + Shift`** 点击批量离线当前页面中所有资源(如果我给该网盘写了批量离线功能的话),实际也没鸟用,度盘批量离线时动不动就网络繁忙了
22+
- 添加度盘默认下载路径设置
23+
- 添加网盘设置功能,点击图标可设置是否启用网盘
24+
- 添加网盘排序功能,设置页面拖拽图标即可进行排序
25+
- 添加设置项,填入正则表达式可增加支持链接,可设置是否仅当鼠标经过时显示图标
26+
- 按下 **`F9`** 快速在当前网站禁用或启用并记录选择
2227
- 离线时将32位磁力链接转换为40位磁力链接,便于网盘识别动漫花园之类的资源
2328
- 修复百度网盘超级vip问题,感谢Psnowy
2429

2530
---
2631
![img1](https://greasyfork.org/system/screenshots/screenshots/000/005/431/original/GIF1.gif?1476097920)
2732

28-
###支持网盘
33+
###支持服务
2934
* 百度网盘 http://pan.baidu.com
3035
* 115 http://115.com
3136
* Furk http://www.furk.net
3237
* Seedr http://www.seedr.cc
3338
* 迅雷离线 http://lixian.xunlei.com
34-
* Pcloud http://www.pcloud.com
39+
* Pcloud http://www.pcloud.com
40+
* 小米路由器 http://miwifi.com
41+
* 腾讯微云 http://weiyun.com
42+
* 九秒云播 http://apiv.ga
43+
* Torrent.org http://torrent.org.cn

Greasyfork Search with Sleazyfork Results include/Greasyfork Search with Sleazyfork Results include.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// @name:zh-TW 大人的Greasyfork
55
// @name:ja 大人のGreasyfork
66
// @namespace hoothin
7-
// @version 0.67
7+
// @version 0.68
88
// @description Merge adult results of sleazyfork into greasyfork when the script is no longer anonymously available, add rating score and version for scripts then
99
// @description:zh-CN 在Greasyfork的搜索结果中添加Sleazyfork上的成人脚本,增加评分与版本号,并在访问匿名不可用脚本时跳转至Sleazyfork
1010
// @description:zh-TW 在Greasyfork的搜索結果中添加Sleazyfork上的成人腳本,增加評分與版本號,並在訪問匿名不可用腳本時跳轉至Sleazyfork
@@ -26,7 +26,7 @@
2626
(function() {
2727
'use strict';
2828
if(document.querySelector('span.sign-in-link')){
29-
var otherSite=/\/\/([^\.]+\.)?greasyfork\.org/.test(location.href)?"sleazyfork":"greasyfork";
29+
var otherSite=/greasyfork\.org/.test(location.hostname)?"sleazyfork":"greasyfork";
3030
if(/scripts\/\d+/.test(location.href)){
3131
if(!document.querySelector("#script-info") && (otherSite == "greasyfork" || document.querySelector("div.width-constraint>section>p>a"))){
3232
location.href=location.href.replace(/\/\/([^\.]+\.)?(greasyfork|sleazyfork)\.org/,"//$1"+otherSite+"\.org");

HacgGodTurn/HacgGodTurn.user.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
// @include http*://greasyfork.org/*/scripts/*
8383
// @include http*://sleazyfork.org/*/forum/*discussion*
8484
// @include http*://greasyfork.org/*/forum/*discussion*
85-
// @version 3.22.20
85+
// @version 3.22.21
8686
// @grant GM_notification
8787
// @grant GM_xmlhttpRequest
8888
// @grant GM_setClipboard
@@ -840,14 +840,14 @@
840840
}
841841
}
842842
for(var site of config.sites){
843-
if(site.regex.test(location.href)){
843+
if(site.regex.test(location.hostname)){
844844
curSite=site;
845845
break;
846846
}
847847
}
848848
var contentArea=curSite&&curSite.contentArea?curSite.contentArea:'.entry-content',commArea=curSite&&curSite.commArea?curSite.commArea:"comment-content",articleSel=curSite&&curSite.articleSel?curSite.articleSel:"article";
849849

850-
if(/(sleaz|greas)yfork\.org\//.test(location.href)){
850+
if(/(sleaz|greas)yfork\.org/.test(location.hostname)){
851851
if(/scripts\/23316/.test(location.href)){
852852
let pos=elementPosition(document.querySelector("#additional-info>div.script-author-description>h2")).y;
853853
scrollTo(0,pos);
@@ -886,7 +886,7 @@
886886
}
887887
}
888888
return;
889-
}else if(/^https?:\/\/pan\.baidu\.com/.test(location.href)){
889+
}else if(location.hostname=="pan.baidu.com"){
890890
if(location.hash.slice(1)){
891891
document.querySelector("#accessCode").value=decodeURI(location.hash.slice(1));
892892
document.querySelector('#submitBtn').click();

0 commit comments

Comments
 (0)