TOPIC: Tip: Firefox "please wait" message box while load

Tip: Firefox "please wait" message box while load 08 Nov 2012 17:04 #603975

  • Pilosopong Tasyo's Avatar Topic Author
  • Pilosopong Tasyo
  • Offline
  • Staff Emeritus
  • Staff Emeritus
  • Posts: 2200
  • Thanks: 521
Tip: "Please wait" message box habang loading ang Firefox

Palagi kong napapansin sa mga customers ko na kung medyo matagal mag-load ang Firefox pagkatapos nilang i-click yung icon sa launcher, may tendency na i-click nila yung icon ng paulit-ulit. Ang resulta nito ay biglang dadami ang lalabas na browser windows. Minodify ko yung desktop launcher ng Firefox upang:

(a) May lalabas na simpleng "please wait" message box (o small splash screen), at
(b) Isang instance lang ng Firefox ang papayagang na mag-run kahit na paulit-ulit na click nila ang icon habang naglo-load ang Firefox.

Ang procedure na ito ay applicable sa Ubuntu 12.04 gamit ang Unity desktop. Depende sa setup ninyo, maaaring may konting pagbabago.

(1) Siguraduhing naka-install ang yad package .
sudo apt-get install yad

(2) Kopyahin ang Firefox desktop launcher sa local Firefox folder.
cp /usr/share/applications/firefox.desktop ~/.mozilla/firefox/

(3) Buksan yung desktop file.
gedit ~/.mozilla/firefox/firefox.desktop

(4) Maaaring alisin ang karamihan sa mga nakasulat. Ang maiiwan na text ay kagaya ng sumusunod:
[Desktop Entry]
Version=1.0
Name=Firefox Web Browser
Comment=Browse the World Wide Web
GenericName=Web Browser
Keywords=Internet;WWW;Browser;Web;Explorer
Exec=firefox %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=firefox
Categories=GNOME;GTK;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;
StartupNotify=true

(5) Ang line na imo-modify ay ang sumusunod:
Exec=firefox %u

Papalitan ito ng:
Exec=sh -c "if [ `pidof -x firefox | wc -w` -eq 0 ] ; then yad --timeout=15 --timeout-indicator=bottom --no-buttons --sticky --center --on-top --undecorated --skip-taskbar --image=firefox --text='  Mangyaring maghintay ng ilang saglit  \n  habang naglo-load ang Firefox.\n  Maraming salamat.\n' & firefox %u ; fi"

Ang numero sa --timeout= parameter ay maaaring palitan. Estimate kung ilang segundo ang kailangan sa paghintay bago lumitaw ang browser sa screen. Sa itaas na halimbawa, 15 segundo.

(6) Save ang file at isara ang text editor. Buksan ang folder kung saan nakasave ang na-modify na firefox.desktop file.
nautilus ~/.mozilla/firefox

(7) Drag lang ang firefox.desktop file mula sa Nautilus paputang Unity launcher. Pag click sa icon, ito ang lalabas:

This image is hidden for guests.
Please log in or register to see it.

The following user(s) said Thank You: jeffjeffjapjap, h5191979

Please Log in or Create an account to join the conversation.

Re: Tip: Firefox "please wait" message box while load 08 Nov 2012 17:12 #603978

  • jeffjeffjapjap's Avatar
  • jeffjeffjapjap
  • Online
  • Gold Boarder
  • Gold Boarder
  • Posts: 2151
  • Thanks: 744
Wish ko na all the way ubuntu din sana ako
kaso malaking bahagi ng market ko now ang Crossfire, and some NFS games.

Nice share sir ^_^

Windows users could use some batch commands to show some "please wait" hehe

Please Log in or Create an account to join the conversation.

Re: Tip: Firefox "please wait" message box while load 08 Nov 2012 17:37 #603990

  • Pilosopong Tasyo's Avatar Topic Author
  • Pilosopong Tasyo
  • Offline
  • Staff Emeritus
  • Staff Emeritus
  • Posts: 2200
  • Thanks: 521
Yung ibang applications kasi walang splash screen eh kaya walang feedback sa user, unlike halimbawa Libre/OpenOffice na display agad ang splash screen.

Please Log in or Create an account to join the conversation.

Re: Tip: Firefox "please wait" message box while load 08 Nov 2012 17:51 #604002

  • Pilosopong Tasyo's Avatar Topic Author
  • Pilosopong Tasyo
  • Offline
  • Staff Emeritus
  • Staff Emeritus
  • Posts: 2200
  • Thanks: 521

Pilosopong Tasyo wrote: (6) Save ang file at isara ang text editor. Buksan ang folder kung saan nakasave ang na-modify na firefox.desktop file.

nautilus ~/.mozilla/firefox


Optional: Gawing executable ang firefox.desktop file bago buksan ang Nautilus file browser:
chmod u=rwx,go=rx ~/.mozilla/firefox/firefox.desktop

Please Log in or Create an account to join the conversation.

Re: Tip: Firefox "please wait" message box while load 09 Nov 2012 03:21 #604183

  • hedikong's Avatar
  • hedikong
  • Online
  • Junior Boarder
  • Junior Boarder
  • Posts: 245
  • Thanks: 11
Magandang idea, meron din pala nito na official extension ng firefox pero hindi na updated pang windows din hanggang pang firefox version 3 nga lang.


Meron din akong nakita medyo hawig, pwede sa ibang application, hindi ko pa lang mapatino, nageerror sa firefox pero sa ibang application OK naman.

splash injector

Please Log in or Create an account to join the conversation.

Last edit: Post by hedikong.

Re: Tip: Firefox "please wait" message box while load 09 Nov 2012 15:42 #604258

  • t84's Avatar
  • t84
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 7072
  • Thanks: 752
Injectors --- Trojan Horses :)

Please Log in or Create an account to join the conversation.

Re: Tip: Firefox "please wait" message box while load 10 Nov 2012 06:00 #604574

  • hedikong's Avatar
  • hedikong
  • Online
  • Junior Boarder
  • Junior Boarder
  • Posts: 245
  • Thanks: 11
try it with sandboxie and analyze it yourself for your peace of mind

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Moderators: Itwarehouse Speclin
Time to create page: 0.087 seconds