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>Welcome back</title> | |
</head> | |
<body> | |
<p>Hello World!</p> | |
</body> | |
</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
{ | |
"name": "Chromepage", | |
"description": "Personalized override of Chrome New Tab page.", | |
"version": "1.0", | |
"manifest_version": 2, | |
"chrome_url_overrides": { "newtab": "index.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
{ | |
"tabWidth": 2, | |
"singleQuote": true, | |
"jsxSingleQuote": true, | |
"semi": true, | |
"trailingComma": "es5", | |
"bracketSpacing": true, | |
"jsxBracketSameLine": false, | |
"arrowParens": "always", | |
"printWidth": 80 |
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
{ | |
"ch": "checkout", | |
"b": "branch", | |
"ci": "commit -m", | |
"m": "master", | |
"chm": "checkout master", | |
"ad": "add .", | |
"pu": "push" | |
} |
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"> |
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
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
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
"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]; | |
}); |