Skip to content

Instantly share code, notes, and snippets.

@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`;
@ciceronianus
ciceronianus / Roam-sup-and-sub.css
Last active September 16, 2020 08:49
Roam - sup and sub :)
/*
Author:: @CatoMinor3
Version:: 1
Date:: June 8th, 2020
PayPal support: https://www.paypal.me/catominor3
How to use it: Write #sup or #sub and then use ^^higlight^^
*/