Greasy Fork is available in English.
Automatically skip ad-fly
当前为
// ==UserScript==
// @name Adfly-skipper
// @namespace http://tampermonkey.net/
// @version 0.6
// @description Automatically skip ad-fly
// @author giuseppe-dandrea
// @match http*://q.gs/*
// @match http*://j.gs/*
// @match http*://adf.ly/*
// @match http*://bc.vc/*
// @match http*://swzz.xyz/*
// @match http*://vcrypt.net/*
// @grant none
// ==/UserScript==
var url = window.location.href;
if (url.indexOf("q.gs") != -1 || url.indexOf("j.gs") != -1 || url.indexOf("adf.ly") != -1 ) {
adfly_bypass();
}
else if (url.indexOf("bc.vc") != -1 ) {
bcvc_bypass();
}
else if (url.indexOf("swzz.xyz") != -1 ) {
swzz_bypass();
}
else if (url.indexOf("vcrypt.net") != -1 ) {
vcrypt_bypass();
}
function adfly_bypass() {
var href = "";
new Promise((resolve) => setTimeout(resolve, 1000)).then(() => {
href = $('#skip_bu2tton')[0].href;
if (href === "") {
adfly_bypass();
}
else {
window.open(href, '_self');
}
});
}
function bcvc_bypass() {
new Promise((resolve) => setTimeout(resolve, 1000)).then(() => {
if ($('#skip_btt').size() === 1) {
$('#skip_btt').trigger('click');
}
else {
bcvc_bypass();
}
});
}
function swzz_bypass() {
new Promise((resolve) => setTimeout(resolve, 1000)).then(() => {
if ($('body > div.container > div.row > div > a').length === 1) {
$('body > div.container > div.row > div > a').trigger('click');
}
else {
swzz_bypass();
}
});
}
function vcrypt_bypass() {
new Promise((resolve) => setTimeout(resolve, 1000)).then(() => {
if ($('body > center > center > form > input.btncontinue').length === 1) {
$('body > center > center > form > input.btncontinue').trigger('click');
}
else if( $('body > div > div:nth-child(2) > div > div > a:nth-child(4)').length === 1) {
$('body > div > div:nth-child(2) > div > div > a:nth-child(4)').trigger('click');
}
else {
vcrypt_bypass();
}
});
}