Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View hpmartini's full-sized avatar

Hans-Peter Martini hpmartini

View GitHub Profile
const initialText = document.getElementsByClassName('notion-callout__content')[0].getElementsByTagName('h1')[0].getElementsByTagName('strong')[0].innerHTML;
const firstWord = initialText.split(' ')[0];
let rotatorReference = document.getElementsByClassName('notion-callout__content')[0].getElementsByTagName('h1')[0].getElementsByTagName('strong')[0]
const rotatorWord = document.createElement('span')
rotatorWord.innerHTML = 'placeholder'
rotatorReference.appendChild(rotatorWord)
### Keybase proof
I hereby claim:
* I am h2p3m on github.
* I am hpm (https://keybase.io/hpm) on keybase.
* I have a public key ASB_5K098s8YQKKyeYFyPcIwTxeABRfC75DnK92jYMTM0go
To claim this, I am signing this object: