Newer
Older
save-to-mylist / content_script.js
@ApricotSavor ApricotSavor on 21 Jul 2016 292 bytes 安定版
var btMylist = document.getElementsByClassName('mylistButton')[0];
if(!btMylist) {
    alert("マイリス追加ボタンを取得できません");
    isEnabled = false;
} else {
    chrome.runtime.sendMessage({
        type: "setMylist", url: btMylist.href
    }, function (request) {});
}