From 128eb6a7c859e9b9904b169cc865ae9b08393b93 Mon Sep 17 00:00:00 2001 From: GalayZloy Date: Tue, 20 Oct 2015 15:57:11 +0300 Subject: [PATCH 1/6] Update readme.txt --- readme.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/readme.txt b/readme.txt index 218bdaf..3b1ec35 100644 --- a/readme.txt +++ b/readme.txt @@ -6,6 +6,17 @@ Website: http://codebit.de/oex/google-mail Author : Tom Schreiber HISTORY + +v3.1.6 +FIXED: Action buttons did not work. +FIXED: A bit of corrections [ru] translation. +FIXED: Layout of "standard" theme was breaking while mouse hover on messages. +FIXED: Window was hiding in 2 seconds while mouse still hover on messages. + +v3.1.5-alpha +FIXED: One account showing three times. +Function of multiple accounts detection not working now. Now it shows only one account at time. + v3.1.4 (CURRENT STABLE) FIXED: Google Accounts are not detected proberly From 5b2ffbff40832e289e8d3ceae54d7f6cc8d52635 Mon Sep 17 00:00:00 2001 From: GalayZloy Date: Tue, 20 Oct 2015 16:03:31 +0300 Subject: [PATCH 2/6] Update config.xml --- config.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.xml b/config.xml index 39441bc..d76ebb0 100644 --- a/config.xml +++ b/config.xml @@ -1,14 +1,14 @@ + version="3.1.6"> GMail Notifier A fast extensions to inform you about unread messages in your GMail-Account(s) with option to achive, delete, etc. the message directly. Your Accounts will be detected automatically when you are logged in. Diese Erweiterung informiert Sie über ungelesene Nachrichten in Ihrem GMail-Konto mit der Möglichkeit diese direkt zu archivieren, zu löschen, etc. Ihre Konten werden dabei automatisch erkannt wenn Sie eingeloggt sind. - Простое и быстрое расширение которое сообщает вам количество непрочитанных сообщений в ящике Gmail и показывает их заголовки. + Простое и быстрое расширение, которое сообщает вам количество непрочитанных сообщений в ящике Gmail и показывает их заголовки. 一個簡單又快速的延伸套件提醒你 Gmail 帳號中有多少尚未讀取的郵件和顯示郵件的標題。你可以設定多個要檢查的帳號還有設定直接用 Gmail 來開啟郵件連結。 一款快捷的扩展工具,用于通知你 Gmail 邮箱中有多少未读邮件并可以设定直接对邮件进行存档、删除等。该扩展还可以自动检测已登录的 Gmail 帐号。 Proste i szybkie rozszerzenie informujące o nowych nieprzeczytanych wiadomościach na koncie GMail oraz pokazujące ich tytuły. Możliwa jest obsługa wielu kont i otwieranie odnośników mailowych bezpośrednio w GMailu. From 05e6244d3f7f00ebef29d1fd9833bd72d618ffa1 Mon Sep 17 00:00:00 2001 From: GalayZloy Date: Tue, 20 Oct 2015 16:04:36 +0300 Subject: [PATCH 3/6] Update style.css --- css/style.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/css/style.css b/css/style.css index cbb330c..4a69920 100644 --- a/css/style.css +++ b/css/style.css @@ -25,7 +25,6 @@ div::selection, p::selection, img::selection { height: 25px; padding: 0 8px; margin-bottom: 5px; - } .entry:hover { @@ -37,11 +36,13 @@ div::selection, p::selection, img::selection { #compose { width: 44%; display: inline-block; + white-space: nowrap; } #pref { width: 44%; display: inline-block; + white-space: nowrap; } .separator { @@ -260,4 +261,4 @@ div::selection, p::selection, img::selection { cursor: pointer; background: -o-linear-gradient(top, #f40000 0%,#aa0000 100%); text-shadow: #000 1px 1px 1px; -} \ No newline at end of file +} From 5474a533e9226a04a40e5c4ad5a5581c33de5484 Mon Sep 17 00:00:00 2001 From: GalayZloy Date: Tue, 20 Oct 2015 16:05:53 +0300 Subject: [PATCH 4/6] Update grake.js --- js/grake.js | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/js/grake.js b/js/grake.js index 6eb1d35..637f7b8 100644 --- a/js/grake.js +++ b/js/grake.js @@ -456,8 +456,8 @@ function Grake() else { // Set Url - var url = GmailURL + "u/" + actionObj.accountnum + "/h/" + Math.ceil(1000000 * Math.random()) + "/"; - var postdata = {t: actionObj.urlid, at: AtValue, act: actionObj.action}; + var url = GmailURL + "u/" + actionObj.accountnum + "/h/" + randString(12) + "/"; + var postdata = {redir: "?&", at: AtValue, tact: actionObj.action, nvp_tbu_go: "OK", t: actionObj.urlid, bact: ""}; DebugMessage("Send Action '" + actionObj.action + "' to " + url ); // Send action now @@ -483,7 +483,7 @@ function Grake() function GetAtValue(callback, actionObj) { // Set Url - var url = GmailURL + "u/" + actionObj.accountnum + "/h/" + Math.ceil(1000000 * Math.random()) + "/?ui=html&zy=c"; + var url = GmailURL + "u/" + actionObj.accountnum + "/h/" + randString(12) + "/?ui=html&zy=c"; DebugMessage("Get At-Value now from: " + url); // Get AT-Value @@ -493,7 +493,7 @@ function Grake() success: function (data) { // Parse Value - var matches = data.match(/\at=([^"]+)/); + var matches = data.match(/\at=([^&]+)/); if (matches != null && matches.length > 0) { AtValue = matches[1]; @@ -512,4 +512,16 @@ function Grake() if(widget.preferences['debugMode'] && widget.preferences['debugMode'] === "on") opera.postError("Grake," + type + " : " + message); } -} \ No newline at end of file + + // Function generates a random string for use in unique IDs, etc + // @param n - The length of the string + function randString(n) + { + if(!n) n = 5; + var text = ''; + var possible = 'abcdefghijklmnopqrstuvwxyz0123456789'; + for(var i=0; i < n; i++) text += possible.charAt(Math.floor(Math.random() * possible.length)); + return text; + } + +} From 2408d3869b0bcdf78f8a73bf26d18a0e50f310b9 Mon Sep 17 00:00:00 2001 From: GalayZloy Date: Tue, 20 Oct 2015 16:06:51 +0300 Subject: [PATCH 5/6] Update menu.js --- js/menu.js | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/js/menu.js b/js/menu.js index d24bdd6..59bd4d1 100644 --- a/js/menu.js +++ b/js/menu.js @@ -12,6 +12,7 @@ var InfoHeight=130; // Info-Height of Menu var SingleMessageHeight = 47; // Height of single Message-Entry var HideTimeout = 2000; var HideTimer; +var MouseOnBody = true; // Flag to detect position of mouse (if mouse over the body MouseOnBody = true, else MouseOnBody = false) var Accounts; var AccountsCount; @@ -40,11 +41,18 @@ window.addEventListener("load", function() // Close Popup-Box on "Mouse-Leave" after some time $('body').mouseleave(function() { - HideTimer = window.setTimeout(function(){window.close()}, HideTimeout); - }); + MouseOnBody = false; + HideTimer = window.setTimeout(function(){ + if(MouseOnBody == false) window.close(); + }, HideTimeout); + }); + + // Stop timer closing window $('body').mouseenter(function() { - clearTimeout(HideTimer); - }); + MouseOnBody = true; + clearTimeout(HideTimer); + }); + }, false); // Open Google-Mail-Tab @@ -315,7 +323,7 @@ function ShowMessageOptions(box, link) $(box).append(layer); // Add Tooltips - $(".button").tooltip({position: "bottom center", offset: [4, 0], tipClass: "tooltip2", delay:0}); + $(".button").tooltip({position: "top center", offset: [-2, 0], tipClass: "tooltip2", delay:0}); return false; } From 160247ee1e046b58065ad52e61b0aacd2d2272fc Mon Sep 17 00:00:00 2001 From: GalayZloy Date: Tue, 20 Oct 2015 16:08:10 +0300 Subject: [PATCH 6/6] Update lang.js --- locales/ru/lang.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/locales/ru/lang.js b/locales/ru/lang.js index 466c3a3..d894172 100644 --- a/locales/ru/lang.js +++ b/locales/ru/lang.js @@ -3,10 +3,10 @@ * by Роман Каштанов, Dmitry Ryabov SHORT DESCRIPTION FOR ADDONS.OPERA.COM (max 220): -Простое и быстрое расширение которое сообщает вам количество непрочитанных сообщений в ящике Gmail и показывает их заголовки. +Простое и быстрое расширение, которое сообщает вам количество непрочитанных сообщений в ящике Gmail и показывает их заголовки. DETAILED DESCRIPTION FOR ADDONS.OPERA.COM: -Простое и быстрое расширение которое сообщает вам количество непрочитанных сообщений в ящике Gmail и показывает их заголовки. Расширение может работать с несколькими аккаунтами и позволяет открывать ссылки mailto: с помощью Gmail. +Простое и быстрое расширение? которое сообщает вам количество непрочитанных сообщений в ящике Gmail и показывает их заголовки. Расширение может работать с несколькими аккаунтами и позволяет открывать ссылки mailto: с помощью Gmail. Возможности * Автоматически определяет учётную запись GMail (не требует ввода имени и пароля) @@ -25,20 +25,20 @@ lang.options_update = "Интервал проверки"; lang.options_update_unit = "секунд"; lang.options_sound = "Звуковой сигнал при получении нового сообщения."; lang.options_enable_messageactions = "Добавть действия с письмом (отметить как прочитанное, удалить ..)"; -lang.options_mailto = "Открывать ссылки mailto: при помощи GMail."; +lang.options_mailto = "Открывать ссылки mailto: при помощи GMail"; lang.options_debugmode = "Включить отладочные сообщения"; -lang.options_htmlmode = "Включть режим упрощённого HTML в GMail"; +lang.options_htmlmode = "Включить режим упрощённого HTML в GMail"; lang.options_adfree = "Убрать рекламу в GMail" lang.options_tooltip = "Показывать всплывающее окно с подробностями письма при наведении"; lang.options_close = "Применить и закрыть"; lang.options_refresh = "Обновить аккаунты"; lang.options_choose_theme = "Выбрать тему"; lang.options_description = "GMail Notifier это маленькое, простое и быстрое \ -расширение которое показывает количество непрочитанных сообщений в вашем почтовом \ +расширение, которое показывает количество непрочитанных сообщений в вашем почтовом \ ящике Gmail при помощи значка на тулбаре и их заголовки во всплывающем окне."; lang.options_description_accounts = "Это расширение автоматически определяет\n\ ваши учётные записи GMail. Вы должны войти в ваш Google аккаунт, чтобы видеть сообщения. Если вы хотите\n\ - использовать несколько учётных записей одновременно, пожалуйста используйте данный метод." + использовать несколько учётных записей одновременно, пожалуйста, используйте данный метод." lang.options_dectected_accounts = "Найденные аккаунты:"; lang.options_accounts_header = "Аккаунт(ы) GMail"; @@ -65,7 +65,7 @@ lang.popup_nomsg = "У вас нет непрочитанных сооб lang.popup_onemsg = "У вас одно непрочитанное сообщение"; lang.popup_msg_before = "У вас "; lang.popup_msg_after = " непрочитанных сообщений"; -lang.popup_lastupdate = "Последнее обновление : "; +lang.popup_lastupdate = "Последнее обновление: "; lang.popup_error_occurred="произошла ошибка"; lang.popup_from = "От: "; lang.popup_to = "Кому: ";