// ==UserScript== // @name Amazon 商品画面にサクラチェッカー用リンクを作成 // @namespace unkomoreta // @version 0.2 // @description Amazonの商品画面(の購入ボタンの下あたり)にサクラチェッカー用リンクを作成 // @author nikukoppun // @match https://www.amazon.co.jp/* // @require https://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js // @grant none // @downloadURL none // ==/UserScript== (function() { 'use strict'; jQuery.noConflict(); (function($) { if (0 < $("#dp").length) { setCheckerButton(); let observer = new MutationObserver(function (MutationRecords, MutationObserver) { setCheckerButton(); }); observer.observe($("#desktop_buybox").get(0), { childList: true }); function setCheckerButton() { let asin = ""; if (0 < $("#ASIN").length) { asin = $("#ASIN").val(); } let styleHtml = "\ " let buttonHtml = ""; if (asin != "") { let targetURL = "https://sakura-checker.jp/search/" + asin + "/"; buttonHtml = "\