Skip to content

Instantly share code, notes, and snippets.

View quantuminformation's full-sized avatar
💭
Podcasting, Firebase, Svelte

Nikos quantuminformation

💭
Podcasting, Firebase, Svelte
View GitHub Profile
@quantuminformation
quantuminformation / discord_block_list.md
Last active May 9, 2025 06:20
Discord Automod spam custom words
@quantuminformation
quantuminformation / getUniqueQueryPathToDomEventTarget
Created July 18, 2015 19:41
Get unique query selector for element
/**
*
* @param e event from the DOM that we want to workout the testing path.
*/
getUniqueQueryPathToDomEventTarget: function (e) {
let hasEmberIdRegex = /ember[\d]+/;
if (e.target.id && !hasEmberIdRegex.test(e.target.id)) {
return "#" + e.target.id;
} else {
let path = e.path.reverse().slice(2); //remove the window and document path sections