Redirection of amazon mobile links (incl. mobile offer (Marketplace)) to amazon desktop

Redirects Amazon mobile links to the desktop version (for all countrys)

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Redirection of amazon mobile links (incl. mobile offer (Marketplace)) to amazon desktop
// @namespace    ExtraFlauschig.amazon
// @version      1.1
// @description  Redirects Amazon mobile links to the desktop version (for all countrys)
// @author       ExtraFlauschig
// @include      http://www.amazon.*/gp/aw/*
// @include      http://amazon.*/gp/aw/*
// @include      https://www.amazon.*/gp/aw/*
// @include      https://amazon.*/gp/aw/*
// @grant        none
// @run-at       document-start
// ==/UserScript==
window.location.toString().includes("/gp/aw/d/")? window.location.assign(window.location.toString().replace("/gp/aw/d/", "/dp/")) : window.location.assign(window.location.toString().replace("/gp/aw/ol/", "/gp/offer-listing/"));