天使动漫半自动打工脚本 代码参考了https://greasyfork.org/zh-CN/scripts/14940 对setycyas表示感谢
当前为
// ==UserScript==
// @name TSDM打工
// @namespace https://greasyfork.org/zh-CN/users/821
// @author gfork
// @description 天使动漫半自动打工脚本 代码参考了https://greasyfork.org/zh-CN/scripts/14940 对setycyas表示感谢
// @include http://www.tsdm.net/plugin.php?id=np_cliworkdz:work
// @include http://www.tsdm.me/plugin.php?id=np_cliworkdz:work
// @include http://www.tsdm.tw/plugin.php?id=np_cliworkdz:work
// @version 3.3
// @grant none
// @run-at document-end
// @require http://code.jquery.com/jquery-2.1.1.min.js
// @license GPL version 3
// ==/UserScript==
var num=0;
/* 老版本备份 不用管
$('div[id*="np_advid"]>a').each(function(index, element) {
hrefValue = $(this).attr("href","javascript:;") ;
targetValue = $(this).attr("target","_self") ;
});
*/
$('div[id*="np_advid"]>a').bind("mouseover",function(){
$(this).slideToggle();
$.post("plugin.php?id=np_cliworkdz:work",
{
act:"clickad"
},
function(data){
num++;
if(num==6){setTimeout(tijiao,2000);}
// alert(num);
}
);
});
function tijiao(){
$.post("plugin.php?id=np_cliworkdz:work",
{act:'getcre'},
function(data)
{
alert(remind(data));
window.location=window.location;}
);
}
function remind(data){
var info=data.match(/class="alert_info">[\s]{0,4}<p>([^<]*)</)[1];
return info;
}