var BaseUrl=""; var baObjs = new Array;//存贴吧 var localUrl = window.location.href; if(cutchar(localUrl,"http://",".com")=="wapp.baidu"){ var bai; var ajax=Ajax(); var pageStr; var baCH = new Array;//存贴吧名字 var baEN = new Array;//存贴吧地址 show_BaseDiv(); mark_cell(); } if(cutchar(localUrl,"http://",".com")=="tieba.baidu"){$("#Sign_MainDiv").innerHTML+= "电脑签到
"; show_BaseDiv(); document.getElementById("myli5").innerHTML="进入WAPP";//wapp贴吧页面的链接 mark_fav(); } function show_BaseDiv(){ //以下基本样式 document.body.innerHTML+= ""; //以下构建了基本的页面显示框架 document.body.innerHTML+="
";//我的根元素 document.getElementById("Sign_Body").innerHTML="
"+//顶部工具栏 "
"+//大背景 "
"+//主体显示 "
11
";//公告显示 document.getElementById("Sign_BarTop").innerHTML="
"+//顶部栏 "
"+//显示总贴吧数量 "
"+//显示正在进行到第几个 "
"+//完成标志 "
"+//转到手机版的链接 ""+//显示关闭按钮 "
"; document.getElementById("Sign_Body").innerHTML+=""+//箭头 "















































一键签到
";//按钮标签 //$(".markPic2").hover(function(){$(".markPic2").animate({right: "-20px"}, 400 );},function(){$(".markPic2").animate({right: "-170px"}, 400 );});//添加事件 document.getElementById("myli1").innerHTML="还未收集。。。"; document.getElementById("myli2").innerHTML="0 / 未知"; document.getElementById("myli3").innerHTML=""; document.getElementById("Sign_NoticeDiv").innerHTML="请自行检查有没有签到正确,如有错误,欢迎反馈:
"+ "蝉曦吧反馈专用贴
"+ "服务器随时可能不可用,故关注更新帖,保证可以及时更新书签:
"+ "蝉曦吧地址更新专用帖
"+ // "代码修改中,期间使用本签到可能出现故障,请稍候再用
"+ "请注意:请在自动签到的时候,放慢你的发帖和回复速度,防止应为操作过频被度受和谐ID。
"+ "------2013.04.03 v1.2.2------
"+ "更新1.修复由于i贴吧部分页面下线导致的贴吧收集障碍
"+ "提示1.模拟手机签到可在普通版或极简版运行
"+ "------------------------------
"+ "ios(越狱)和android版签到工具,请前往手机签到工具支持并提供宝贵意见,本工具相对别的签到工具的优点是:省流量;100个贴吧的签到约为300KB的流量左右
"+ "------------------------------
"+ "IE8用户如需模拟手机签到,把以下复制到记事本另存为wap.reg运行,在地址栏输入http://wap.baidu.com,点击极简版,再点击贴吧进入极简版贴吧。使用后进入Internet选项--删除--勾选 cookie 和网站数据--删除(删除cookie是为了下次能进入极简版贴吧)
"+ "Windows Registry Editor Version 5.00
"+ "[HKEY_CURRENT_USER\\Software\\Classes\\MIME\\Database\\Content Type\\text/vnd.wap.wml]
"+ "\"CLSID\"=\"{25336920-03F9-11cf-8FD0-00AA00686F13}\""; document.getElementById("Sign_MainDiv").innerHTML="此代码是蝉曦签到的分支版本:
"+ "主体代码与电脑签到跟随 http://chanxi.googlecode.com/files/sign.js 更新
"+ "模拟手机签到采用蝉曦旧版签到代码稍微修改而成
"+ "程序开始工作...
---开始收集I贴吧中的贴吧名,请等待 ......
"; } function mark_fav(){//电脑签到 countba();//收集贴吧,开始运行签到程序 } //查贴吧数量,收集贴吧 function countba(){ $(".Sign_BtnTop")[0].innerHTML="开始收集。。。"; $.ajax({ type: "get",url: "http://tieba.baidu.com/i/" +PageData.user.itieba_id, data: "",dataType: "text",success: function (data) { //alert(cutchar(data,"$_likeForum=[","];")) var dataObjs=$(data).find(".always_go_list li .j_ba_link"); for(var i=0;i=baObjs.length){ $(".Sign_MainDiv")[0].innerHTML+="
签到完毕!请自行检查有没有签到正确,如有错误,欢迎反馈蝉曦吧反馈专用贴




"; $(".Sign_BtnTop")[2].innerHTML="签到完毕!";//显示签到完毕 return 0; }else{ $(".Sign_BtnTop")[1].innerHTML=(bai+1)+" / "+baObjs.length;//显示在签第几个 $(".Sign_MainDiv")[0].innerHTML+="
+"+(bai+1)+" ."+baObjs[bai].name+"吧"; } $.ajax({ type: "get",url: "http://tieba.baidu.com/f?kw="+baObjs[bai].kw+"&mmmm="+Math.random(), data: "",dataType: "text",success: function (data) { var rewords=data; var my_Rank=cutchar(rewords,"",""); var my_Days=cutchar(rewords,"c_sign_num : ",","); var my_AllDays=cutchar(rewords,"c_sign_num : ",","); var tbs=cutchar(rewords,"PageData.tbs = \"","\";"); if(cutchar(rewords,"PageData.user.is_block = ",";//是否已封禁")=="1"){ $(".Sign_MainDiv")[0].innerHTML+="--您在本吧被封禁,不能签到!---防和谐,等待1s ing..."; setTimeout("checksigned("+(bai+1)+");",1000); return 0; } if(rewords.indexOf("")<0){ $(".Sign_MainDiv")[0].innerHTML+="--本吧还没开放签到系统!---防和谐,等待1s ing..."; setTimeout("checksigned("+(bai+1)+");",1000); return 0; } if(my_Rank=="0"){ $(".Sign_MainDiv")[0].innerHTML+="--未签到!"; signed(bai,tbs); }else{ $(".Sign_MainDiv")[0].innerHTML+="--已签到!--今日第"+my_Rank+"个签到,连续"+my_Days+"天!---防和谐,等待1s ing..."; setTimeout("checksigned("+(bai+1)+");",1000); } return 0; }, error: function () { $(".Sign_MainDiv")[0].innerHTML+="---检查出现问题,重新检查!"; setTimeout("checksigned("+bai+");",1000); } }); } //对该贴吧进行签到 function signed(bai,tbs){ $.ajax({ type: "post", url: "http://tieba.baidu.com/sign/add", data: "kw="+encodeURIComponent(baObjs[bai].name)+"&ie=utf-8&tbs="+tbs, dataType: "text", success: function (data) { var rewords=eval('(' + data + ')'); if(rewords.error==""){ $(".Sign_MainDiv")[0].innerHTML+="--签到完毕,您是第"+rewords.data.uinfo.user_sign_rank+"个签到,连续"+rewords.data.uinfo.cont_sign_num+"天,共"+rewords.data.uinfo.cout_total_sing_num+"天!---防和谐,等待6s ing..."; var waittime=6000; } else{ $(".Sign_MainDiv")[0].innerHTML+="--"+eval('"'+rewords.error+'"')+"---防和谐,等待1s ing..."; var waittime=1000; } setTimeout("checksigned("+(bai+1)+");",waittime); }, error: function () { $(".Sign_MainDiv")[0].innerHTML+="签到出现问题,马上重签!"; signed(bai,tbs); } }); } function mark_cell(){//手机签到 var i=0;ba=0; var urlStr1; ajax.get("http://wapp.baidu.com/mo/q----sz%40240_320%2C,sz@320_240-1-3-0--2/m?tn=bdIndex&lp=7202", function(data){ var waite = setTimeout(function(){ ajax.get("http://wapp.baidu.com/mo/m?tn=bdFBW&tab=favorite", function(data){ pageStr=data.split("/m?kw"); urlStr1=cutchar(data,"/mo/","/m?"); for(var j=1;j",""); ba++; } document.getElementById("myli1").innerHTML="收集完毕!"; document.getElementById("myli2").innerHTML="0 / "+ba; var ret = setInterval(function(){ document.getElementById("myli2").innerHTML=(i+1)+" / "+ba document.getElementById("Sign_MainDiv").innerHTML+="
"; ajax.get("http://wapp.baidu.com/mo/"+urlStr1+"/m?kw="+baEN[i]+"&m="+Math.random(), function(data){ document.getElementById("Sign_MainDiv").innerHTML+=(i+1)+". "+baCH[i]+""; if(data.indexOf("已签到")>0) { document.getElementById("Sign_MainDiv").innerHTML+="--已签到!"; }else if(data.indexOf(">签到")>0){ document.getElementById("Sign_MainDiv").innerHTML+="--未签到!"; var urlStr2=cutchar(data,"/sign?","\"").replace(/&/gi,"&"); ajax.get("http://wapp.baidu.com/mo/"+urlStr1+"/sign?"+urlStr2, function(data){ if(data.indexOf("签到成功,经验值上升6")>=0) document.getElementById("Sign_MainDiv").innerHTML+="--签到,经验+6!"; else if(data.indexOf("签到成功,经验值上升5")>=0) document.getElementById("Sign_MainDiv").innerHTML+="--签到,经验+5!"; else if(data.indexOf("签到成功,经验值上升4")>=0) document.getElementById("Sign_MainDiv").innerHTML+="--签到,经验+4!"; else if(data.indexOf("签到成功,经验值上升3")>=0) document.getElementById("Sign_MainDiv").innerHTML+="--签到,经验+3!"; else if(data.indexOf("汗,操作未成功,麻烦再试一下下")>=0) document.getElementById("Sign_MainDiv").innerHTML+="--签到失败!操作未成功,请稍后再试!"; else if(data.indexOf("你在本吧被封禁不能进行当前操作")>=0) document.getElementById("Sign_MainDiv").innerHTML+="--被封禁,不能签到!"; else if(data.indexOf("零点时分,赶在一天伊始签到的人好多,亲要不等几分钟再来签吧~")>=0) document.getElementById("Sign_MainDiv").innerHTML+="--签到失败!零点时分,签到人数过多,请稍后再试!"; }); }else if(data.indexOf(">喜欢本吧")>0){ document.getElementById("Sign_MainDiv").innerHTML+="--未喜欢!"; var urlStr2=cutchar(data,"amp;itb_","\"").replace(/&/gi,"&"); ajax.get("http://wapp.baidu.com/mo/"+urlStr1+"/sign?"+urlStr2, function(data){ if(data.indexOf("签到成功,经验值上升6")>=0) document.getElementById("Sign_MainDiv").innerHTML+="--签到,经验+6!"; else if(data.indexOf("签到成功,经验值上升5")>=0) document.getElementById("Sign_MainDiv").innerHTML+="--签到,经验+5!"; else if(data.indexOf("签到成功,经验值上升4")>=0) document.getElementById("Sign_MainDiv").innerHTML+="--签到,经验+4!"; else if(data.indexOf("签到成功,经验值上升3")>=0) document.getElementById("Sign_MainDiv").innerHTML+="--签到,经验+3!"; else if(data.indexOf("汗,操作未成功,麻烦再试一下下")>=0) document.getElementById("Sign_MainDiv").innerHTML+="--签到失败!操作未成功,请稍后再试!"; else if(data.indexOf("你在本吧被封禁不能进行当前操作")>=0) document.getElementById("Sign_MainDiv").innerHTML+="--被封禁,不能签到!"; else if(data.indexOf("零点时分,赶在一天伊始签到的人好多,亲要不等几分钟再来签吧~")>=0) document.getElementById("Sign_MainDiv").innerHTML+="--签到失败!零点时分,签到人数过多,请稍后再试!"; }); }else if(data.indexOf("")>0){ document.getElementById("Sign_MainDiv").innerHTML+="--本吧还没开放签到系统!"; } i++; if(i==ba) { clearInterval(ret); document.getElementById("myli5").innerHTML="签到完毕!"; } }); },4000); },6000); }); }); } function deleteTag(id){ var my = document.getElementById(id); if (my != null) my.parentNode.removeChild(my); } function div_allHid(){ deleteTag("Sign_Body"); // location.href="http://adf.ly/LzLxo"; } function cutchar(allstr,prechar,endchar){ var preposition=allstr.indexOf(prechar)+prechar.length; var strlength=allstr.indexOf(endchar,preposition); return allstr.substring(preposition,strlength); } function Ajax(recvType) { var aj = new Object(); aj.recvType = recvType ? recvType.toUpperCase() : 'HTML';//HTML XML aj.targetUrl = '';//请求地址 aj.sendString = '';//发送的字符串 aj.resultHandle = null; aj.createXMLHttpRequest = function() {//创建ajax引擎对象 var request = false; //window对象中有XMLHttpRequest存在就是非IE,包括(IE7,IE8) if (window.XMLHttpRequest) { request = new XMLHttpRequest(); if (request.overrideMimeType) { request.overrideMimeType("text/xml"); } //window对象中有ActiveXObject属性存在就是IE } else if (window.ActiveXObject) { var versions = ['Microsoft.XMLHTTP', 'MSXML.XMLHTTP', 'Msxml2.XMLHTTP.7.0', 'Msxml2.XMLHTTP.6.0', 'Msxml2.XMLHTTP.5.0', 'Msxml2.XMLHTTP.4.0', 'MSXML2.XMLHTTP.3.0', 'MSXML2.XMLHTTP']; for (var i = 0; i < versions.length; i++) { try { request = new ActiveXObject(versions[i]); if (request) { return request; } } catch(e) { request = false; } } } return request; } aj.XMLHttpRequest = aj.createXMLHttpRequest();//获取ajax引擎对象 aj.processHandle = function() {//判断状态 if (aj.XMLHttpRequest.readyState == 4) { if (aj.XMLHttpRequest.status == 200) { if (aj.recvType == "HTML") aj.resultHandle(aj.XMLHttpRequest.responseText); else if (aj.recvType == "XML") aj.resultHandle(aj.XMLHttpRequest.responseXML); } } } aj.get = function(targetUrl, resultHandle) { aj.targetUrl = targetUrl; if (resultHandle != null) { aj.XMLHttpRequest.onreadystatechange = aj.processHandle; aj.resultHandle = resultHandle;//接收回调方法 } if (window.XMLHttpRequest) { aj.XMLHttpRequest.open("get", aj.targetUrl); aj.XMLHttpRequest.send(null); } else { aj.XMLHttpRequest.open("get", aj.targetUrl, true); aj.XMLHttpRequest.send(); } } aj.post = function(targetUrl, sendString, resultHandle) { aj.targetUrl = targetUrl; if (typeof(sendString) == "object") { var str = ""; for (var pro in sendString) { str += pro + "=" + sendString[pro] + "&"; } aj.sendString = str.substr(0, str.length - 1); } else { aj.sendString = sendString; } if (resultHandle != null) { aj.XMLHttpRequest.onreadystatechange = aj.processHandle; aj.resultHandle = resultHandle; } aj.XMLHttpRequest.open("post", targetUrl); aj.XMLHttpRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); aj.XMLHttpRequest.send(aj.sendString); } return aj; }