[Greasemonkey] Passing information to other pages
lmnopc at lmnopc.com
Sun Jul 3 23:41:16 EDT 2005
GM_getValue and GM_setValue would also work well and are easy to
The only tricky part is handling situations where someone would be
interested in doing multiple searches at once using the script. You'll
need something tricky to know which search the current one is a part of.
Shaun Etherton wrote:
>On Sun, 2005-07-03 at 15:51 -0700, Jason Diamond wrote:
>>I just whipped up a script that modifies eBay to allow my wife to click
>>on a "Next item" link on a page to take her to the next item in the list
>>of items returned from the last search she made.
>>In order to get this to work, each item page needs to "know" what the
>>next item in the search results is but that information's not available
>>there on the item page. So I modified the links in the search results to
>>the item pages to "pass" that information to the item pages by appending
>>a query string parameter to the URL. The item pages then look for that
>>parameter and, if found, render an appropriate "Next item" link.
>>It seems to be working exactly the way she wants it to work but I was
>>wondering if this was the best way to share information between pages.
>>Since the query string parameters are being sent to eBay with each
>>request, they could decide to "break" this script if they were so inclined.
>>Are there any other techniques that can be used to pass information to
>>other pages using Greasemonkey or is this a reasonable approach? I'm new
>>to writing user scripts (this is only my second) so thought I'd poll the
>>list to see if they had any better ideas.
More information about the Greasemonkey