So I basically want to create a mini adblocker for a wesite. I have the snippet below which I can run in chrome and have a certain add removed. Is there a way to make it run automatically when the page is loaded?
var element = document.querySelector("[referrerpolicy='unsafe-url']");
element.parentNode.removeChild(element);