views:

26

answers:

1

Hey,

I want to pop up an image or a div/class from a website into a window with Greasemonkey, how can I do it?

For example, I want to pop up the stackoverflow logo to a small window (the size of the logo) when I enter the site.

A: 

I think you'll want to use window.open, which will open a new window whose size you can dictate.

Erik Vold
Actually, it's not a window that I want to open. How can I explain... I want to open a little window only with the content wanted, but not a new window of the browser, just a little popup window
Shady
ah I see, [these are some solutions using jQuery](http://line25.com/articles/rounding-up-the-top-10-jquery-lightbox-scripts), and you can [include jquery in a userscript with @require](http://wiki.greasespot.net/Third-Party_Libraries).
Erik Vold