ASafaeirad – Telegram
ASafaeirad
439 subscribers
190 photos
13 videos
2 files
265 links
My personal works, which I hope you like. contact @S_Kill
Download Telegram
Bases
We have a new core plugin in Obsidian that can act as a database

https://help.obsidian.md/bases

#obsidian #news
🔥8🎉3
👍5👎3🎉1
TIL:
You can listen for attribute changes on a DOM element using a MutationObserver.
In my case, I needed to inspect a DOM element during a transient state that changed too quickly to catch manually.
Using DOM breakpoints wasn't helpful since the element was updated too frequently.
The solution was to use a MutationObserver to trigger specifically when a certain attribute changed.


const observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
if (
mutation.type === "attributes" &&
mutation.attributeName === "my-attribute") {
debugger;
}
});
});

observer.observe(element, { attributes: true });


#til
7👍3🔥1🤯1
4🔥1🎉1
Zoo.js
An overview of 127 JavaScript engines.

https://zoo.js.org/

#javanoscript #engine
5👍2🎉1
Mediabunny
A JavaScript library for reading, writing, and converting video and audio files. Directly in the browser, and faster than anybunny else.

#tool #video
🔥51