Skip to content

Instantly share code, notes, and snippets.

Avatar
🦌

ottsch ottsch

🦌
  • kulturinventur
  • Berlin, Germany
View GitHub Profile
@ottsch
ottsch / sortable_sidebar.js
Last active Aug 30, 2020
Sortable items in Roam's right sidebar
View sortable_sidebar.js
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"))) {
@ottsch
ottsch / add_favicons.js
Last active Jul 16, 2022
Add favicon to links in Roam Research
View add_favicons.js
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`;
View gist:4e14bf4d09facbacc74cbcb09823faf5
Verifying my Blockstack ID is secured with the address 1Ed5rDp5p7KvAgx8B5g87aR39VjMGPh6SH https://explorer.blockstack.org/address/1Ed5rDp5p7KvAgx8B5g87aR39VjMGPh6SH
View gist:c6319026e0fbe83d1c3ed3633885881a
Verifying that +martenmuehlenstein is my blockchain ID. https://onename.com/martenmuehlenstein