Update BraveScriptlets/fuck-twitter-promote-buttons.js

This commit is contained in:
Patrick Smith 2025-02-07 22:27:24 +00:00
parent 47bad52e81
commit 845fafe116

View File

@ -1,7 +1,7 @@
// Add this line to "Create Custom Filters" box: // Add this line to "Create Custom Filters" box:
// x.com##+js(fuck-twitter-promote-buttons.js) // x.com##+js(fuck-twitter-promote-buttons.js)
const callback = (mutationList, observer) -> { const callback = (mutationList, observer) => {
const walker = document.createTreeWalker( const walker = document.createTreeWalker(
document.documentElement, document.documentElement,
NodeFilter.SHOW_TEXT, null, false); NodeFilter.SHOW_TEXT, null, false);