Skip to content

Commit

Permalink
array.sort((a,b) => {return a-b})
Browse files Browse the repository at this point in the history
  • Loading branch information
limbopro committed Apr 21, 2022
1 parent 59428a5 commit 07b9c7f
Show file tree
Hide file tree
Showing 30 changed files with 207 additions and 174 deletions.
5 changes: 2 additions & 3 deletions Adguard/91porn.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ var rKeyword2 = "Cloudflare";
var rValues = rTitle.search(rKeyword);
var rValues2 = rTitle.search(rKeyword2);
var rFalse = "0";
if ( rValues >= rFalse || rValues2 >= rFalse )
{
window.location.reload();
if (rValues >= rFalse || rValues2 >= rFalse) {
window.location.reload();
}
20 changes: 19 additions & 1 deletion Adguard/Adblock4limbo.function.css
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
a[href*="/kst6632.com/"] { pointer-events: none !important; } a[href*="/kst6632.com/"] > img { width: 1px !important; } a[onclick^="ClickobayST();"] {display: none !important} a[href="###"] img:not(#trk_hcaptcha):not([src^="https://captcha.su.baidu.com"]) {display: none !important} a[href^="javascript"] img:not(#trk_hcaptcha):not([src^="https://captcha.su.baidu.com"]) {display: none !important}
a[href*="/kst6632.com/"] {
pointer-events: none !important;
}

a[href*="/kst6632.com/"]>img {
width: 1px !important;
}

a[onclick^="ClickobayST();"] {
display: none !important
}

a[href="###"] img:not(#trk_hcaptcha):not([src^="https://captcha.su.baidu.com"]) {
display: none !important
}

a[href^="javascript"] img:not(#trk_hcaptcha):not([src^="https://captcha.su.baidu.com"]) {
display: none !important
}
4 changes: 2 additions & 2 deletions Adguard/Adblock4limbo.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ let replacex = '<head><link rel="stylesheet" href="https://limbopro.com/CSS/Adbl
let ele_1 = '<script>';
let replacey = '<script type="text/javascript" src="//limbopro.com/Adguard/Adblock4limbo.user.js"></script><script>'
let body = $response.body
.replace(ele, replacex)
$done({body});
.replace(ele, replacex)
$done({ body });
17 changes: 10 additions & 7 deletions Adguard/Adblock4limbo.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Adblock4limbo
// @namespace https://greasyfork.org/zh-CN/scripts/443290-adblock4limbo-adsremoveproject
// @version 0.1.51
// @version 0.1.53
// @license CC BY-NC-SA 4.0
// @description 毒奶去广告计划油猴脚本版;通过 JavaScript 移除Pornhub/搜索引擎(Bing/Google)内容农场结果清除/低端影视(可避免PC端10秒广告倒计时)/独播库/ibvio/Jable(包含M3U8文件提取)/MissAv(禁止离开激活窗口视频自动暂停播放)/禁漫天堂/紳士漫畫/91porn/哔滴影视(加速跳过视频广告/避免反查)/555电影网(o8tv)等视频网站上的视频广告和图片广告,保持界面清爽干净无打扰!
// @author limbopro
Expand Down Expand Up @@ -104,7 +104,7 @@ function adsDomain_switch(x) { // 匹配参数值 执行相应函数
switch (x) {
case 'pornhub':
pornhub_interstitialPass();
ele_adsRemove(imax.css.pornhubx)
ele_adsRemove(imax.css.pornhubx,0)
tag_adsRemove("script", "ads_batch");
break;
case 'missav':
Expand Down Expand Up @@ -136,6 +136,7 @@ function adsDomain_switch(x) { // 匹配参数值 执行相应函数
break;
case 'ddrk':
css_adsRemove(imax.css.ddrk);
ele_adsRemove("#sajdhfbjwhe",150)
break;
case 'duboku':
tagName_appendChild("script", imax.js.duboku, "body")
Expand Down Expand Up @@ -193,12 +194,14 @@ function _18comic_adsRemove() {
}

// 隐藏广告样式
function ele_adsRemove(selector) {
function ele_adsRemove(selector,time) {
var i;
var href_blank = document.querySelectorAll(selector)
for (i = 0; i < href_blank.length; i++) {
href_blank[i].remove()
}
setTimeout(() => {
var href_blank = document.querySelectorAll(selector)
for (i = 0; i < href_blank.length; i++) {
href_blank[i].remove()
}
}, time)
}

// 设置 cookie 并移除特定元素
Expand Down
24 changes: 11 additions & 13 deletions Adguard/avple.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
// Cookie 设定及注入
function current() {

var d = new Date(),
ear = d.getFullYear() ; //获取当前年份
onth = d.getMonth() ; //获取当前月份(0——11)
atex = d.getDate() ; //获取当前日期(1——31)
ear = d.getFullYear(); //获取当前年份
onth = d.getMonth(); //获取当前月份(0——11)
atex = d.getDate(); //获取当前日期(1——31)

if (d.getHours() < 10) {
ours = "0" + d.getHours()
ours = "0" + d.getHours()
}
else
{
ours = d.getHours(); //获取当前时间(0——23)
else {
ours = d.getHours(); //获取当前时间(0——23)
}

inutes = d.getMinutes(); //获取当前分钟(0——59)
//str += d.getSeconds() + '00'; //获取当前秒钟(0——59)
return ear + "-" + onth + "-" + atex + "%2" + ours + "%3A" + inutes + "%3A" + "01";
}

let strx = "CFWztgFirstShowTime_2899_Cookie = ";
let timex = current();
let total = strx+ timex;
let total = strx + timex;
document.cookie = total;

// Cloudflare recaptcha 绕过
Expand All @@ -31,7 +30,6 @@ var rKeyword2 = "Cloudflare";
var rValues = rTitle.search(rKeyword);
var rValues2 = rTitle.search(rKeyword2);
var rFalse = "0";
if ( rValues >= rFalse || rValues2 >= rFalse )
{
window.location.reload();
if (rValues >= rFalse || rValues2 >= rFalse) {
window.location.reload();
}
4 changes: 2 additions & 2 deletions Adguard/baidu.index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ _blank[i].target = "_self";

// 禁止跳转商店

var str = document.getElementById("respect-footer").innerHTML;
var str = document.getElementById("respect-footer").innerHTML;
var regx = /https?:\/\/.*?itunes.*?\?mt=8/g
var strreplace = str.replace( regx , "https://zhihu.baidu.com");
var strreplace = str.replace(regx, "https://zhihu.baidu.com");
document.getElementById("respect-footer").innerHTML = strreplace;


Expand Down
6 changes: 3 additions & 3 deletions Adguard/baidu.zhidao.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
var _blank = document.querySelectorAll("a");
var i;
for (i = 0; i < _blank.length; i++) {
_blank[i].target = "_self";
_blank[i].target = "_self";
}

var str = document.getElementById("respect-footer").innerHTML;
var str = document.getElementById("respect-footer").innerHTML;
var regx = /https?:\/\/.*?itunes.*?\?mt=8/g
var strreplace = str.replace( regx , "https://www.zhihu.com");
var strreplace = str.replace(regx, "https://www.zhihu.com");
document.getElementById("respect-footer").innerHTML = strreplace;
32 changes: 16 additions & 16 deletions Adguard/bde4.play.v3.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
/* 视频页广告加速 */

(function() {
(function () {
// Based on uAssets
// License: https://github.com/uBlockOrigin/uAssets/blob/master/LICENSE
// nano-setTimeout-booster.js
var z = window.setInterval,
needle = '{{1}}',
delay = parseInt('{{2}}', 10),
boost = parseFloat('{{3}}');
if ( needle === '' || needle === '{{1}}' ) {
if (needle === '' || needle === '{{1}}') {
needle = '.?';
} else if ( needle.charAt(0) === '/' && needle.slice(-1) === '/' ) {
} else if (needle.charAt(0) === '/' && needle.slice(-1) === '/') {
needle = needle.slice(1, -1);
} else {
needle = needle.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
}
needle = new RegExp(needle);
if ( isNaN(delay) || !isFinite(delay) ) {
if (isNaN(delay) || !isFinite(delay)) {
delay = 1000;
}
if ( isNaN(boost) || !isFinite(boost) ) {
if (isNaN(boost) || !isFinite(boost)) {
boost = 0.05;
}
if ( boost < 0.02 ) {
if (boost < 0.02) {
boost = 0.02;
}
if ( boost > 50 ) {
if (boost > 50) {
boost = 50;
}
window.setInterval = function(a, b) {
if ( b === delay && needle.test(a.toString()) ) {
window.setInterval = function (a, b) {
if (b === delay && needle.test(a.toString())) {
b *= boost;
}
return z.apply(this, arguments);
Expand All @@ -43,14 +43,14 @@
var _blank = document.querySelectorAll("a");
var i;
for (i = 0; i < _blank.length; i++) {
_blank[i].target = "_self";
_blank[i].target = "_self";
}

/* 延迟1秒中清除广告元素以此避免bde4反屏蔽检测 */

setTimeout(()=>{
var newstyle="a[target*=_new] {display:none !important;}";
var creatcss=document.createElement("style");
creatcss.innerHTML=newstyle;
document.getElementsByTagName('head')[0].appendChild(creatcss)
},500);
setTimeout(() => {
var newstyle = "a[target*=_new] {display:none !important;}";
var creatcss = document.createElement("style");
creatcss.innerHTML = newstyle;
document.getElementsByTagName('head')[0].appendChild(creatcss)
}, 500);
2 changes: 1 addition & 1 deletion Adguard/contentFarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Written by limbopro
https://limbopro.com/archives/block-contentfarm.html
https://t.me/Adblock4limbo
There are 4618 content farm domains in total until now.
Last updated at 21/4月/2022/19:59
Last updated at 21/4月/2022/20:19
*/


Expand Down
2 changes: 1 addition & 1 deletion Adguard/contentFarm/contentFarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Written by limbopro
https://limbopro.com/archives/block-contentfarm.html
https://t.me/Adblock4limbo
There are 4618 content farm domains in total until now.
Last updated at 21/4月/2022/19:59
Last updated at 21/4月/2022/20:19
*/


Expand Down
42 changes: 20 additions & 22 deletions Adguard/jableX.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,21 @@ document.cookie = "ts_popunder=1";
document.cookie = "cf_chl_prog=b";

var webList = [
'r.trwl1.com',
'r.www.com'
'r.trwl1.com',
'r.www.com'
];

for (l = 0; l < webList.length; l++) {
var webSelectors = "a[href*='" + webList[l] + "']";
var webSelectors = "a[href*='" + webList[l] + "']";
var google_cssSelectors = [".video-img-box.mb-e-20,.col-6.col-sm-4.col-lg-3"];
var huge = document.querySelectorAll(google_cssSelectors);
var i;

var google_cssSelectors = [".video-img-box.mb-e-20,.col-6.col-sm-4.col-lg-3"];
var huge = document.querySelectorAll( google_cssSelectors );
var i;

for (i=0; i< huge.length; i++){
if (huge[i].querySelectorAll( webSelectors ).length > 0) {
huge[i].style.display = "none";
}
}
for (i = 0; i < huge.length; i++) {
if (huge[i].querySelectorAll(webSelectors).length > 0) {
huge[i].style.display = "none";
}
}

}

Expand All @@ -31,23 +30,22 @@ var rKeyword2 = "Cloudflare";
var rValues = rTitle.search(rKeyword);
var rValues2 = rTitle.search(rKeyword2);
var rFalse = "0";
if ( rValues >= rFalse || rValues2 >= rFalse )
{
window.location.reload();
if (rValues >= rFalse || rValues2 >= rFalse) {
window.location.reload();
}

/* 自动播放
*/

function auto_play () {
var first_Ele = ["video[class*='poster'],video[id='player'],video[id='vjsp_html5_api']"];
var first_Ele_Catch = document.querySelectorAll( first_Ele );
first_Ele_Catch[0].play()
function auto_play() {
var first_Ele = ["video[class*='poster'],video[id='player'],video[id='vjsp_html5_api']"];
var first_Ele_Catch = document.querySelectorAll(first_Ele);
first_Ele_Catch[0].play()
}

setTimeout(function (){
auto_play()
},1000);
setTimeout(function () {
auto_play()
}, 1000);


/*
Expand Down
18 changes: 9 additions & 9 deletions Adguard/javmost.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
(function() {
(function () {
var magic = String.fromCharCode(Date.now() % 26 + 97) +
Math.floor(Math.random() * 982451653 + 982451653).toString(36);
Math.floor(Math.random() * 982451653 + 982451653).toString(36);
var prop = '{{1}}',
owner = window,
pos;
for (;;) {
for (; ;) {
pos = prop.indexOf('.');
if ( pos === -1 ) { break; }
if (pos === -1) { break; }
owner = owner[prop.slice(0, pos)];
if ( owner instanceof Object === false ) { return; }
if (owner instanceof Object === false) { return; }
prop = prop.slice(pos + 1);
}
delete owner[prop];
Object.defineProperty(owner, prop, {
set: function() {
set: function () {
throw new ReferenceError(magic);
}
});
var oe = window.onerror;
window.onerror = function(msg, src, line, col, error) {
if ( typeof msg === 'string' && msg.indexOf(magic) !== -1 ) {
window.onerror = function (msg, src, line, col, error) {
if (typeof msg === 'string' && msg.indexOf(magic) !== -1) {
return true;
}
if ( oe instanceof Function ) {
if (oe instanceof Function) {
return oe(msg, src, line, col, error);
}
}.bind();
Expand Down
5 changes: 2 additions & 3 deletions Adguard/missav.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ var rKeyword2 = "Cloudflare";
var rValues = rTitle.search(rKeyword);
var rValues2 = rTitle.search(rKeyword2);
var rFalse = "0";
if ( rValues >= rFalse || rValues2 >= rFalse )
{
window.location.reload();
if (rValues >= rFalse || rValues2 >= rFalse) {
window.location.reload();
}
Loading

0 comments on commit 07b9c7f

Please sign in to comment.