Skip to content

Commit

Permalink
0.1.1.5 | Remove https from freesmug.org links
Browse files Browse the repository at this point in the history
Remove https from freesmug.org links, add Italian translation, upload screenshot, update README.md
  • Loading branch information
cgand committed May 11, 2018
1 parent 1c5cb6a commit f4e373a
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 22 deletions.
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
FreeSmug Updater for Chromium (Mac) Extension
FreeSmug Updater for Chromium (macOS) Extension
==========================
Chromium Extension to check for, download and install the latest Chromium revisions from FreeSMUG.org

Mac OSX only
Chromium Extension to check for, download and install the latest Chromium revisions from [FreeSMUG.org](http://www.freesmug.org/chromium)

macOS only

--
Safest to install from the [Chrome Webstore](https://chrome.google.com/webstore/detail/chromium-updater/ccgjmadhdidfloacagcnnodbkedkjedg)
~~Safest to install from the [Chrome WebStore](https://chrome.google.com/webstore/detail/chromium-updater/ccgjmadhdidfloacagcnnodbkedkjedg)~~ _(WebStore no more availble)_.


For manual install, go to `chrome://extensions`, turn on Developer Mode at the top, click 'Load unpacked extension' and load the folder contents. Auto Updates won't work when installed this way.
For manual install, go to `chrome://extensions`, turn on Developer Mode at the top, click 'Load unpacked extension' and load the folder contents. Auto Updates won't work when installed this way.


![Screenshot 1](https://anony.ws/i/2015/06/02/popup.png)
![Screenshot 1](images/screenshot1.png)

![Screenshot 2](https://anony.ws/i/2015/06/02/richnote34081.png)
![Screenshot 2](images/screenshot2.png)

--


I am not affiliated, associated, authorized, endorsed by, or in any way officially connected with Google Inc and the Chromium Brand or any of its subsidiaries or its affiliates.
The name "Chromium” as well as related names, marks, emblems and images are registered trademarks of Google Inc.
The name "Chromium” as well as related names, marks, emblems and images are registered trademarks of Google Inc.
4 changes: 2 additions & 2 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"Desc": {
"message": "Check for, download and install the latest stable Chromium revisions"
"message": "Check for and download the latest stable Chromium revisions (macOS)"
},
"Name": {
"message": "FreeSMUG Updater for Chromium (Mac)"
"message": "FreeSMUG Updater for Chromium (macOS)"
}
}
8 changes: 8 additions & 0 deletions _locales/it/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Desc": {
"message": "Controlla e scarica l'ultima versione stabile di Chromium (macOS)"
},
"Name": {
"message": "FreeSMUG Updater per Chromium (macOS)"
}
}
Binary file added images/screenshot1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/screenshot2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Extension: Chromium Updater
Description: Check for, download and install the latest Chromium revisions
Author: stullig
Version: 0.1.1.4
Version: 0.1.1.5
*/


Expand Down Expand Up @@ -200,13 +200,13 @@ function notify(uuid, icon, title, message, button, buttonIcon, url, button2) {
richNote.buttons.push({title: "Go to FreeSMUG", iconUrl: "images/arrow.png"});
}
var link = function (notificationId, buttonIndex) {
url = (buttonIndex > 0) ? 'https://www.freesmug.org/chromium' : url;
url = (buttonIndex > 0) ? 'http://www.freesmug.org/chromium' : url;
window.open(url);
};
chrome.notifications.create(uuid, richNote);
chrome.notifications.onButtonClicked.addListener(function (notificationId, buttonIndex) {
if(uuid == notificationId) {
url = (buttonIndex > 0) ? 'https://www.freesmug.org/chromium' : url;
url = (buttonIndex > 0) ? 'http://www.freesmug.org/chromium' : url;
window.open(url);
}
});
Expand Down
12 changes: 6 additions & 6 deletions js/popup.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var $ = document.getElementById.bind(document);
var backend = chrome.extension.getBackgroundPage();
var website = "https://freesmug.org/chromium";
var website = "http://www.freesmug.org/chromium";
var latestStable, latestFreesmug, downloadURL = false;
var updateStartup, updateHourly, officialStable, stableMismatch;
var currentVer = window.navigator.userAgent.match(/Chrome\/([\d.]+)/)[1];
Expand Down Expand Up @@ -49,7 +49,7 @@ function init() {
// $('stable').style.visibility = "visible";
$('stable').style.display = 'block';
backend.getStable(false);
}
}
setTimeout(function() {
$('installedLabel').innerText = currentVer;
}, 400);
Expand All @@ -63,7 +63,7 @@ function matchVersion (version, link) {
version = version.split('.');
version.every(function(c,i,a) {
if (parseFloat(current[i]) > parseFloat(version[i])) {
return false; // Break loop when current version segment is higher than
return false; // Break loop when current version segment is higher than
}
else if (parseFloat(current[i]) < parseFloat(version[i])) {
update = true;
Expand All @@ -72,7 +72,7 @@ function matchVersion (version, link) {
return true;
});
if (update) {
chrome.browserAction.setIcon({path: 'images/update.png'});
chrome.browserAction.setIcon({path: 'images/update.png'});
$('installedLabel').setAttribute("style", "color: #ed1d0b; font-weight: none");
$('freesmugVersion').setAttribute("style", "color: #4f9906; font-weight: none");
$('updateMsg').setAttribute("style", "color: #ed1d0b; font-weight: none");
Expand All @@ -97,7 +97,7 @@ function matchVersion (version, link) {
else {
chrome.browserAction.setIcon({path: 'images/popup.png'});
['updateMsg', 'installedLabel', 'freesmugVersion'].forEach(function (s) {
$(s).setAttribute('style', 'color:#4f9906 ;');
$(s).setAttribute('style', 'color:#4f9906 ;');
});
setTimeout(function() {
$('updateMsg').innerText = "You're up to date!";
Expand All @@ -107,6 +107,6 @@ function matchVersion (version, link) {
}

document.addEventListener('DOMContentLoaded', function() {
$('banner').addEventListener('click', function() { window.open("https://www.freesmug.org/chromium") });
$('banner').addEventListener('click', function() { window.open("http://www.freesmug.org/chromium") });
$('options').addEventListener('click', function() { chrome.runtime.openOptionsPage();});
});
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
"permissions": [ "storage", "notifications", "https://sourceforge.net/projects/osxportableapps/*", "https://commondatastorage.googleapis.com/*", "https://omahaproxy.appspot.com/*" ],
"short_name": "Chromium Updater",
"update_url": "https://clients2.google.com/service/update2/crx",
"version": "0.1.1.4"
"version": "0.1.1.5"
}

0 comments on commit f4e373a

Please sign in to comment.