Skip to content

Instantly share code, notes, and snippets.

@t0qen
Created October 3, 2025 19:28
Show Gist options
  • Select an option

  • Save t0qen/171326958e85d39ee196cf9fe9e10c1f to your computer and use it in GitHub Desktop.

Select an option

Save t0qen/171326958e85d39ee196cf9fe9e10c1f to your computer and use it in GitHub Desktop.
// Remove spotlight button on snapchat.com
function removeElements() {
const elements = document.querySelectorAll('.kxqcc');
elements.forEach(el => el.remove());
if (elements.length > 0) {
console.log(`${elements.length} élément(s) avec la classe kxqcc supprimé(s)`);
}
}
removeElements();
const observer = new MutationObserver(() => {
removeElements();
});
observer.observe(document.body, {
childList: true,
subtree: true
});
console.log('Extension Snapchat Element Remover active');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment