Initial Commit

This commit is contained in:
tazeat 2018-02-11 12:07:53 -08:00
commit 70fbe24185
5 changed files with 30 additions and 0 deletions

3
Readme.md Normal file
View File

@ -0,0 +1,3 @@
# Auto Fullscreen
This is a dumb 10 lines or less plugin to give FireFox Quantum the ability to launch in Full Screen mode. On startup it simply updates the current window to set the window state to fullscreen. For best results set a homepage and configure Firefox to launch with that homepage on startup. Please create any issues on Github or submit a pull request for fixes.

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

19
manifest.json Normal file
View File

@ -0,0 +1,19 @@
{
"description": "Auto Fullscreen for Firefox Quantum",
"manifest_version": 2,
"name": "AutoFullscreen",
"version": "1.0.0.1",
"homepage_url": "https://github.com/tazeat/AutoFullscreen",
"background":{
"scripts": ["startup.js"]
},
"icons": {
"48": "icons/fullscreen_black_48x48.png",
"96": "icons/fullscreen_black_96x96.png"
},
"applications": {
"gecko": {
"strict_min_version": "48.0"
}
}
}

8
startup.js Normal file
View File

@ -0,0 +1,8 @@
function onError(error) {
console.log(`Error: ${error}`);
}
console.log(`AutoFullscreen Running`);
browser.windows.getCurrent().then((currentWindow) => {
browser.windows.update(currentWindow.id, {state: "fullscreen"});
});