Greasy Fork

Greasy Fork is available in English.

Amazon Kindle FixedLayout Message

Show message for fixedlayout.

目前为 2017-01-03 提交的版本,查看 最新版本

// ==UserScript==
// @name         Amazon Kindle FixedLayout Message
// @description  Show message for fixedlayout.
// @namespace    https://twitter.com/foldrr/
// @author       foldrr
// @version      0.2
// @require      https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
// @match        https://www.amazon.co.jp/*
// ==/UserScript==

(function() {
    var keyword = '固定レイアウト';

    var i = document.body.innerText.indexOf(keyword);
    if (i < 0) return;

    $('#dp-container').prepend(
        $('<div>', {style: "margin-bottom: 5px; padding: 16pt; border:3px solid red; background: #FDD; font-size: x-large"}).append(
            $('<p>' + keyword + '</p>')
            ));
})();