Skip to content

Instantly share code, notes, and snippets.

View ottsch's full-sized avatar
🦌

ottsch ottsch

🦌
  • kulturinventur
  • Berlin, Germany
View GitHub Profile
Verifying that +martenmuehlenstein is my blockchain ID. https://onename.com/martenmuehlenstein
Verifying my Blockstack ID is secured with the address 1Ed5rDp5p7KvAgx8B5g87aR39VjMGPh6SH https://explorer.blockstack.org/address/1Ed5rDp5p7KvAgx8B5g87aR39VjMGPh6SH
@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`;
@ottsch
ottsch / sortable_sidebar.js
Last active August 30, 2020 12:38
Sortable items in Roam's right sidebar
let sortableSidebar = null;
(function(d, script) {
script = d.createElement('script');
script.type = 'text/javascript';
script.src = 'https://raw.githack.com/SortableJS/Sortable/master/Sortable.js';
script.async = true;
script.onload = function() {
const observer = new MutationObserver(() => {
if (document.body.contains(document.getElementById("roam-right-sidebar-content"))) {