Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
[WIP] OpenPureTab - An open source extension for Chrome-based browsers that allows customization of the new-tab page.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="griimnak" data-source="post: 433959" data-attributes="member: 35695"><p style="text-align: center"><strong><span style="font-size: 26px">OpenPureTab 1.0</span></strong></p><p></p><p>OpenPureTab is an extension for Chrome-based browsers that replaces the default new-tab page with a free and open sourced one, with tons of customization.</p><p></p><p><span style="font-size: 12px">I started this project because I wanted to add some aesthetics to my new tab page without compromising my privacy or security to shady extensions on the Chrome Web Store.</span></p><p><span style="font-size: 12px">(<a href="https://chrome.google.com/webstore/search/new%20tab" target="_blank">https://chrome.google.com/webstore/search/new tab</a>)</span></p><p></p><p><a href="https://github.com/griimnak/OpenPureTab" target="_blank">https://github.com/griimnak/OpenPureTab</a></p><p><span style="font-size: 26px"><strong>Features</strong></span></p><ul> <li data-xf-list-type="ul">Open and well-documented source code</li> <li data-xf-list-type="ul">Lightweight, dependency free</li> <li data-xf-list-type="ul">Plenty of customization</li> <li data-xf-list-type="ul">Simple and straight to the point, not in your face</li> </ul><p></p><p></p><p><strong><span style="font-size: 26px">Showcase</span></strong></p><p><img src="https://image.prntscr.com/image/gQuUK2-lT8aZIO_gz2uXVw.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><img src="https://image.prntscr.com/image/2u0tSTOcRl_d34ylmS3kiw.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><img src="https://image.prntscr.com/image/70K1vKDvQTWCSlx9lKQqaQ.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><span style="font-size: 26px"><strong>Snippets</strong></span></p><p>Using the chrome.storage api</p><p>[CODE=php]</p><p>var settings = {};</p><p></p><p>/* Validate settings */</p><p>function loadSettings() {</p><p> // Check if chrome storage is supported</p><p> if (!chrome.storage.sync) {</p><p> alert("Chrome storage is not accessible :(");</p><p> }</p><p></p><p> chrome.storage.sync.get(function(keys) {</p><p> console.log(keys);</p><p> // openSetupScreen if any keys are empty</p><p> if (isEmpty(keys)) {</p><p> console.log('Welcome! Opening first time setup..');</p><p> openSetupScreen();</p><p> } else {</p><p> settings = keys;</p><p></p><p> draw();</p><p> }</p><p> });</p><p>}</p><p>[/CODE]</p><p></p><p>Setting storage values with chrome.storage api</p><p>[CODE=php]</p><p> function validate() {</p><p> // Fallback</p><p> if (location == '') {</p><p> location = "New York"</p><p> } else {</p><p> location = form['location'].value;</p><p> }</p><p></p><p> chrome.storage.sync.set(</p><p> // Overwrite all keys</p><p> {</p><p> "name": name,</p><p> "location": location,</p><p> "theme": theme,</p><p> "background": {</p><p> "type": bg,</p><p> "value": bgval</p><p> },</p><p> "widget_topsites": widget_topsites</p><p> },</p><p> function() {</p><p> alert('Changes saved successfully.');</p><p> }</p><p> );</p><p> }</p><p>[/CODE]</p><p></p><p>Using the chrome.topSites api</p><p>[CODE=php]</p><p>var data = {};</p><p></p><p>function topSitesWidget() {</p><p> chrome.topSites.get(function(response) {</p><p> data = response;</p><p></p><p> if (settings.widget_topsites == "enabled_default") {</p><p> drawChromeStyle();</p><p> } else if (settings.widget_topsites == "enabled_style1_top") {</p><p> drawStyle1Top();</p><p> } else if (settings.widget_topsites == "enabled_style1_bottom") {</p><p> drawStyle1Bottom();</p><p> } else if (settings.widget_topsites == "enabled_ball") {</p><p> drawBallStyle();</p><p> }</p><p> });</p><p>}</p><p>[/CODE]</p><p><strong><span style="font-size: 26px">Dev Installation</span></strong></p><ul> <li data-xf-list-type="ul">Clone / Download <a href="https://github.com/griimnak/OpenPureTab" target="_blank">repository</a></li> <li data-xf-list-type="ul">Navigate to <strong><u>chrome://extensions</u></strong></li> <li data-xf-list-type="ul">Enable Developer mode<br /> <img src="https://image.prntscr.com/image/NsEaWmfASQSl3X3oZGy9sw.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> <br /> </li> <li data-xf-list-type="ul">Click `<strong><u>Load unpacked extensions...</u></strong>` and select the folder that contains OpenPureTab (extracted) with `<strong><u>manifest.json</u></strong>`.<br /> </li> <li data-xf-list-type="ul">Done! Open a new tab and follow setup:<br /> <img src="https://image.prntscr.com/image/2-Vx51ynSTCitvrDb2603A.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></li> </ul></blockquote><p></p>
[QUOTE="griimnak, post: 433959, member: 35695"] [CENTER][B][SIZE=7]OpenPureTab 1.0[/SIZE][/B][/CENTER] OpenPureTab is an extension for Chrome-based browsers that replaces the default new-tab page with a free and open sourced one, with tons of customization. [SIZE=3]I started this project because I wanted to add some aesthetics to my new tab page without compromising my privacy or security to shady extensions on the Chrome Web Store. ([URL='https://chrome.google.com/webstore/search/new%20tab']https://chrome.google.com/webstore/search/new tab[/URL])[/SIZE] [URL]https://github.com/griimnak/OpenPureTab[/URL] [SIZE=7][B]Features[/B][/SIZE] [LIST] [*]Open and well-documented source code [*]Lightweight, dependency free [*]Plenty of customization [*]Simple and straight to the point, not in your face [/LIST] [B][SIZE=7]Showcase[/SIZE][/B] [IMG]https://image.prntscr.com/image/gQuUK2-lT8aZIO_gz2uXVw.png[/IMG] [IMG]https://image.prntscr.com/image/2u0tSTOcRl_d34ylmS3kiw.png[/IMG] [IMG]https://image.prntscr.com/image/70K1vKDvQTWCSlx9lKQqaQ.png[/IMG] [SIZE=7][B]Snippets[/B][/SIZE] Using the chrome.storage api [CODE=php] var settings = {}; /* Validate settings */ function loadSettings() { // Check if chrome storage is supported if (!chrome.storage.sync) { alert("Chrome storage is not accessible :("); } chrome.storage.sync.get(function(keys) { console.log(keys); // openSetupScreen if any keys are empty if (isEmpty(keys)) { console.log('Welcome! Opening first time setup..'); openSetupScreen(); } else { settings = keys; draw(); } }); } [/CODE] Setting storage values with chrome.storage api [CODE=php] function validate() { // Fallback if (location == '') { location = "New York" } else { location = form['location'].value; } chrome.storage.sync.set( // Overwrite all keys { "name": name, "location": location, "theme": theme, "background": { "type": bg, "value": bgval }, "widget_topsites": widget_topsites }, function() { alert('Changes saved successfully.'); } ); } [/CODE] Using the chrome.topSites api [CODE=php] var data = {}; function topSitesWidget() { chrome.topSites.get(function(response) { data = response; if (settings.widget_topsites == "enabled_default") { drawChromeStyle(); } else if (settings.widget_topsites == "enabled_style1_top") { drawStyle1Top(); } else if (settings.widget_topsites == "enabled_style1_bottom") { drawStyle1Bottom(); } else if (settings.widget_topsites == "enabled_ball") { drawBallStyle(); } }); } [/CODE] [B][SIZE=7]Dev Installation[/SIZE][/B] [LIST] [*]Clone / Download [URL='https://github.com/griimnak/OpenPureTab']repository[/URL] [*]Navigate to [B][U]chrome://extensions[/U][/B] [*]Enable Developer mode [IMG]https://image.prntscr.com/image/NsEaWmfASQSl3X3oZGy9sw.png[/IMG] [*]Click `[B][U]Load unpacked extensions...[/U][/B]` and select the folder that contains OpenPureTab (extracted) with `[B][U]manifest.json[/U][/B]`. [*]Done! Open a new tab and follow setup: [IMG]https://image.prntscr.com/image/2-Vx51ynSTCitvrDb2603A.png[/IMG] [/LIST] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
[WIP] OpenPureTab - An open source extension for Chrome-based browsers that allows customization of the new-tab page.
Top