This file contains 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
const twentyFiveMinutesAgo = Date.now() - (25 * 60 * 1000); | |
const YOUR_OPENAI_API_KEY = '' | |
const blocks = window.roamAlphaAPI.q(`[ | |
:find ?text | |
:where | |
[?e :block/string ?text] | |
[?e :edit/time ?time] | |
[(> ?time ${twentyFiveMinutesAgo})] | |
]`); |
This file contains 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
.rm-level-0 { | |
counter-reset: top-counter; | |
} | |
.rm-level-0 > .roam-block-container:before { | |
counter-increment: top-counter; | |
content: counter(top-counter); | |
visibility: hidden; | |
height: 0; | |
} |
This file contains 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
body { | |
font-feature-settings: inherit; | |
} |
This file contains 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
.page-detail .detail-main-content .left-area.normal { | |
flex-direction: row-reverse; | |
} | |
.page-detail .detail-main-content .left-area.normal .player-box.loaded-data { | |
min-width: 60%; | |
} |
This file contains 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
document.querySelectorAll('.danmaku-info-row').forEach(e => console.log(e.innerText)) |
This file contains 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
/* | |
------------------------------ | |
trans timestamp in bilibili-note | |
thanks to @Note必利阀 [让b站视频笔记回归b站,本地obsidian太孤单了_哔哩哔哩_bilibili](https://www.bilibili.com/video/BV17B4y1y7Ut) | |
------------------------------ | |
main | |
- trans text timestamp into original time click button | |
- usage: | |
- open bilibili note editor | |
- set at least one time button in editor |
This file contains 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
copy( | |
[...document.querySelectorAll(".p-right-area")] | |
.map((e) => { | |
const highlights = e.querySelectorAll(".highlight-background"); | |
if (highlights.length === 0) { | |
return; | |
} | |
const timestamp = e.querySelector(".p-time").getAttribute("time-content"); | |
const highlight = [...highlights].map((e) => e.textContent).join(""); | |
return `${timestamp} ${highlight}`; |
This file contains 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
return "hook://file/6ZVuhkgqj?p=QXBwbGljYXRpb25zL0Nocm9tZSBBcHBzLmxvY2FsaXplZA==&n=Roam%20Research%2Eapp" |
This file contains 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
{ | |
"msg_type": "interactive", | |
"card": { | |
"config": { | |
"wide_screen_mode": true, | |
"enable_forward": true | |
}, | |
"elements": [{ | |
"tag": "div", | |
"text": { |
NewerOlder