Skip to content

Instantly share code, notes, and snippets.

@Gkjsdll
Last active December 27, 2021 06:49
Show Gist options
  • Save Gkjsdll/376ac4bcc185de47690dff99e000377c to your computer and use it in GitHub Desktop.
Save Gkjsdll/376ac4bcc185de47690dff99e000377c to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Amazon Smile Redirect
// @namespace http://tampermonkey.net/
// @version 2.1.1
// @description Redirect from www.amazon.com to smile.amazon.com
// @author Gkjsdll (zackwinchell@gmail.com)
// @match *://www.amazon.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
(function() {
'use strict';
location.href = location.href.replace('www.amazon', 'smile.amazon');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment