diff --git a/README.md b/README.md index 5af07bd..bb2c14f 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,10 @@ __Wikipedia is a trademark of the Wikimedia Foundation. Wikipedia Search is in n __New in Wikipedia Search 9.1:__ +* Add more languages * Remove Awesome New Tab Page (ANTP) support, because the project is abandoned -* Switch toolbar button to pageAction, to reduce background memory usage +* Remove browserAction toolbar button, to reduce background memory usage +* Remove option to disable HTTPS * Add Patreon donate link --------------------------------------------------------- diff --git a/js/background.js b/js/background.js index 9210081..b63d405 100644 --- a/js/background.js +++ b/js/background.js @@ -47,9 +47,7 @@ chrome.runtime.onInstalled.addListener(function(details){ if (localStorage.getItem("full-language") === null) { localStorage["full-language"] = detailArray[langArray.indexOf(localStorage["language"])]; } - if (localStorage.getItem("protocol") === null) { - localStorage["protocol"] = "https://"; - } + localStorage["protocol"] = "https://"; // We'll remove this option later if (localStorage.getItem("settings-modified") === null) { localStorage["settings-modified"] = "false"; } diff --git a/js/settings.js b/js/settings.js index 113f375..7962612 100644 --- a/js/settings.js +++ b/js/settings.js @@ -3,25 +3,27 @@ var langArray= ["ar","az","bg","nan","be","ca","cs","da","de","et","el","en","si var detailArray = ["العربية","Azərbaycanca","Български","Bân-lâm-gú / Hō-ló-oē","Беларуская (Акадэмічная)","Català","Čeština","Dansk","Deutsch","Eesti","Ελληνικά","English","Simple English","Español","Esperanto","Euskara","فارسی","Français","Galego","한국어","Հայերեն","हिन्दी","Hrvatski","Bahasa Indonesia","Italiano","עברית","ქართული","Latina","Lietuvių","Magyar","Bahasa Melayu","Bahaso Minangkabau","Nederlands","日本語","Norsk (Bokmål)","Norsk (Nynorsk)","Нохчийн","Oʻzbekcha / Ўзбекча","Polski","Português","Қазақша / Qazaqşa / قازاقشا","Română","Русский","Sinugboanong Binisaya","Slovenčina","Slovenščina","Српски / Srpski","Srpskohrvatski / Српскохрватски","Suomi","Svenska","தமிழ்","ภาษาไทย","Türkçe","Українська","اردو","Tiếng Việt","Volapük","Winaray","中文"]; // Load settings -$(window).on('load', function() { - // Populate languages menu - langArray.forEach(function callback(currentValue, index, array) { - $('#language').append($('