Greasy Fork

Greasy Fork is available in English.

学习通挂后台不赞停&&百度贴吧自动签到

打开脚本刷新一下

当前为 2024-04-08 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         学习通挂后台不赞停&&百度贴吧自动签到
// @namespace    http://tampermonkey.net/
// @version      2024-03-14
// @description  打开脚本刷新一下
// @author       贴吧id o.p._p qq:2489564719
// @match        https://tieba.baidu.com/*
// @match        https://mooc1.chaoxing.com/mooc-ans/mycourse/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=greasyfork.org
// @grant        none
// @license      All Rights Reserved
// ==/UserScript==

const url="https://tieba.baidu.com";let a,index=0;function post1(){for(let e=1;e<a+1;e++)console.log("开始执行"),$.post(`${url}/f/like/mylike?&pn=${e}`).then(e=>{const t=document.createElement("iframe");document.body.insertBefore(t,document.querySelector("#com_userbar")),window.concernList=new Set;const o=new MutationObserver(()=>{const e=t.contentDocument.querySelectorAll(".forum_table tr:not(.forum_table tr:nth-child(1))");if(e[0]){for(let t of e)concernList.add(t.querySelector("a[title]").title);for(let e of concernList)setTimeout(()=>{$.get("https://tieba.baidu.com/dc/common/tbs",function(t){$.post(`${url}/sign/add`,{kw:`${e}`,ie:" utf-8",tbs:`${JSON.parse(t).tbs}`})})},1500*index++);t.remove(),o.disconnect()}});o.observe(t.contentDocument,{childList:!0,subtree:!0}),t.contentWindow.document.write(e)})}$.post(`${url}/f/like/mylike?v=${(new Date).getTime()}`,{v:`${(new Date).getTime()}`}).then(e=>{const t=document.createElement("iframe");document.body.insertBefore(t,document.querySelector("#com_userbar"));const o=new MutationObserver(()=>{const e=t.contentDocument.querySelectorAll(".forum_table tr:not(.forum_table tr:nth-child(1))");e[0]&&(console.log(e),a=+t.contentDocument.querySelector("#j_pagebar > div > a:nth-child(4)").getAttribute("href").slice(t.contentDocument.querySelector("#j_pagebar > div > a:nth-child(4)").getAttribute("href").lastIndexOf("=")+1),t.remove(),o.disconnect())});o.observe(t.contentDocument,{childList:!0,subtree:!0}),t.contentWindow.document.write(e),console.log("找到a了"),setTimeout(function(){post1()},3e3)});
window._addEventListener=window.addEventListener,window.out=function(e,n){"mouseout"!=e?_addEventListener(e,n):console.log("谁敢拦我")},Object.defineProperty(window,"addEventListener",{get:()=>out,set(){}});