Amazon Smile Redirect

Redirect from amazon to smile.amazon, support helpful organizations

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name             Amazon Smile Redirect
// @name:de          Amazon Smile Weiterleitung
// @namespace        http://amazon.com/
// @version          1.0.1
// @run-at           document-start
// @description      Redirect from amazon to smile.amazon, support helpful organizations
// @description:de   Leite automatisch von amazon zu smile.amazon weiter und unterstütze gemeinnützige Organisationen
// @author           Wolvan
// @icon             https://smile.amazon.com/favicon.ico
// @include          *://www.amazon.tld/*
// @grant            none
// ==/UserScript==

(function() {
    'use strict';

    var windowUrl = window.location.href;

    if (windowUrl.toLowerCase().indexOf("smile.") === -1) {
        console.log("Doing redir");
        window.location.href = windowUrl.replace("www.amazon", "smile.amazon");
    }
})();