New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select all SPAN elements which contain a "foobar" property? If possible with jQuery #2014
Comments
To use // @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js or use document.querySelectorAll(). |
Yes, I already added: // @require http://code.jquery.com/jquery-latest.js So this is not the problem/solution |
It's more ancient than mammoths. |
It seems to work. Can you provide an entire minimal userscript where it doesn't work? |
Hmm, interesting. However your suggested cloudflare URL contains a version number ("v3.2.1") |
here you can choose a link with a loose version https://www.jsdelivr.com/package/npm/jquery but it seems something is wrong with your environment and jQuery cannot define |
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.
The text was updated successfully, but these errors were encountered: