Warning: fopen(/www/sites/update.greasyfork.icu/index/store/temp/4df36389b87838e29fdb2871492bb517.js): failed to open stream: No space left on device in /www/sites/update.greasyfork.icu/index/scriptControl.php on line 65
// ==UserScript==
// @name Amazon Price Variation (Fork)
// @namespace dsr-price-variation-camel
// @description Embeds CamelCamelCamel price chart in Amazon
// @include http://www.amazon.*/*
// @include https://www.amazon.*/*
// @include http://smile.amazon.*/*
// @include https://smile.amazon.*/*
// @version 20171209
// @grant none
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js
// @downloadURL https://update.greasyfork.icu/scripts/34849/Amazon%20Price%20Variation%20%28Fork%29.user.js
// @updateURL https://update.greasyfork.icu/scripts/34849/Amazon%20Price%20Variation%20%28Fork%29.meta.js
// ==/UserScript==
var width = 500;
var height = 200;
var duration = "1y";
//Possible other values are "amazon", "new", "used", "new-used", & "amazon-new-used"
var chart = "amazon-new";
$(document).ready(function () {
var element = $(':input[name="ASIN"]');
var arr = document.domain.split(".");
var country = arr[arr.length - 1];
if (country == "com") {
country = "us";
}
if (element) {
var prot = window.location.protocol;
var asin = $.trim(element.attr("value"));
var link = "" +
"
" +
"";
$("#availability").append("" + link + "
");
}
});