Newer
Older
save-to-mylist / save_mylist.js
document.getElementsByClassName('submit')[0].setAttribute('onclick', 'alert = function(){}');
document.getElementsByClassName('submit')[0].click();
setTimeout(function () {
    chrome.runtime.sendMessage({
        type: 'hasAdded'
    }, function () {});
    window.close();
}, 500);