I tried to access the DOM for a webpage but I cannot do DOM maniplulation by external javascript codes, (addon or chromium extension) This code works on console page when webpage is open, but does not work as a extension. Could you please help me work this code as a extension
document.getElementById('fb').remove() document.getElementsByTagName('twr-comments')[0].remove() console.log("WORKED!"); console.log('DOM fully loaded and parsed');