Author Topic: Greasemonkey Scripts  (Read 326 times)


  • Administrator
  • Platinum Level
  • *****
  • Posts: 4758
  • Have you played my board game?
    • Rival Troops
Greasemonkey Scripts
« on: December 28, 2021, 12:08:11 »
I'm going to use this thread to keep track of my favorite Greasemonkey Scripts that were written by other people.

Of course, if you're here looking for Greasemonkey Scripts, you might also be interested in one I wrote for the Homeworlds game on Go to for that one.

Now, back to my list of scripts by other people ...

AmazonSmile Redirect

I like this script because I've been using Amazon Smile to help support my kids' school and I've often forgotten to use the correct URL before, just going to instead of This takes care of the redirect, so that even when I go to make a quick purchase from Amazon, the school is still getting credit.


Code: [Select]
// ==UserScript==
// @name        AmazonSmile Redirect
// @namespace
// @description Redirect Amazon to AmazonSmile
// @include     http://*.amazon.*/*
// @include     https://*.amazon.*/*
// @version     0.6
// @grant       none
// @run-at document-start
// ==/UserScript==
var url =;
if (url.match("") === null) {
    url = window.location.href;
    if  (url.match("//") !== null){
        url = url.replace("//", "//");
    } else if (url.match("//amazon.") !== null){
        url = url.replace("//amazon.", "//");
    } else {
"Hello IT. Have you tried turning it off and on again? ... OK, well, the button on the side. Is it glowing?... Yeah, you need to turn it on. Err, the button turns it on. Yeah, you do know how a button works, don't you? No, not on clothes." - Roy (The IT Crowd)