This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"icons": { | |
"16": "assets/icon.png", | |
"48": "assets/icon.png", | |
"128": "assets/icon.png" | |
}, | |
"permissions": ["https://calendar.google.com/*"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const container = document.getElementsByClassName('rbGOge SeRypc'); | |
if (container) { | |
const containerChildren = container[0].childNodes; | |
const leftArrow = containerChildren[1]; | |
const rightArrow = containerChildren[2]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"content_scripts": [ | |
{ | |
"matches": ["https://calendar.google.com/*"], | |
"js": ["js/contentScript.js"] | |
} | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"commands": { | |
"navigate-left": { | |
"suggested_key": { | |
"default": "Alt+Left", | |
"mac": "Alt+Left" | |
}, | |
"description": "Navigate Left" | |
}, | |
"navigate-right": { | |
"suggested_key": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chrome.commands.onCommand.addListener(function (command) { | |
const direction = command.split('-')[1]; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"background": { | |
"scripts": ["js/background.js"], | |
"persistent": false | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chrome.commands.onCommand.addListener(function (command) { | |
const direction = command.split('-')[1]; | |
chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) { | |
chrome.tabs.sendMessage(tabs[0].id, { direction }); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const container = document.getElementsByClassName('rbGOge SeRypc'); | |
if (container) { | |
const containerChildren = container[0].childNodes; | |
const leftArrow = containerChildren[1]; | |
const rightArrow = containerChildren[2]; | |
chrome.runtime.onMessage.addListener(function (message) { | |
const { direction } = message; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"browser_action": { | |
"default_icon": "assets/icon.png", | |
"default_popup": "popup.html" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Google Calendar Naviation Shortcuts</title> | |
<link rel="stylesheet" href="styles/popup.css" /> | |
</head> | |
<body> | |
<div class="popup-container"> | |
<div class="header"> |