您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
移除了置顶主题,一天内发布的新帖蓝框标记显示,自动签到
当前为
// ==UserScript== // @name 看雪论坛优化显示+自动签到 // @description 移除了置顶主题,一天内发布的新帖蓝框标记显示,自动签到 // @namespace http://greasyfork.icu/zh-CN/users/78403 // @version 2019.1.1 // @author jsgod // @icon https://www.pediy.com//favicon.ico // @match https://bbs.pediy.com/* // @grant GM_setValue // @grant GM_getValue // @require http://libs.baidu.com/jquery/2.0.0/jquery.min.js // @run-at document-end // ==/UserScript== (function () { //========================================================================================= $('.thread.top_1').remove(); $('.thread.top_2').remove(); $('.thread.top_3').remove(); $('.thread').each(function (i, item) { var timeSpan = $(this).find("span.date.text-grey"); if (timeSpan) { var timestr = timeSpan.html(); if (!timestr) { } else if ( timestr.includes("小时前") || timestr.includes("分钟前")) { $(this).css({ "color": "blue", "border": "2px solid blue" }); } } }); //========================= 自动签到一下================================================================ q签到(); function q签到() { var curday = new Date().toLocaleDateString(); if (curday == localStorage.pediy签到) { } else { $.post('user-signin.htm', function (code, message) { console.log("执行签到返回", code, message); localStorage.pediy签到 = curday; }); } } //========================================================================================= })();