Amazon keepa

Amazon keepa plugin

ของเมื่อวันที่ 07-02-2017 ดู เวอร์ชันล่าสุด

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Amazon keepa
// @description Amazon keepa plugin
// @author Maxeo | maxeo.net
// @license https://creativecommons.org/licenses/by-sa/4.0/
// @include     https://www.amazon.it/*/dp/*
// @include     https://www.amazon.it/gp/product/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js
// @version     1.1.8
// @icon        https://greasyfork.org/system/screenshots/screenshots/000/006/429/original/asd.png
// @namespace https://greasyfork.org/users/88678
// ==/UserScript==
$(document).ready(function () {
  var prod_code;
  if (prod_code = window.location.pathname.match(/^\/gp\/product\/(.*)\/.*$/)) {
    prod_code = prod_code[1]
  } 
  else if (prod_code = window.location.pathname.match(/^\/.*\/dp\/(.*)\/.*$/)) {
    prod_code = prod_code[1];
  } 
  else if (prod_code = window.location.pathname.match(/^\/dp\/(.*)\/.*$/)) {
    prod_code = prod_code[1];
  }
  iframedata = '<iframe style="width: 100%; height: 500px; border:0 none;" src="https://keepa.com/iframe_addon.html#8-0-' + prod_code + '" scrolling="no" id="' + prod_code + '"></iframe>'
  $('#centerCol').after(iframedata)
})