code review (lot more needed), jshint

This commit is contained in:
gorhill 2014-08-19 23:01:36 -04:00
parent 1deae3bfe0
commit e032b7aab9
9 changed files with 24 additions and 137 deletions

View file

@ -259,49 +259,9 @@
"message":"Quellcode (GPLv3)", "message":"Quellcode (GPLv3)",
"description":"English: Source code (GPLv3)" "description":"English: Source code (GPLv3)"
}, },
"aboutExtensionDataHeader":{ "aboutContributors":{
"message":"Externe Ressourcen dieser Erweiterung", "message":"Contributors",
"description":"English: Extension data" "description":"English: Contributors"
},
"aboutAssetsUpdatePrompt":{
"message":"Von <i>µBlock<\/i> benutzte externe Ressourcen können hier upgedatet werden, ohne auf eine neue Version dieser Erweiterung warten zu müssen. Diese Ressourcen werden bezogen vom <a href=\"https:\/\/github.com\/gorhill\/ublock\">Github Repository dieses Projekts<\/a>.",
"description":"Short descriptive text of the update feature"
},
"aboutAssetsUpdateColPath":{
"message":"Pfad",
"description":"Path column header"
},
"aboutAssetsUpdateColStatus":{
"message":"Status",
"description":"Status column header"
},
"aboutAssetsUpdateGetListError":{
"message":"Ein Fehler ist aufgetreten. Ist <b>XHR<\/b> blockiert für <b>raw2.github.com<\/b>?",
"description":"Successful outcome of clicking 'update' button"
},
"aboutAssetsUpdateStatusAdded":{
"message":"Hinzufügen",
"description":"Displayed in the status column for each entry"
},
"aboutAssetsUpdateStatusChanged":{
"message":"Neue Version verfügbar",
"description":"Displayed in the status column for each entry"
},
"aboutAssetsUpdateStatusUnchanged":{
"message":"Aktuell",
"description":"Displayed in the status column for each entry"
},
"aboutAssetsUpdateStatusRemoved":{
"message":"Entfernen",
"description":"Displayed in the status column for each entry"
},
"aboutAssetsUpdateButton":{
"message":"Aktualisieren",
"description":"Update button"
},
"aboutAssetsUpdatingButton":{
"message":"Wird aktualisiert...",
"description":"Updating..."
}, },
"dummy":{ "dummy":{
"message":"Dieser Eintrag muss der letzte sein", "message":"Dieser Eintrag muss der letzte sein",

View file

@ -259,49 +259,9 @@
"message":"Source code (GPLv3)", "message":"Source code (GPLv3)",
"description":"English: Source code (GPLv3)" "description":"English: Source code (GPLv3)"
}, },
"aboutExtensionDataHeader":{ "aboutContributors":{
"message":"Extension data", "message":"Contributors",
"description":"English: Extension data" "description":"English: Contributors"
},
"aboutAssetsUpdatePrompt":{
"message":"<i>µBlock<\/i> assets can be updated here without having to wait for the next release of the extension. These assets are pulled from the <a href=\"https:\/\/github.com\/gorhill\/ublock\">project's Github repository<\/a>.",
"description":"Short descriptive text of the update feature"
},
"aboutAssetsUpdateColPath":{
"message":"Path",
"description":"Path column header"
},
"aboutAssetsUpdateColStatus":{
"message":"Status",
"description":"Status column header"
},
"aboutAssetsUpdateGetListError":{
"message":"An error occurred. Is <b>XHR<\/b> blocked for <b>raw2.github.com<\/b>?",
"description":"Successful outcome of clicking 'update' button"
},
"aboutAssetsUpdateStatusAdded":{
"message":"To add",
"description":"Displayed in the status column for each entry"
},
"aboutAssetsUpdateStatusChanged":{
"message":"New version available",
"description":"Displayed in the status column for each entry"
},
"aboutAssetsUpdateStatusUnchanged":{
"message":"Up to date",
"description":"Displayed in the status column for each entry"
},
"aboutAssetsUpdateStatusRemoved":{
"message":"To remove",
"description":"Displayed in the status column for each entry"
},
"aboutAssetsUpdateButton":{
"message":"Update",
"description":"Update button"
},
"aboutAssetsUpdatingButton":{
"message":"Updating...",
"description":"Updating..."
}, },
"dummy":{ "dummy":{
"message":"This entry must be the last one", "message":"This entry must be the last one",

View file

@ -259,49 +259,9 @@
"message":"Code Source (Licence GPLv3, en Anglais)", "message":"Code Source (Licence GPLv3, en Anglais)",
"description":"English: Source code (GPLv3)" "description":"English: Source code (GPLv3)"
}, },
"aboutExtensionDataHeader":{ "aboutContributors":{
"message":"Données de l'extension", "message":"Contributeurs",
"description":"English: Extension data" "description":"English: Contributors"
},
"aboutAssetsUpdatePrompt":{
"message":"Les éléments dynamiques, comprenant entre autres listes d'hôtes à bloquer et recettes prédéfinies, peuvent être mis à jour ici sans avoir à attendre la prochaine version de µBlock. Le processus s'effectue à partir de la <a href=\"https:\/\/github.com\/gorhill\/ublock\">page du projet sur Github<\/a>.",
"description":"Short descriptive text of the update feature"
},
"aboutAssetsUpdateColPath":{
"message":"Élément dynamique",
"description":"Path column header"
},
"aboutAssetsUpdateColStatus":{
"message":"État",
"description":"Status column header"
},
"aboutAssetsUpdateGetListError":{
"message":"Une erreur est survenue. Veuillez vous assurer que les requêtes de type <b>XHR<\/b> ne soient pas bloquées pour <b>raw2.github.com<\/b>",
"description":"Successful outcome of clicking 'update' button"
},
"aboutAssetsUpdateStatusAdded":{
"message":"À ajouter",
"description":"Displayed in the status column for each entry"
},
"aboutAssetsUpdateStatusChanged":{
"message":"Nouvelle version disponible",
"description":"Displayed in the status column for each entry"
},
"aboutAssetsUpdateStatusUnchanged":{
"message":"À jour",
"description":"Displayed in the status column for each entry"
},
"aboutAssetsUpdateStatusRemoved":{
"message":"À supprimer",
"description":"Displayed in the status column for each entry"
},
"aboutAssetsUpdateButton":{
"message":"Mettre à jour",
"description":"Update button"
},
"aboutAssetsUpdatingButton":{
"message":"Mise à jour en cours...",
"description":"Updating..."
}, },
"dummy":{ "dummy":{
"message":"This entry must be the last one", "message":"This entry must be the last one",

View file

@ -16,8 +16,13 @@ ul {
<h2>µBlock <span id="aboutVersion"></span></h2> <h2>µBlock <span id="aboutVersion"></span></h2>
<ul> <ul>
<li><a href="https://github.com/gorhill/uBlock/releases" data-i18n="aboutChangelog"></a><br> <li><a href="https://github.com/gorhill/uBlock/releases" data-i18n="aboutChangelog"></a>
<li><a href="https://github.com/gorhill/ublock" data-i18n="aboutCode"></a><br> <li><a href="https://github.com/gorhill/ublock" data-i18n="aboutCode"></a>
<li><span data-i18n="aboutContributors"></span>
<ul>
<li><a href="https://github.com/gorhill/uBlock/graphs/contributors">Github</a>
<li><a href="https://crowdin.net/project/ublock">Crowdin</a>
</ul>
</ul> </ul>
<script src="js/udom.js"></script> <script src="js/udom.js"></script>

View file

@ -41,7 +41,7 @@ https://github.com/gorhill/uBlock/wiki/%C2%B5Block-vs.-ABP:-efficiency-compared
开放源代码与公共许可证 (GPLv3) 开放源代码与公共许可证 (GPLv3)
一切为了用户。 一切为了用户。
贡献者@ Github 贡献者 @ Github
https://github.com/gorhill/uBlock/graphs/contributors https://github.com/gorhill/uBlock/graphs/contributors
贡献者 @ Crowdin 贡献者 @ Crowdin
https://crowdin.net/project/ublock https://crowdin.net/project/ublock

View file

@ -319,7 +319,7 @@ var onListLinkClicked = function(ev) {
/******************************************************************************/ /******************************************************************************/
var onPurgeClicked = function(ev) { var onPurgeClicked = function() {
var button = uDom(this); var button = uDom(this);
var li = button.parent(); var li = button.parent();
var href = li.find('a').first().attr('href'); var href = li.find('a').first().attr('href');

View file

@ -19,6 +19,8 @@
Home: https://github.com/gorhill/uBlock Home: https://github.com/gorhill/uBlock
*/ */
/* global chrome, µBlock */
// So there might be memory leaks related to the direct use of sendMessage(), // So there might be memory leaks related to the direct use of sendMessage(),
// as per https://code.google.com/p/chromium/issues/detail?id=320723. The issue // as per https://code.google.com/p/chromium/issues/detail?id=320723. The issue
// is not marked as resolved, and the last message from chromium dev is: // is not marked as resolved, and the last message from chromium dev is:

View file

@ -19,7 +19,7 @@
Home: https://github.com/gorhill/uBlock Home: https://github.com/gorhill/uBlock
*/ */
// ORDER IS IMPORTANT /* global µBlock */
/******************************************************************************/ /******************************************************************************/

View file

@ -2,7 +2,7 @@
"manifest_version": 2, "manifest_version": 2,
"name": "__MSG_extName__", "name": "__MSG_extName__",
"short_name": "µBlock", "short_name": "µBlock",
"version": "0.4.0.2", "version": "0.4.1.0",
"description": "__MSG_extShortDesc__", "description": "__MSG_extShortDesc__",
"icons": { "icons": {
"16": "img/icon_16.png", "16": "img/icon_16.png",