Skip to content

Instantly share code, notes, and snippets.

@Cnzw
Cnzw / upstream.yml
Last active December 23, 2024 08:57
拉取上游更新并 PR
# .github/workflows/upstream.yml
name: Upstream PR
on:
schedule:
- cron: "0 6 * * *"
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
@Cnzw
Cnzw / Bilibili_批量取关.js
Last active December 23, 2024 07:29
Bilibili 批量取关
$(".be-dropdown-item:contains('取消关注')").click();
@Cnzw
Cnzw / Bilibili_输出关注列表.js
Last active December 23, 2024 07:29
Bilibili 输出关注列表
console.log(` 序号 ID 昵称 关注时间戳(s) 截止时间戳(ms) `) // 列表全部字段
let putData = () => {
for (let num = 0; num < 20; num++) {
let data0 = { name: $('.fans-name')[num].innerHTML, id: $('.up-cover-components').eq(num).attr('href').match(/\/\/space.bilibili.com\/(\d+)/)[1] } // ID用户名
let data2 = $.ajax({ url: `https://api.bilibili.com/x/relation?fid=${data0.id}&jsonp=jsonp&callback`, async: false, xhrFields: { withCredentials: true } }) // 关注时间戳
@Cnzw
Cnzw / 方正教务_教学评价一键勾选.js
Last active December 23, 2024 07:30
方正教务 教学评价 一键勾选
$('table:nth-child(2) > tbody > tr:nth-child(1) > td:nth-child(2) > div > div:nth-child(1) > label > input').click();
$('table:nth-child(2) > tbody > tr:nth-child(2) > td:nth-child(2) > div > div:nth-child(1) > label > input').click();
$('table:nth-child(2) > tbody > tr:nth-child(3) > td:nth-child(2) > div > div:nth-child(1) > label > input').click();
$('table:nth-child(2) > tbody > tr:nth-child(4) > td:nth-child(2) > div > div:nth-child(1) > label > input').click();
$('table:nth-child(2) > tbody > tr:nth-child(5) > td:nth-child(2) > div > div:nth-child(1) > label > input').click();
$('table:nth-child(2) > tbody > tr:nth-child(6) > td:nth-child(2) > div > div:nth-child(1) > label > input').click();
$('table:nth-child(2) > tbody > tr:nth-child(7) > td:nth-child(2) > div > div:nth-child(1) > label > input').click();
$('table:nth-child(2) > tbody > tr:nth-child(8) > td:nth-child(2) > div > div:nth-child(1) > label > input').click();
$('table:nth-child(2) > tbody > tr:nth-child(9) > td:nth-child(2) > div > div:nt