Skip to content

Instantly share code, notes, and snippets.

@Zachu
Zachu / custom.js
Created May 27, 2022 10:10
Logseq relative namespace links
// https://github.com/cannibalox/logseq-custom-files/blob/3a3c7248921145965054f0eaf06b03282053d440/custom.js
// common =================================================================
MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
const watchTarget = document.getElementById("app-container");
// throttle MutationObserver
// from https://stackoverflow.com/a/52868150
const throttle = (func, limit) => {
let inThrottle;
return (...args) => {
if (!inThrottle) {

Keybase proof

I hereby claim:

  • I am Zachu on github.
  • I am zachu (https://keybase.io/zachu) on keybase.
  • I have a public key whose fingerprint is 4D66 0C6E 8E63 FD8A C8AB 2901 C41A 54FE 23D9 CFAF

To claim this, I am signing this object: