Fixing WordPress “Press It” for FireFox 0.9

While trying to use the Press It! bookmarklet with FireFox 0.9, I got the following error :

Deprecated method document.getSelection() called. Please use window.getSelection() instead.

So I fixed the bookmarklet to be :

...createRange().text:window.getSelection();}void(window.open('http://...
where it said
...createRange().text:document.getSelection();}void(window.open('http://...

(changed document.getSelection() to window.getSelection() )

To fix yours, if you are using FireFox 0.9, right click on you Press It bookmarklet in the BookMarks toolbar, click on “Properties” and edit the code as I did above in the “Location” field.

This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

7 Responses to Fixing WordPress “Press It” for FireFox 0.9

  1. Podz says:

    Many thanks !

  2. talboito says:

    Good eyes, its probably best to use the freshest code.

    The bookmarklet still works correctly for me though. It merely throws a warning I viewable in the javacript console.

  3. MaThIbUs says:

    Thanks a lot!

  4. Indranil says:

    I use Firefox 0.9, and I don’y face the problem. Is there something wring?

  5. Carthik says:

    Depending on your settings in Firefox, it may be that you only get a warning in Tools -> Javascript Console.
    Mine stopped working. Check the javascript console for warnings/errors to see the problem.

  6. Pingback: CaiLog :: about Life Science » Blog Archive » Fixing WordPress Press It for FireFox 0.9

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>