How can I select (from Tampermonkey script) all SPAN elements in current webpage which contain a property "foobar"?
The assigned value is unimportant.
So elements like the following should be matched:
<span aaa="bbb" foobar="23452345" .....>...</span>
I tried:
$('span[foobar^=""]').remove();
but it didn't work.
And
$('span').attr('foobar').remove();
didn't work either.