Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

I want a new popup to maximize the browser

  • 2 trả lời
  • 1 gặp vấn đề này
  • 3 lượt xem
  • Trả lời mới nhất được viết bởi easily_confused

more options

I hate asking this because I generally don't want any popups, but I need to see the calendar notifications from gmail and they do not do not maximize (well, restore, or de-iconize) my browser. When I get the calander popup, and firefox is minimized, I never see it. How can I get the acceptable receipt of a popup to open/restore/deiconize the iconized browser.

I hate asking this because I generally don't want any popups, but I need to see the calendar notifications from gmail and they do not do not maximize (well, restore, or de-iconize) my browser. When I get the calander popup, and firefox is minimized, I never see it. How can I get the acceptable receipt of a popup to open/restore/deiconize the iconized browser.

Tất cả các câu trả lời (2)

more options

There might be an add-on for this, but if not, you can use the Greasemonkey extension and a userscript. The following script will pop the window up (give it focus) when an alert is fired on a Google Calendar page. I only tested it a couple times, and it certainly could use some refinement, but it might help.

// ==UserScript==
// @name        Google Calendar Alert Alert
// @namespace   YourNameHere
// @description Bring Google Calendar window to the front when the page uses the alert function
// @include     http*://www.google.tld/calendar/*
// @grant none
// ==/UserScript==
var nativeAlert = window.alert;
window.alert = function(msg){
  window.focus();
  nativeAlert(msg);
}

What the script does: it saves a reference to the normal alert() function under the name nativeAlert(), then it overrides the alert() function so that it does an additional thing, which is to give the window (tab) that calls the alert() function the focus, popping it up in front of your currently active application.

I don't use Google calendar, so I don't know whether this will lead to lots of other pop-ups. If so, you might need to add some code to analyze the msg text to make sure you only pop up the window under the right circumstances.

Được chỉnh sửa bởi jscher2000 - Support Volunteer vào

more options

Thanks, but that's a bit too "non-standard" for me to mess with at work. I'll stick to chrome for mail and calendar for now. Thanks for the help though.