Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<widget xmlns="http://www.w3.org/ns/widgets"
id="http://www.codebit.de/oex/google-mail"
version="3.1.4">
version="3.1.6">

<!-- Extension Infos -->
<name>GMail Notifier</name>

<description xml:lang="en">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.</description>
<description xml:lang="de">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.</description>
<description xml:lang="ru">Простое и быстрое расширение которое сообщает вам количество непрочитанных сообщений в ящике Gmail и показывает их заголовки.</description>
<description xml:lang="ru">Простое и быстрое расширение, которое сообщает вам количество непрочитанных сообщений в ящике Gmail и показывает их заголовки.</description>
<description xml:lang="zh">一個簡單又快速的延伸套件提醒你 Gmail 帳號中有多少尚未讀取的郵件和顯示郵件的標題。你可以設定多個要檢查的帳號還有設定直接用 Gmail 來開啟郵件連結。</description>
<description xml:lang="zh-cn">一款快捷的扩展工具,用于通知你 Gmail 邮箱中有多少未读邮件并可以设定直接对邮件进行存档、删除等。该扩展还可以自动检测已登录的 Gmail 帐号。</description>
<description xml:lang="pl">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.</description>
Expand Down
5 changes: 3 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ div::selection, p::selection, img::selection {
height: 25px;
padding: 0 8px;
margin-bottom: 5px;

}

.entry:hover {
Expand All @@ -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 {
Expand Down Expand Up @@ -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;
}
}
22 changes: 17 additions & 5 deletions js/grake.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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];
Expand All @@ -512,4 +512,16 @@ function Grake()
if(widget.preferences['debugMode'] && widget.preferences['debugMode'] === "on")
opera.postError("Grake," + type + " : " + message);
}
}

// Function generates a random string for use in unique IDs, etc
// @param <int> 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;
}

}
18 changes: 13 additions & 5 deletions js/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down
14 changes: 7 additions & 7 deletions locales/ru/lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (не требует ввода имени и пароля)
Expand All @@ -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\
использовать несколько учётных записей одновременно, пожалуйста используйте <a id='ma_link'>данный метод</a>."
использовать несколько учётных записей одновременно, пожалуйста, используйте <a id='ma_link'>данный метод</a>."

lang.options_dectected_accounts = "Найденные аккаунты:";
lang.options_accounts_header = "Аккаунт(ы) GMail";
Expand All @@ -65,7 +65,7 @@ lang.popup_nomsg = "У вас <strong>нет непрочитанных сооб
lang.popup_onemsg = "У вас <strong>одно непрочитанное сообщение</strong>";
lang.popup_msg_before = "У вас <strong>";
lang.popup_msg_after = " непрочитанных сообщений</strong>";
lang.popup_lastupdate = "Последнее обновление : ";
lang.popup_lastupdate = "Последнее обновление: ";
lang.popup_error_occurred="произошла ошибка";
lang.popup_from = "От: ";
lang.popup_to = "Кому: ";
Expand Down
11 changes: 11 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ Website: http://codebit.de/oex/google-mail
Author : Tom Schreiber <tom.schreiber@codebit.de>

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

Expand Down