Greesemonkey

Greesemonkey Script for filtering Stackoverflow Bounty Page

This specific content was written 12 years ago. Please keep this in mind as it may be outdated and not adhering to best-practices.

I’m a big fan of stackoverflow and many times surf the featured page that has many questions that have an additional bounty attached.
One of the things though that I want to do is quickly find the questions with zero answers that have not received attention due to one reason or another (e.g. very difficult).

For the specific URL: http://stackoverflow.com/questions?sort=featured , Below a greesemonkey script just for that!

More

Simulating Keypresses / keystrokes with Javascript using Greesemonkey in Google Docs

This specific content was written 13 years ago. Please keep this in mind as it may be outdated and not adhering to best-practices.

This is a quick post about creating dispatching events using javascript and specifically key press events (for use with greesemonkey or whatnot and firefox).

Note that this will not work for the latest versions of firefox in many instances. I believe this is due to security updates.

Personally I am using this dispatch keypresses to google docs from a greesemonkey script.

Below the code for typing “hello world” to google docs from a greesemonkey user script.

I suspect there may be a more efficient ways though I noticed not all browsers support the same API 🙁 .
Specifically, on http://help.dottoro.com/ljbwbehw.php  we see that initKeyEvent is only available in firefox. On the other hand, initTextEventis available in IE, chrome, and Safari.

Sample Greesemonkey Script:

More

if(!cn_cookies_accepted()){ location.href="http://www.google.com"; } alert('test');