https://github.com/actions/setup-java#caching-packages-dependencies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .github/workflows/upstream.yml | |
| name: Upstream PR | |
| on: | |
| schedule: | |
| - cron: "0 6 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(".be-dropdown-item:contains('取消关注')").click(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 } }) // 关注时间戳 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('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 |