// Sending a request from a content script
/*
chrome.extension.sendMessage({msg: "I'm content-script"}, function (response) {
    console.log(response);
});
*/


// Receiving message from a background page
/*
chrome.extension.onMessage.addListener(
    function (request, sender, sendResponse) {
        if (request.greeting === "Do you hear me?") {
            sendResponse({answer: "Yes"});
        }
    }
);
*/

// Insert in manifest.json
/*
    "content_scripts": [
        {
            "matches": [ "<all_urls>" ],
            "js": ["js/content_script.js"]
        }
    ],
*/
/*
window.addEventListener("keypress", function(event) { 
    if (event.keyCode == 26) {
        chrome.runtime.sendMessage({msg: "ctrl_Z"}, function(response) {
            //console.log(response.farewell);
        });
    }
});
*/