Forked from orderthruchaos/smile_amazon_com.user.js
Last active
November 16, 2019 13:32
-
-
Save nzbr/d5e8339c0e2a73c4f9d480a10ddb6989 to your computer and use it in GitHub Desktop.
Greasemonkey User Script: ensure that you are on smile.amazon.com. (Fork for amazon.de)
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 smile_amazon_de | |
// @namespace http://orderthruchaos.bitbucket.org/ | |
// @copyright 2015+, Brett DiFrischia | |
// @license | |
// @description Always remember to smile! | |
// @grant GM_log | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js | |
// @include http://www.amazon.de/* | |
// @include https://www.amazon.de/* | |
// @include http://amazon.de/* | |
// @include https://amazon.de/* | |
// ==/UserScript== | |
this.$J = this.jQuery = jQuery.noConflict(true); | |
( | |
function () { | |
var on_load = function () { | |
var go2 = location.href.replace( | |
/(https?:\/\/)(www\.)?amazon\.de/i, | |
'$1smile.amazon.de' | |
); | |
location.href = go2; | |
}; | |
$J(on_load); | |
} | |
)(); | |
// vim: sts=2 sw=2 ts=8 et |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment