Skip to content

Instantly share code, notes, and snippets.

View billpetro's full-sized avatar

Bill Petro billpetro

View GitHub Profile
@ottsch
ottsch / add_favicons.js
Last active July 16, 2022 17:56
Add favicon to links in Roam Research
new MutationObserver(() => {
let filtered = Array.prototype.filter.call(
document.querySelectorAll(".roam-body a"),
(a) => {
return a.hostname && !a.hostname.includes("roamresearch.com");
}
);
Array.prototype.forEach.call(filtered, (a) => {
if (a.text == "*") {
a.style.background = `url(https://www.google.com/s2/favicons?sz=16&domain=${a.hostname}) right center no-repeat`;
@azlen
azlen / bulletpaths.js
Last active April 15, 2024 14:06
All Paths Lead to Roam
/*
* credit to Dhrumil Shah (@wandcrafting) and Robert Haisfield (@RobertHaisfield)
* for the original concept which was part of their RoamGames submission
* and can be found at: https://www.figma.com/file/5shwLdUCHxSaPNEO7pazbe/
*
*/
/* ======= OPTIONS ======== */
/* note: if you change these, reload the page to see the effect */
@sychou
sychou / main.js
Last active March 20, 2024 20:14
Task Processor Obsidian Plugin
/*
Task Processor Plugin for Obsidian
To use this plugin:
1. Create a directory named "task-proc" under your vault plugin directory
(e.g. .obsidian/plugins/task-proc)
2. Copy this file (main.js) and manifest.json to the "task-proc" directory
*/