Greasy Fork is available in English.

自用论坛辅助签到

常用论坛辅助签到工具,包括远景论坛、天使动漫论坛、52破解、TTG、卡饭等

< Opinie na 自用论坛辅助签到

Ocena: Dobry - skrypt działa

§
Napisano: 28-04-2020
Edytowano: 22-05-2020

求加P9和HDC

瞎JB写了下、然并卵、并不click= = 求大佬出手

P9 签到前:<a href="javascript:void(0)" onclick="qidao(this);" class="yuan" style="background-color:#3890ff">签</a> 签到后:<a href="javascript:void(0)" onclick="qidao(this);" class="yuan" style="background-color: rgb(56, 144, 255); display: none;">签</a>

HDC 签到前:<a class="label label-default" href="#" onclick="do_signin(this);"><b>签 到</b></a> 签到后:<a class="label label-default" href="#">已签到</a>

§
Napisano: 17-05-2020

@Sneer 说道: 瞎JB写了下、然并卵、并不click= = 求大佬出手

P9 签到前: 签到后:

HDC 签到前:签 到 签到后:已签到

不好意思刚看到,问题是我没有这两个站的账号,而且注册都有门槛,算是没法注册,所以没法进行调试。。。

§
Napisano: 22-05-2020

@xxooyy 说道:

@Sneer 说道: 瞎JB写了下、然并卵、并不click= = 求大佬出手

P9 签到前: 签到后:

HDC 签到前:签 到 签到后:已签到

不好意思刚看到,问题是我没有这两个站的账号,而且注册都有门槛,算是没法注册,所以没法进行调试。。。

额、有这签到相关代码也整不了吗·· 实在不行P9的帐密可以发你试试··

§
Napisano: 22-05-2020

@Sneer 说道:

@xxooyy 说道:

@Sneer 说道: 瞎JB写了下、然并卵、并不click= = 求大佬出手

P9 签到前: 签到后:

HDC 签到前:签 到 签到后:已签到

不好意思刚看到,问题是我没有这两个站的账号,而且注册都有门槛,算是没法注册,所以没法进行调试。。。

额、有这签到相关代码也整不了吗·· 实在不行P9的帐密可以发你试试··

你改好密码,用站内信发我吧,我在这儿盲猜效率不高。

§
Napisano: 22-05-2020

@Sneer 说道:

@xxooyy 说道:

@Sneer 说道: 瞎JB写了下、然并卵、并不click= = 求大佬出手

P9 签到前: 签到后:

HDC 签到前:签 到 签到后:已签到

不好意思刚看到,问题是我没有这两个站的账号,而且注册都有门槛,算是没法注册,所以没法进行调试。。。

额、有这签到相关代码也整不了吗·· 实在不行P9的帐密可以发你试试··

// ==UserScript==
// @name         自用论坛辅助签到
// @namespace    bbshelper
// @version      1.1.5
// @description  常用论坛辅助签到工具,包括远景论坛、天使动漫论坛、52破解、TTG、卡饭等
// @author       Eva
// @include      http*://u2.dmhy.org/*
// @include      http*://*.pcbeta.com/*
// @include      http*://www.tsdm*.*/*
// @include      http*://totheglory.im/*
// @include      http*://www.52pojie.cn/*
// @include      http*://bbs.kafan.cn/*
// @include      http*://www.natfrp.com/*
// @include      http*://www.cordcloud.*/*
// @include      http*://zodgame.xyz/*
// @include      http*://o2v3.imotor.com/*
// @include      http*://psnine.com/*
// @grant        unsafeWindow
// @grant        GM_getValue
// @grant        GM_setValue
// @grant        GM.deleteValue
// @require      https://code.jquery.com/jquery-latest.min.js
// @run-at       document-end
// ==/UserScript==

(function() {


    //P9
    if (matchURL("psnine.com")) {
        console.log('pre');
        console.log('length',$('a[onclick="qidao(this);"]').length)
        console.log('element',$('a[onclick="qidao(this);"]'))
        if($('a[onclick="qidao(this);"]').length > 0 && !$('a[onclick="qidao(this);"]').css('display') == 'none'){
            console.log('start');
            $('a[onclick="qidao(this);"]')[0].click();
            console.log('done');
        }
    }

    function qd(checkElement,emoji){
        if(matchURL('dsu_paulsign:sign')){
            if (window.find("今天签到了吗") && window.find("写下今天最想说的话")) {
                $("#"+emoji).attr('checked',true);
                $("#todaysay").val("每天签到水一发。。。");
                $("#qiandao").submit();
            }
        }else if(window.find(checkElement)){
            window.location.href = "plugin.php?id=dsu_paulsign:sign";
        }
    }

    //比较日期大小
    function compareDate(date1, date2) {
        var d1 = new Date(date1);
        var d2 = new Date(date2);
        if (d1.getTime() > d2.getTime()) {
            return true;
        } else {
            return false;
        }
    }

    //获取分割后的最后的文本
    function getLastText(text,separtor){
        var arr = text.split(separtor);
        return arr[arr.length - 1];
    }

    function getStorageData() {
        var data = GM_getValue('BBSSignHelperData');
        if(!data){
            data = {};
        }
        return data;
    }

    function getData(key) {
        var data = getStorageData();
        return data[key];
    }

    function setData(key,value) {
        var data = getStorageData();
        data[key] = value;
        return GM_setValue('BBSSignHelperData', data);
    }

    function deleteStorageData() {
        GM.deleteValue("BBSSignHelperData");
    }

    function matchURL(x){
        return window.location.href.indexOf(x) != -1;
    }
})();

先尝试一下,注意看控制台输出。

Odpowiedz

Zaloguj się, by odpowiedzieć.