Am 24.06.2011 19:41, schrieb Marek Mixa:
hi,
can anybody help me with greasemonkey? My Idea is simple: I want to
block some content on one webpage.
I used to do that this js as bookmarklet
$
('div[class^=ID1]').find('a:contains("IDENTIFIER")').parents('div[class^=ID1]').hide()
();
One friend sayd me, that i can run javascript through the greasemonkey
on every page on that sit. Because if I will use bookmarklet, I must
click on every page to block the content, so I want to block it on all
pages on the site
thanks for help....
marek
Hi Marek,
you're not really blocking the content, just hiding it. Looks like you
could rather transform this into an XPath and use Adblock Plus.
If that's a can't-do, try making the selector a path like for CSS and
use document.querySelector.
Chris
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/greasemonkey-users?hl=en.