On 10/17/2010 3:52 AM, Giorgos Tzampanakis wrote:
I'm writing some scripts to eliminate annoying elements from websites, by
finding them using their id and then removing them. My problem is that
the removed elements are first loaded, drawn on the screen and then
removed. Is it possible to eliminate elements before they are drawn?

Today, with Greasemonkey: no. There is 100% agreement that running scripts earlier would be nice, and there has been some recent promising work in that direction.

Even if it were done though, javascript still would not be able to accomplish this. In order to find the elements by ID, they must be first loaded. The closest you can come is:
http://wiki.greasespot.net/DOMContentLoaded#Flicker
IMO it's not worth the effort. Or, if it's always literally an ID (or via an other reliable CSS selector), you can simply rely on user styles to force them to never show, with no need for a script at all.

--
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.

Reply via email to