# Firefox 4 broke wierdaaron's greasemonkey script!

**URL:** <https://boards.straightdope.com/t/firefox-4-broke-wierdaarons-greasemonkey-script/576075>\
**Category:** About This Message Board\
**Created:** [March 26, 2011, 6:50pm UTC](https://boards.straightdope.com/t/firefox-4-broke-wierdaarons-greasemonkey-script/576075 "2011-03-26T18:50:32Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![wierdaaron](https://avatars.discourse-cdn.com/v4/letter/w/eada6e/32.png) [@wierdaaron](https://boards.straightdope.com/u/wierdaaron)\
**Post date:** [April 1, 2011, 3:01pm UTC](https://boards.straightdope.com/t/firefox-4-broke-wierdaarons-greasemonkey-script/576075/23 "2011-04-01T15:01:53Z")

</div>

I uploaded the file on the server, but I didn’t push out an update notification because the “fix” technically breaks other things. If you have the original URL of where you installed the script, you can re-download it from there.

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [April 2, 2011, 8:36am UTC](https://boards.straightdope.com/t/firefox-4-broke-wierdaarons-greasemonkey-script/576075/24 "2011-04-02T08:36:19Z")

</div>

Is anyone else having problems with the overlay? You know, where you can click on the PDF or YouTube icons and the screen fade out with the file shown on top of everything else?

I’ve tweaked the script a bit, so it’s possible I screwed something up, but I didn’t mess with the “Link Awesomizer” code at all.

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [April 3, 2011, 9:32pm UTC](https://boards.straightdope.com/t/firefox-4-broke-wierdaarons-greasemonkey-script/576075/25 "2011-04-03T21:32:44Z")

</div>

I fixed line 90 where it doesn’t break the script by finding the window width a different way. Instead of using (window).width() (which throws an error that (window) is undefined) I used window.innerWidth.

This returns that portion of the script to prior behavior. I’m still looking into the overlay problem.

[Previous page](https://boards.straightdope.com/t/firefox-4-broke-wierdaarons-greasemonkey-script/576075.md?page=1)
