I am currently using the Chrome console to do some debugging for a Greasemonkey script.
From the console I run var opp = document.querySelectorAll('a[class="F-reset"]');
and it works as expected.
But if I try to remove the first element with opp.splice(0,1)
I get the following error
Uncaught TypeError: opp.splice is not a function
at <anonymous>:2:5
at Object.InjectedScript._evaluateOn (<anonymous>:905:140)
at Object.InjectedScript._evaluateAndWrap (<anonymous>:838:34)
at Object.InjectedScript.evaluate (<anonymous>:694:21)
If I try to run opp[0].indexOf("a")
, i get the same thing.
How would I fix this?