Skip to content

Commit 9d48b6d

Browse files
committed
fix
1 parent 272da66 commit 9d48b6d

5 files changed

Lines changed: 189 additions & 12 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// ==UserScript==
2+
// @name ThisAV去广告
3+
// @name:en Disable popup AD of ThisAV
4+
// @name:zh-TW ThisAV去廣告
5+
// @namespace hoothin
6+
// @version 0.5
7+
// @description 去除ThisAV页面中的弹出广告与导航栏广告,添加视频下载按鈕
8+
// @description:en Just disable popup AD & tab menu AD of ThisAV.com
9+
// @description:zh-TW 去除ThisAV頁面中的彈出廣告與導航欄廣告,添加視頻下載按鈕
10+
// @author hoothin
11+
// @include http*://thisav.com/*
12+
// @include http*://www.thisav.com/*
13+
// @grant unsafeWindow
14+
// ==/UserScript==
15+
16+
(function() {
17+
'use strict';
18+
document.onclick=null;
19+
var tabsmenus=document.querySelectorAll("#slidetabsmenu>ul>li>a");
20+
for(var i=0;i<tabsmenus.length;i++){
21+
var tabsmenu=tabsmenus[i];
22+
if(tabsmenu.href.indexOf("thisav")==-1){
23+
tabsmenu.remove();
24+
}
25+
}
26+
var ratingText=document.querySelector("#rating_text");
27+
if(ratingText){
28+
ratingText.style.float="left";
29+
ratingText.style.width="55px";
30+
ratingText.style.marginLeft="5px";
31+
var downBtn=document.createElement("a");
32+
if(unsafeWindow.so){
33+
downBtn.href=unsafeWindow.so.variables.file;
34+
}else{
35+
downBtn.href=unsafeWindow.jwplayer("myElement").config.file;
36+
}
37+
ratingText.parentNode.insertBefore(downBtn,ratingText.nextSibling);
38+
downBtn.innerHTML="<input type='button' value='下載視頻' style='float: left;'></input>";
39+
}
40+
})();

HacgGodTurn/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
琉璃神社与其他绅士站神秘代码转换成下载链接
22
==========================
3-
主要功能:转换各绅士站的神秘代码便于下载,嗅探页面中所有下载链接,去除和谐限制,快速翻页,快速定位或访问文章
3+
主要功能:转换各绅士站的神秘代码,嗅探下载链接,去除和谐限制,快速翻页、定位或访问文章
44

55
[**浏览器必须支持ES6**](https://www.hacg.fi/wp/)
66

@@ -11,12 +11,15 @@
1111
---
1212
+ 增加支持如下Hentai站:
1313
- [灵梦御所](https://blog.reimu.net/ "porn 8")、[纯爱计划](https://sexacg.com/ "挊")、[绅士二次元](https://www.acg.tf/ "上车")、[萌心次元](https://www.moxacg.com/ "1024")、[次元轨迹](https://www.acggj.com/ "拤")、[ACG调查小队](https://acg12.com/ "老司机")、[幻天领域](https://www.acgnz.cc/)、[轻萌社](http://nacg.me/ "撸")、[紳士の庭](https://gmgard.com/ "传说")、[我的Galgame资源发布站](https://www.mygalgame.com/)、[天使二次元](https://www.tianshit.com/)、[樱花漫舍](https://www.oomoe.moe/)、[风铃窝](http://www.kaze5.com/)、[次元の圣光](http://www.acglover.top/)、[爱弹幕](http://www.idanmu.co/)、[幻想次元](https://acg18.us/)、[司机会所](http://www.sijihuisuo.club/)、[里番萌](https://lifanmoe.com/)、[最ACG](http://zuiacg.com/)、[绅士仓库](http://www.galacg.me/)、[梦幻二次元](http://www.mhecy.com/)、[ACG和谐区/里世界](http://acgzone.org/)、[寂月神社](https://acgmoon.org/)、[萌幻之乡](https://www.moe-acg.cc/)
14+
其他的`Alt`+`F8`查看
1415

1516
+ 通用快捷键:
1617
- `F8`或者`shift`+`F8`向前或向后循环宅站列表
1718
- `← →`快速定位到上一篇或下一篇文章
1819
- `Ctrl`+`← →`快速翻页
1920
- `Ctrl`+`↑ ↓`进入文章内容页或返回
21+
- `Alt`+`F8`打开绅士站点列表
22+
- `Ctrl`+`F8`打开火箭嗅探窗口(这样就可以`Ctrl`+```Ctrl`+`F8`快速查找评论里的资源啦)
2023

2124
+ 最ACG快捷键:
2225
- 点击图片去除和谐力量

JiandanHero/JiandanHero.user.js

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
// ==UserScript==
2+
// @name 煎蛋侠
3+
// @name:en JiandanHero
4+
// @name:zh-TW 煎蛋俠
5+
// @namespace hoothin
6+
// @version 0.3
7+
// @description 为煎蛋网jandan.net提供左右方向键快捷翻页、鼠标悬停显示大图、屏蔽指定用户发言等功能
8+
// @description:en Tools for jiandan
9+
// @description:zh-TW 為煎蛋網jandan.net提供左右方向鍵快捷翻頁、鼠標懸停顯示大圖、屏蔽指定用戶發言等功能
10+
// @author hoothin
11+
// @match http*://jandan.net/*
12+
// @grant GM_setValue
13+
// @grant GM_getValue
14+
// @grant GM_deleteValue
15+
// ==/UserScript==
16+
17+
(function() {
18+
'use strict';
19+
document.addEventListener("keydown", function(e) {
20+
if(/INPUT|TEXTAREA/.test(document.activeElement.tagName))return;
21+
switch(e.keyCode){
22+
case 37://←
23+
var next=document.querySelector("span#nav_next>a");
24+
if(next)next.click();
25+
break;
26+
case 39://→
27+
var pre=document.querySelector("span#nav_prev>a");
28+
if(pre)pre.click();
29+
break;
30+
}
31+
});
32+
var authors=document.querySelectorAll("div.author"),i;
33+
for(i=0;i<authors.length;i++){
34+
let author=authors[i];
35+
let authorId=author.querySelector("strong").title.replace(//,"");
36+
let changeBtn=document.createElement("a");
37+
changeBtn.href="javascript:void(0);";
38+
changeBtn.id="changeBtn";
39+
changeBtn.style.display="none";
40+
author.insertBefore(changeBtn,author.querySelector("br"));
41+
if(GM_getValue("jandanDis_"+authorId)){
42+
author.nextSibling.nextSibling.style.display="none";
43+
changeBtn.innerHTML="显";
44+
}else{
45+
changeBtn.innerHTML="隐";
46+
}
47+
author.onmouseover=function(){
48+
changeBtn.style.display="block";
49+
};
50+
author.onmouseout=function(){
51+
changeBtn.style.display="none";
52+
};
53+
changeBtn.onclick=function(){
54+
var author_s,j,shown;
55+
if(author.nextSibling.nextSibling.style.display=="none"){
56+
shown=false;
57+
GM_deleteValue("jandanDis_"+authorId);
58+
}else{
59+
shown=true;
60+
GM_setValue("jandanDis_"+authorId,true);
61+
}
62+
for(j=0;j<authors.length;j++){
63+
author_s=authors[j];
64+
if(author_s.querySelector("strong").title.replace(//,"")==authorId){
65+
author_s.nextSibling.nextSibling.style.display=shown?"none":"block";
66+
author_s.querySelector("#changeBtn").innerHTML=shown?"显":"隐";
67+
}
68+
}
69+
};
70+
}
71+
var imgs=document.querySelectorAll("img");
72+
var bigImg=document.createElement("img");
73+
bigImg.style.cssText="pointer-events: none;position:fixed;z-index:999";
74+
for(i=0;i<imgs.length;i++){
75+
let img=imgs[i];
76+
img.onmouseover=function(e){
77+
bigImg.src=img.src.replace(/\/s\/custom\//,"/s/medium/").replace(/\.sinaimg\.cn\/mw600/,".sinaimg.cn/large");
78+
document.body.appendChild(bigImg);
79+
};
80+
img.onmouseout=function(e){
81+
document.body.removeChild(bigImg);
82+
bigImg.removeAttribute("height");
83+
};
84+
img.onmousemove=function(e){
85+
var left=e.clientX;
86+
var top=e.clientY;
87+
if(!bigImg.src || bigImg.src===""){
88+
bigImg.src=img.src.replace(/\/s\/custom\//,"/s/medium/").replace(/\.sinaimg\.cn\/mw600/,".sinaimg.cn/large");
89+
document.body.appendChild(bigImg);
90+
}
91+
if(bigImg.height>document.documentElement.clientHeight){
92+
bigImg.height=document.documentElement.clientHeight;
93+
}
94+
if(top+bigImg.height>document.documentElement.clientHeight){
95+
top=document.documentElement.clientHeight-bigImg.height;
96+
}
97+
if(left+bigImg.width>document.documentElement.clientWidth){
98+
left=document.documentElement.clientWidth-bigImg.width;
99+
}
100+
bigImg.style.left=left+10+"px";
101+
bigImg.style.top=top+"px";
102+
};
103+
}
104+
})();

Kill TieBa AD/Kill TieBa AD.user.js

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @name:zh-CN 贴吧伪装广告清理
44
// @name:zh-TW 貼吧僞裝廣告清理
55
// @namespace hoothin
6-
// @version 0.50
6+
// @version 0.51
77
// @description Just Kill TieBa AD
88
// @description:zh-CN 清理ADB或UBO等未能清理掉的百度贴吧列表伪装广告、帖内伪装广告与推荐应用广告
99
// @description:zh-TW 清理ADB或UBO等未能清理掉的百度貼吧列表偽裝廣告、帖內偽裝廣告與推薦應用廣告
@@ -23,7 +23,7 @@
2323
'use strict';
2424
var observer, option;
2525
var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
26-
var tcss = ".j_encourage_entry{display: none !important;} #encourage_entry{display: none !important;} .tpoint-skin{display: none !important;} #pb_adbanner{display: none !important;} .iframe_wrapper{display: none !important;} div.tpoint-skin{display: none !important;}";
26+
var tcss = ".j_encourage_entry{display: none !important;} #encourage_entry{display: none !important;} .tpoint-skin{display: none !important;} #pb_adbanner{display: none !important;} .iframe_wrapper{display: none !important;} div.tpoint-skin{display: none !important;} .j_click_stats{display: none !important;}";
2727
var snod = document.createElement('style');
2828
snod.innerHTML = tcss;
2929
document.getElementsByTagName("head")[0].appendChild(snod);
@@ -40,16 +40,28 @@
4040
observer.observe(content, option);
4141
}else{
4242
content=document.querySelector(".content");
43-
if(!content)return;
44-
delAD("#j_p_postlist","DIV");
45-
observer = new MutationObserver(function(records){
43+
if(content){
4644
delAD("#j_p_postlist","DIV");
47-
});
48-
option = {
49-
'childList': true,
50-
'subtree': true
51-
};
52-
observer.observe(content, option);
45+
observer = new MutationObserver(function(records){
46+
delAD("#j_p_postlist","DIV");
47+
});
48+
option = {
49+
'childList': true,
50+
'subtree': true
51+
};
52+
observer.observe(content, option);
53+
}else{
54+
content=document.querySelector(".post_list");
55+
delAD(".threads_list","LI");
56+
observer = new MutationObserver(function(records){
57+
delAD(".threads_list","LI");
58+
});
59+
option = {
60+
'childList': true,
61+
'subtree': true
62+
};
63+
observer.observe(content, option);
64+
}
5365
}
5466

5567
function delAD(a,b){
@@ -63,11 +75,16 @@
6375
delList.push(thread);
6476
var previousSibling = thread.previousSibling;
6577
previousSibling = previousSibling.tagName == b?previousSibling:previousSibling.previousSibling;
78+
if(previousSibling.innerHTML.indexOf("广告") != -1)
6679
delList.push(previousSibling);
6780
}else{
6881
if(thread.getAttribute && thread.getAttribute("data-field")){
6982
let tdata=JSON.parse(thread.getAttribute("data-field"));
7083
if(tdata.content && tdata.content.pb_tpoint && tdata.content.pb_tpoint.is_tpoint==1)delList.push(thread);
84+
}else{
85+
if(thread.classList && thread.classList.length==2){
86+
delList.push(thread);
87+
}
7188
}
7289
}
7390
}
@@ -82,5 +99,12 @@
8299
easyAD.parentNode.parentNode.removeChild(easyAD.parentNode);
83100
}
84101
}
102+
easyADs=document.querySelectorAll("span.ti_time");
103+
for(i=0;i<easyADs.length;i++){
104+
easyAD = easyADs[i];
105+
if(easyAD.innerHTML=="广告" && easyAD.parentNode && easyAD.parentNode.parentNode && easyAD.parentNode.parentNode.parentNode){
106+
easyAD.parentNode.parentNode.parentNode.removeChild(easyAD.parentNode.parentNode);
107+
}
108+
}
85109
}
86110
})();

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ https://greasyfork.org/users/8227-hoothin
3939
+ [懒人小说下载器](DownloadAllContent)
4040

4141
通用网站内容抓取工具,可抓取小说,论坛内容等并保存为TXT文档
42+
+ [ThisAV去广告](Disable%20popup%20AD%20of%20ThisAV)
43+
44+
去除ThisAV页面中的弹出广告与导航栏广告,添加视频下载按鈕
45+
+ [煎蛋侠](JiandanHero)
46+
47+
为煎蛋网jandan.net提供左右方向键快捷翻页、鼠标悬停显示大图、屏蔽指定用户发言等功能
4248

4349
---
4450
Feedback发邮件

0 commit comments

Comments
 (0)