MozillaZine

[Ext] userChrome.js

Announce and Discuss the Latest Theme and Extension Releases.
Philip Chee

User avatar
 
Posts: 6475
Joined: March 1st, 2005, 3:03 pm

Post Posted September 6th, 2006, 6:11 pm

Zoolcar9, perhaps you could try window.sizeToContent()

Phil

Zoolcar9

User avatar
 
Posts: 2225
Joined: November 9th, 2004, 6:45 pm
Location: Jakarta, Indonesia (UTC+7)

Post Posted September 6th, 2006, 10:14 pm


It doesn't work, but thanks to you it reminds me to adjust the window size instead of changing the size and position of the button :) (saved me from brain damage)

<a class="postlink" href="data:application/x-javascript;base64,V2luZG93SG9vay5yZWdpc3RlcigiY2hyb21lOi8vYnJvd3Nlci9jb250ZW50L3ByZWZlcmVuY2VzL3ByZWZlcmVuY2VzLnh1bCIsCiAgZnVuY3Rpb24oYVdpbmRvdykgewogICAgZnVuY3Rpb24gYWRkQnV0dG9uKCkgewogICAgICB2YXIgZGxHcm91cCA9IGFXaW5kb3cuZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoImRvd25sb2Fkc0dyb3VwIik7CiAgICAgIGlmKCFkbEdyb3VwKSByZXR1cm47CiAgICAgIHZhciBidXR0b24gPSBhV2luZG93LmRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoImJ1dHRvbiIpOwogICAgICBidXR0b24uc2V0QXR0cmlidXRlKCJsYWJlbCIsICJWaWV3ICYgRWRpdCBEb3dubG9hZCBBY3Rpb25zLi4uIik7CiAgICAgIGJ1dHRvbi5zZXRBdHRyaWJ1dGUoIm9uY29tbWFuZCIsCiAgICAgICAgImRvY3VtZW50LmRvY3VtZW50RWxlbWVudC5vcGVuV2luZG93KCIgKwogICAgICAgICInUHJlZmVyZW5jZXM6RG93bmxvYWRBY3Rpb25zJywgIiArCiAgICAgICAgIidjaHJvbWU6Ly9icm93c2VyL2NvbnRlbnQvcHJlZmVyZW5jZXMvZG93bmxvYWRhY3Rpb25zLnh1bCcsICIgKwogICAgICAgICInJywgbnVsbCk7Iik7CiAgICAgIGRsR3JvdXAuYXBwZW5kQ2hpbGQoYnV0dG9uKTsKICAgIH0KICAgIGFkZEJ1dHRvbigpOwogICAgYVdpbmRvdy5kb2N1bWVudC5nZXRFbGVtZW50QnlJZCgicGFuZU1haW4iKQogICAgICAuYWRkRXZlbnRMaXN0ZW5lcigicGFuZWxvYWQiLCBhZGRCdXR0b24sIGZhbHNlKTsKICAgIGFXaW5kb3cuZG9jdW1lbnQuZG9jdW1lbnRFbGVtZW50LnN0eWxlLmhlaWdodCA9ICI0M2VtIjsKICB9Cik7">This one works</a>
Code: Select all
aWindow.document.documentElement.style.height = "43em";

Increase/decrease the value to match your Options dialog.

My Firefox information | Add-ons | GitHub

"With great power, comes great desire to show it off."

SilentJ
 
Posts: 251
Joined: November 8th, 2002, 6:42 am

Post Posted September 12th, 2006, 10:14 am

Hi guys, though you might find this useful...it adds undo close tab to the main context menu....not sure if its been posted before, i sussed it out after looking at a couple of the other code samples

Code: Select all

var undoCloseTabAdd = {

  init: function()
  {
    this.mItem = document.createElement("menuitem");
    this.mItemSep = document.createElement("menuseparator");
    this.mItem.setAttribute("label", "Undo Close Tab");
    this.mItem.setAttribute("oncommand", "undoCloseTab();");

    document.getElementById("contentAreaContextMenu").addEventListener("popupshowing", function() { undoCloseTabAdd.onPopupShowing(this); }, false);
  },

  onPopupShowing: function(aPopup)
  {
 
    var ss = Components.classes["@mozilla.org/browser/sessionstore;1"].getService(Components.interfaces.nsISessionStore);
 
    aPopup.insertBefore(this.mItemSep, document.getElementById("context-sep-" + ((gContextMenu.onLink)?"open":"stop")));
    aPopup.insertBefore(this.mItem, document.getElementById("context-sep-" + ((gContextMenu.onLink)?"open":"stop")));

    this.mItem.hidden = gContextMenu.onLink || gContextMenu.isTextSelected || gContextMenu.onImage || gContextMenu.onTextInput ;
    this.mItemSep.hidden = this.mItem.hidden ;
    this.mItem.setAttribute("disabled", ss.getClosedTabCount(window) == 0);
  },


};

undoCloseTabAdd.init();


paulfox
 
Posts: 1510
Joined: May 8th, 2004, 1:38 pm

Post Posted September 12th, 2006, 10:31 am

YES YES YES! Brilliant. Thank you very much, SilentJ. That's a proud keeper - great work.
Only comes up when you've closed a tab, and disappears after it does its job. Yeah!!
Last edited by paulfox on October 19th, 2006, 8:56 pm, edited 1 time in total.
PentiumIII/W2K, Toshiba AMD laptop/Vista. FX 3 on both.

Zoolcar9

User avatar
 
Posts: 2225
Joined: November 9th, 2004, 6:45 pm
Location: Jakarta, Indonesia (UTC+7)

Post Posted September 12th, 2006, 12:13 pm


View Selection Source in Tab
Middle click on "View Selection Source" on context menu to view selection source in a new tab.

My Firefox information | Add-ons | GitHub

"With great power, comes great desire to show it off."

aronin
 
Posts: 243
Joined: November 9th, 2005, 7:31 pm

Post Posted September 12th, 2006, 6:52 pm

Does anyone have a code than will allow me to open the Download Manager in a New Tab by default? There is code somewhere in this thread which will allow me to open the Download Manager in a New Tab upon clicking Ctrl+J or clicking the Toolbar icon. Can it be modified so that it opens in the New Tab by default when the download begins?

Diorser

User avatar
 
Posts: 960
Joined: June 22nd, 2005, 6:57 am

Post Posted September 13th, 2006, 5:50 am

Code: Select all
// JavaScript Document
// Download Manager open in Tab
document.getElementById("Tools:Downloads").setAttribute("oncommand", '(getBrowser().selectedTab = getBrowser().addTab("chrome://mozapps/content/downloads/downloads.xul")).label = "Download Manager";');

Diorser

User avatar
 
Posts: 960
Joined: June 22nd, 2005, 6:57 am

Post Posted September 13th, 2006, 5:54 am

@SilentJ
Is your undo close tab supposed to work with Fx 1.5.0.6&7 ?
KDE4.3 RC

Zoolcar9

User avatar
 
Posts: 2225
Joined: November 9th, 2004, 6:45 pm
Location: Jakarta, Indonesia (UTC+7)

Post Posted September 13th, 2006, 11:26 am


No. It's a built-in feature on Firefox started from version 2.0b1

My Firefox information | Add-ons | GitHub

"With great power, comes great desire to show it off."

SilentJ
 
Posts: 251
Joined: November 8th, 2002, 6:42 am

Post Posted September 13th, 2006, 11:53 am

Diorser wrote:@SilentJ
Is your undo close tab supposed to work with Fx 1.5.0.6&7 ?


.....what Zoolcar9 said, however, look on page 1 of this thread and there is a link to undo close tab menu item that works if you have the crash recovery extension installed for Fx 1.5....

aronin
 
Posts: 243
Joined: November 9th, 2005, 7:31 pm

Post Posted September 13th, 2006, 12:15 pm

Diorser wrote:
Code: Select all
// JavaScript Document
// Download Manager open in Tab
document.getElementById("Tools:Downloads").setAttribute("oncommand", '(getBrowser().selectedTab = getBrowser().addTab("chrome://mozapps/content/downloads/downloads.xul")).label = "Download Manager";');


I have been using this code, but this code opens the download manager in Tab only if opened through Ctrl+J or by clicking the toolbar button.

If I set the option to "Show the Download window when downloading a file" in Options, the Download manager opens in the usual resized small window and not in a New Tab. Or am I missing something?

I want the Download Window to open in New Tab automatically when a download starts. Isn't that possible?

Diorser

User avatar
 
Posts: 960
Joined: June 22nd, 2005, 6:57 am

Post Posted September 13th, 2006, 2:01 pm

@aronin
I see what you mean but don't have the answer. Hope some one can help you !

SevenSeven
 
Posts: 33
Joined: February 8th, 2004, 1:05 pm

Post Posted September 16th, 2006, 7:40 pm

Sharing more snippets, tested only with 2.0 branch 20060915.

<a href="data:application/x-javascript;charset=utf-8;base64,Lyo9PT09PT09IE9wZW4gdXJsYmFyJ3MvYm9va21hcmtzIGluIG5ldyBmZyB0YWIgb3IgaW4gY3VycmVudCB0YWIgaWYgaXQncyBibGFuayA9PT09PT09Ki8NCg0KZXZhbCgiQnJvd3NlckxvYWRVUkwgPSAiICsgQnJvd3NlckxvYWRVUkwudG9TdHJpbmcoKS5yZXBsYWNlKCJlOyIsICIkJiBpZiAoZ0Jyb3dzZXIuY3VycmVudFVSSS5zcGVjICE9ICdhYm91dDpibGFuaycgfHwgZ0Jyb3dzZXIud2ViUHJvZ3Jlc3MuaXNMb2FkaW5nRG9jdW1lbnQpIHsgdmFyIHRhYiA9IGdCcm93c2VyLmFkZFRhYigpOyBnQnJvd3Nlci5zZWxlY3RlZFRhYiA9IHRhYjsgfSIpKQ0KZXZhbCgiQm9va21hcmtzQ29tbWFuZC5vcGVuT25lQm9va21hcmsgPSAiICsgQm9va21hcmtzQ29tbWFuZC5vcGVuT25lQm9va21hcmsudG9TdHJpbmcoKS5yZXBsYWNlKCJvcGVuIiwgImlmIChnQnJvd3Nlci5jdXJyZW50VVJJLnNwZWMgIT0gJ2Fib3V0OmJsYW5rJyB8fCBnQnJvd3Nlci53ZWJQcm9ncmVzcy5pc0xvYWRpbmdEb2N1bWVudCkgeyB2YXIgdGFiID0gZ0Jyb3dzZXIuYWRkVGFiKCk7IGdCcm93c2VyLnNlbGVjdGVkVGFiID0gdGFiOyB9ICQmIikpDQo%3D">Open urlbar URL's and bookmarks in new foreground tab or in current tab if it's blank</a>

aronin
 
Posts: 243
Joined: November 9th, 2005, 7:31 pm

Post Posted September 17th, 2006, 3:51 pm

SevenSeven wrote:Sharing more snippets, tested only with 2.0 branch 20060915.

<a href="data:application/x-javascript;charset=utf-8;base64,Lyo9PT09PT09IE9wZW4gdXJsYmFyJ3MvYm9va21hcmtzIGluIG5ldyBmZyB0YWIgb3IgaW4gY3VycmVudCB0YWIgaWYgaXQncyBibGFuayA9PT09PT09Ki8NCg0KZXZhbCgiQnJvd3NlckxvYWRVUkwgPSAiICsgQnJvd3NlckxvYWRVUkwudG9TdHJpbmcoKS5yZXBsYWNlKCJlOyIsICIkJiBpZiAoZ0Jyb3dzZXIuY3VycmVudFVSSS5zcGVjICE9ICdhYm91dDpibGFuaycgfHwgZ0Jyb3dzZXIud2ViUHJvZ3Jlc3MuaXNMb2FkaW5nRG9jdW1lbnQpIHsgdmFyIHRhYiA9IGdCcm93c2VyLmFkZFRhYigpOyBnQnJvd3Nlci5zZWxlY3RlZFRhYiA9IHRhYjsgfSIpKQ0KZXZhbCgiQm9va21hcmtzQ29tbWFuZC5vcGVuT25lQm9va21hcmsgPSAiICsgQm9va21hcmtzQ29tbWFuZC5vcGVuT25lQm9va21hcmsudG9TdHJpbmcoKS5yZXBsYWNlKCJvcGVuIiwgImlmIChnQnJvd3Nlci5jdXJyZW50VVJJLnNwZWMgIT0gJ2Fib3V0OmJsYW5rJyB8fCBnQnJvd3Nlci53ZWJQcm9ncmVzcy5pc0xvYWRpbmdEb2N1bWVudCkgeyB2YXIgdGFiID0gZ0Jyb3dzZXIuYWRkVGFiKCk7IGdCcm93c2VyLnNlbGVjdGVkVGFiID0gdGFiOyB9ICQmIikpDQo%3D">Open urlbar URL's and bookmarks in new foreground tab or in current tab if it's blank</a>


You made my Day!!! Thank You So Much. This is FANTASTIC.

SevenSeven
 
Posts: 33
Joined: February 8th, 2004, 1:05 pm

Post Posted September 17th, 2006, 7:38 pm

Another fantastic snippet that adds some functions to the tab context menu, tested only with 2.0 branch 20060917:

Close All Tabs
Close Left Tabs
Close Right Tabs
Purge Tab History

<a href="data:application/x-javascript;charset=utf-8;base64,Lyo9PT09PT09IE1vcmUgZnVuY3Rpb25zIGZvciB0YWIgY29udGV4dCBtZW51ID09PT09PT0qLw0KDQp2YXIgdGhpc19tRkZUQzsNCg0KdmFyIG1vcmVGdW5jc0ZvclRhYkNvbnRleHRtZW51ID0gew0KCWluaXQ6IGZ1bmN0aW9uKCkgew0KCQl2YXIgdGFiTWVudSA9IGRvY3VtZW50LmdldEFub255bW91c0VsZW1lbnRCeUF0dHJpYnV0ZShnQnJvd3NlciwgImFub25pZCIsICJ0YWJDb250ZXh0TWVudSIpOw0KCQl2YXIgZnVuY3MgPSBbXTsNCgkJdmFyIG0gPSAibW9yZUZ1bmNzRm9yVGFiQ29udGV4dG1lbnUuIjsNCgkJZnVuY3MucHVzaCh7IGxhYmVsOiAiUHVyZ2UgVGFiIEhpc3RvcnkiLCBjb21tYW5kOiBtKyJwdXJnZVRhYkhpc3RvcnkoKTsiIH0pOw0KCQlmdW5jcy5wdXNoKHsgbGFiZWw6ICJDbG9zZSBSaWdodCBUYWJzIiwgY29tbWFuZDogImdCcm93c2VyLmNsb3NlUmlnaHRUYWJzKGdCcm93c2VyLm1Db250ZXh0VGFiKTsiIH0pOw0KCQlmdW5jcy5wdXNoKH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zLmxlbmd0aCAtIDE7IGkgPiBhVGFiLl90UG9zOyBpLS0gKQ0KCQl0aGlzLnJlbW92ZVRhYihjaGlsZE5vZGVzW2ldKTsNCn0NCg0KZ0Jyb3dzZXIuY2xvc2VMZWZ0VGFicyA9IGZ1bmN0aW9uIChhVGFiKQ0Kew0KCWlmIChhVGFiLmxvY2FsTmFtZSAhPSAidGFiIikNCgkJYVRhYiA9IHRoaXMubUN1cnJlbnRUYWI7DQoNCglpZiAoIGFUYWIuX3RQb3MgPiB0aGlzLm1DdXJyZW50VGFiLl90UG9zICkNCgkJdGhpcy5tVGFiQ29udGFpbmVyLnNlbGVjdGVkSXRlbSA9IGFUYWI7DQoNCgl2YXIgY2hpbGROb2RlcyA9IHRoaXMubVRhYkNvbnRhaW5lci5jaGlsZE5vZGVzOw0KCWZvciAoIGkgPSBhVGFiLl90UG9zIC0gMTsgaSA%2BPSAwOyBpLS0gKQ0KCQl0aGlzLnJlbW92ZVRhYihjaGlsZE5vZGVzW2ldKTsNCn0NCg0KZ0Jyb3dzZXIuY2xvc2VBbGxUYWJzID0gZnVuY3Rpb24gKCkNCnsNCgl2YXIgY2hpbGROb2RlcyA9IHRoaXMubVRhYkNvbnRhaW5lci5jaGlsZE5vZGVzOw0KDQoJZm9yICh2YXIgaSA9IGNoaWxkTm9kZXMubGVuZ3RoIC0gMTsgaSA%2BPSAwOyAtLWkpIHsNCgkJaWYgKGNoaWxkTm9kZXNbaV0gIT0gdGhpcy5tQ3VycmVudFRhYikNCgkJdGhpcy5yZW1vdmVUYWIoY2hpbGROb2Rlc1tpXSk7DQoJfQ0KCXRoaXMucmVtb3ZlVGFiKHRoaXMubUN1cnJlbnRUYWIpOw0KfQ%3D%3D">code</a>
Last edited by SevenSeven on September 19th, 2006, 1:47 am, edited 4 times in total.

Return to Extension/Theme Releases


Who is online

Users browsing this forum: No registered users and 1 guest