I'm trying to use tampermonkey to delete html elements from a list on a web page, but after ~0.5s, the remaining elements get half-overwritten -
Originally: [item 1 links to item 1, item 2 links to item 2, item 3 links to item 3]
For 0.5 seconds after my script everything is perfect: [item 2 links to item 2, item 3 links to item 3]
Then the elements get overwritten (even though the hover displays correctly): [item 2 links to item 1, item 3 links to item 2]
I'm assuming this is due to some script that is running in the background, but even if I try to remove all the scripts via:
// @run-at document-start: var scripts = document.getElementsByTagName('script'); for (var k = 0; k < scripts.length; k++) { scripts[k].setAttribute('src', 'asdf'); scripts[k].innerText = ""; scripts[k].innerHTML = ""; } There is still some sort of script running in the background that is overriding the default link... Is my script override buggy/not enough? Or is there a better approach to solving this?
<script>tags on the target page run?