您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Asks if you want to go to the local amazon page using ASIN. Some parts are not availible on anamzon.de.
当前为
// ==UserScript== // @name Amazon: Redirect from amazon.com to amazon.de via ASIN // @namespace none // @description Asks if you want to go to the local amazon page using ASIN. Some parts are not availible on anamzon.de. // @include *.amazon.com/* // @run-at document-start // @author lukie80 // @copyright Creative Commons Attribution-ShareAlike 3.0 Unported (CC-BY-SA 3.0) // @license http://creativecommons.org/licenses/by-sa/3.0/ // @version 1.0 // @lastupdated 2016.08.04 // // ==/UserScript== //------------------------------------------------------------------------------------------------------------------- //source: http://stackoverflow.com/a/1768114 var reASIN = RegExp("^(http[s]?://)?([\\w.-]+)(:[0-9]+)?/([\\w-%]+/)?(dp|gp/product|exec/obidos/asin)/(\\w+/)?(\\w{10})(.*)?$"); var matchArray = window.location.href.match(reASIN); if (matchArray) { var cbox = confirm("Go to amazon.de? (ASIN: "+matchArray[7]+")"); if (cbox == true) { window.location.assign("http://www.amazon.de/dp/" + matchArray[7]); //"http://" prefix is important otherwise the URL is interpreted as relative } } //-------------------------------------------------------------------------------------------------------------------
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址