Script Summary: Forces gift and other requests on the Facebook notifications/requests page to open in a new window (or tab depending on browser settings). Helps minimize having to use the back button to answer multiple requests.
*** UPDATED 11/22/2009 for new Facebook code.
Buttons on the Facebook requests page annoyingly open in the same browser window. When there are multiple requests, the user has to go back to the request page to answer each one. This script forces most request buttons to open a new window or tab, depending on the browser's settings. The script modifies the onclick event for Facebook request buttons. Modified buttons will have " - New Window" added to them (see the example below).
***REQUEST PAGE MUST FULLY LOAD BEFORE CLICKING REQUESTS!*** The userscript updates the request buttons after the page is loaded. If you have many requests on your page, wait until the page has fully loaded.
I use the Tab Mix Plus extension in Firefox to ensure that new windows open in a new tab while the focus stays on the current tab.
Using this script, the Facebook request page states that the request was ignored, but apps acknowledge the confirmation. I believe the ignored response is a default behavior when the url element of Facebook's response string is null.