Last active
April 23, 2018 03:35
-
-
Save kkirby/8ffcf2ac4bb9fd37cedcef3437ae5869 to your computer and use it in GitHub Desktop.
Amazon Smile Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name amazon smile | |
// @namespace http://aploiki.com | |
// @version 0.1 | |
// @description Autoswitch to amazon smile. | |
// @author Kyle | |
// @match *://*.amazon.com/* | |
// @match *://amazon.com/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
if(window.location.hostname === 'www.amazon.com' || window.location.hostname === 'amazon.com'){ | |
window.location.hostname = 'smile.amazon.com'; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment