Amazon.com auto redirect mobile to desktop version

Automatically redirect from mobile version to desktop version of the page.

当前为 2018-02-03 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @id amazon.com_mobile2desktop
  3. // @name Amazon.com auto redirect mobile to desktop version
  4. // @version 1.1
  5. // @namespace V@no
  6. // @author V@no
  7. // @description Automatically redirect from mobile version to desktop version of the page.
  8. // @include http://www.amazon.com/gp/aw/d/*
  9. // @include http://amazon.com/gp/aw/d/*
  10. // @include https://www.amazon.com/gp/aw/d/*
  11. // @include https://amazon.com/gp/aw/d/*
  12. // @grant none
  13. // @run-at document-start
  14. // ==/UserScript==
  15.  
  16. window.location.replace(window.location.toString().replace(/^(http:\/\/(www\.)?amazon\.com\/)gp\/aw\/d\/(.*)/ig, "$1dp/$3"));