[Ext] Custom Buttons 0.0.1.2
-
- Posts: 0
- Joined: December 31st, 1969, 5:00 pm
Damn, Zoolcar9, i meant LEFT click! Sorry for the confusion!... Now, with the right click/home page, i don't get the context menu and can't delete/edit this button - of course! it opens home page tabs!! This is when it would be nice to hear from Yan about that button manager.
Arrghh! May i trouble you for another try, this time - the left single click to open home page (instead of a new tab). I'm very sorry and thank you any way!
EDIT: i've managed to delete the button by dragging it to another toolbar and since it initializes on the first click, i was able to get that context menu and delete it. Phew!
Arrghh! May i trouble you for another try, this time - the left single click to open home page (instead of a new tab). I'm very sorry and thank you any way!
EDIT: i've managed to delete the button by dragging it to another toolbar and since it initializes on the first click, i was able to get that context menu and delete it. Phew!
-
- Posts: 2225
- Joined: November 9th, 2004, 6:45 pm
- Location: Jakarta, Indonesia (UTC+7)
- Contact:
If that case, just replace <code>BrowserOpenTab();</code> in Code tab with <code>this.newTab("home");</code>
or you might want to try:
<a href="custombutton://Home%5D%5Bdata%3Aimage/png%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAEG0lEQVR4AQEQBO/7Af///wAAAAAAAAAAAAAAAABqPAdfGh4RYQAAAADm4u8A/v8A0QAAAPD7/v/v2+r/ocLd++8AAAAAAAAAAAAAAAAB////AAAAAAAAAAAAajwHXzA4IKBgcTkA/vn0AP8AAQD49gAA9vP3AJCIzQDQ2OzT6/X/RNHl/ev/////AAAAAAIAAAAAAAAAAGo8B18wOSGgYXM6APzp0AD24tAA9N/TAAYH/QDBud8ADidQACxAWi0SCgGSAAAABwAAAAAAAAAABAAAAABqPAdfMDggoGBxNwD86tEA/Pn5AP//AQALHysAy8PoANrsLAAWMD8AFQECAPTu5Vf9/sHTAQEBiv////sCajwHXy83HqBdbDIA+eTOAPr09QD79/oACRwsAOHd9QDAyAwAHzhaACglIAABBgkAMkVgABkcIYQ5IANIAQEBAwL/AAAxEBIKAP7+AgAACBQA+/j9AAYUIgDz8wIAs6/tACA7YADW9AUAgc//APAVJgARExUASmOEABIRDqQyHAMoA8zj/bsIGUx+0rnDABUZEgAbKSMA/AAJAKWZ1QAcPXgAExcaABsjIwABFB4AOiUUACUQAgD/AwkAAwwdB+fVviME/////WVzjgAIGjoAn7G0ACW6yAAICgUAIUKIAA0VHQAkIRkACwsLAEAB/gACAvkAAREYAAgJCgC3vQkAvtv8bAQAAAAAFBMQAFVXUQC4GSIA5d7YAPz38QA2JC4AFxMJABIREQCztbkA5eXmAN/f4ACNi4cAGxkUAAkIBgAAAAD9BAAAAAAAAAAABAQDACkpIgAWFxQA4eLqABoXEQAJBwEAAQECAIiJjgALDAwA9vX2AAEBAgABAP4ABAQDAAAAAAACAAAAAAAAAAAIBQMACAYDAAwMCAAkIxcAEQ8LAAEBAQABAQEAEhMVAB4fIgAREhMAAAEBAAEBAQAAAAAAAAAAAAIAAAAA2tzhoqaqtwAiFw8AEQwHAAAAAAAAAAEAAQEBAAABAQAMDQ4AERITAAwNDgAAAAAAAQABAAABAAAAAAAABAAAAACun4Jj9/Vx3eTl6oFqZVQABwQQAAAAAAAAAAEAAAAAAAkKCwANDQ4ACQoLAAICAgDg4+gA9vb4AAAAAAAEAAAAAAAAAP+3qo+YQEti6YSJ8YpoZFMOAQITAAYGCADk5+4AAAQLAO7z/gD9BRMAVGOA5f38+9f6+ffXAAAA/wH///8AAAAAAAEBAQcAAAAQMz1PNR0iLYotKSIp1Njf5f38+9f6+ffX8vDryODaztbm4djyAAAA/wAAAP0AAAD5Af///wAAAAAAAAAAAAEBAQcAAAAPGyAqGP///wHm4dfyAAAA/gAAAPsAAAD6AAAA+wAAAPwAAAD7AAAA/gAAAACkMCloYCYU0gAAAABJRU5ErkJggg%3D%3D%5D%5B%5D%5Bvar%20test%20%3D%20document.getElementById%28%22cbContext-openHome%22%29%3B%0Aif%28test%29%20test.parentNode.removeChild%28test%29%3B%0A%0Athis.popupShowing%20%3D%20function%28node%29%20%7B%0A%20%20var%20urls%2C%20mItems%2C%20mItem%3B%0A%20%20mItems%20%3D%20node.childNodes.length-2%3B%0A%20%20for%28var%20i%20%3D%200%3B%20i%20%3C%20mItems%3B%20i++%29%20%7B%0A%20%20%20%20mItem%20%3D%20node.firstChild%3B%0A%20%20%20%20node.removeChild%28mItem%29%3B%0A%20%20%7D%0A%20%20urls%20%3D%20gHomeButton.getHomePage%28%29.split%28%22%7C%22%29%3B%0A%20%20for%28var%20j%20%3D%20urls.length-1%3B%20j%20%3E%3D%200%3B%20j--%29%20%7B%0A%20%20%20%20mItem%20%3D%20document.createElement%28%22menuitem%22%29%3B%0A%20%20%20%20mItem.setAttribute%28%22label%22%2C%20urls%5Bj%5D%29%3B%0A%20%20%20%20mItem.setAttribute%28%22oncommand%22%2C%20%22openUILink%28this.label%2C%20event%2C%20false%2C%20true%29%22%29%3B%0A%20%20%20%20mItem.setAttribute%28%22onclick%22%2C%20%22checkForMiddleClick%28this%2C%20event%29%22%29%3B%0A%20%20%20%20node.insertBefore%28mItem%2C%20node.firstChild%29%3B%0A%20%20%7D%0A%7D%0A%0Athis.onMouseOver%20%3D%20function%28%29%20%7B%0A%20%20var%20homePage%20%3D%20gHomeButton.getHomePage%28%29%3B%0A%20%20homePage%20%3D%20homePage.replace%28/%5C%7C/g%2C%27%2C%20%27%29%3B%0A%20%20this.tooltipText%20%3D%20homePage%3B%0A%7D%0A%0Avar%20cbPopup%20%3D%20document.getElementById%28%22custombuttons-contextpopup%22%29.cloneNode%28true%29%3B%0Avar%20cbItems%20%3D%20cbPopup.childNodes.length%3B%0A%0Avar%20subPopup%20%3D%20document.createElement%28%22menupopup%22%29%3B%0AsubPopup.setAttribute%28%22onpopupshowing%22%2C%20%22event.stopPropagation%28%29%3B%22%29%3B%0Afor%28var%20i%20%3D%200%3B%20i%20%3C%20cbItems%3B%20i++%29%20%7B%0A%20%20subPopup.appendChild%28cbPopup.firstChild%29%3B%0A%7D%0A%0Avar%20subMenu%20%3D%20document.createElement%28%22menu%22%29%3B%0AsubMenu.setAttribute%28%22label%22%2C%20%22Custom%20Button%22%29%3B%0AsubMenu.appendChild%28subPopup%29%3B%0A%0Avar%20mPopup%20%3D%20document.createElement%28%22popup%22%29%3B%0AmPopup.id%20%3D%20%22cbContext-openHome%22%3B%0AmPopup.popupShowing%20%3D%20this.popupShowing.bind%28this%29%3B%0AmPopup.setAttribute%28%22onpopupshowing%22%2C%20%22this.popupShowing%28this%29%3B%22%29%3B%0AmPopup.appendChild%28document.createElement%28%22menuseparator%22%29%29%3B%0AmPopup.appendChild%28subMenu%29%3B%0A%0Adocument.getElementById%28%22mainPopupSet%22%29.appendChild%28mPopup%29%3B%0A%0Athis.setAttribute%28%22context%22%2C%20mPopup.id%29%3B%0Athis.setAttribute%28%22onclick%22%2C%20%22BrowserHomeClick%28event%29%22%29%3B%0Athis.setAttribute%28%22onmouseover%22%2C%20%22this.onMouseOver%28%29%22%29%3B%0Athis.setAttribute%28%22ondragover%22%2C%20%22nsDragAndDrop.dragOver%28event%2C%20homeButtonObserver%29%22%29%3B%0Athis.setAttribute%28%22ondragdrop%22%2C%20%22nsDragAndDrop.drop%28event%2C%20homeButtonObserver%29%22%29%3B%0Athis.setAttribute%28%22ondragexit%22%2C%20%22nsDragAndDrop.dragExit%28event%2C%20homeButtonObserver%29%22%29%3B%0A%0A">Home button with context menu</a>
This is useful if you have multiple home pages, and wants to open only one of them.
Last edited by Zoolcar9 on July 5th, 2006, 6:33 am, edited 1 time in total.
-
- Posts: 0
- Joined: December 31st, 1969, 5:00 pm
-
- Posts: 2225
- Joined: November 9th, 2004, 6:45 pm
- Location: Jakarta, Indonesia (UTC+7)
- Contact:
Code: Select all
eval("openPreferences = " + openPreferences.toString().replace(/\,modal/, ""));
-
- Posts: 0
- Joined: December 31st, 1969, 5:00 pm
Zoolcar9 wrote:Code: Select all
eval("openPreferences = " + openPreferences.toString().replace(/\,modal/, ""));
Perfect! Thank you Does this come natural for you or have you studied it?
-
- Posts: 756
- Joined: May 15th, 2005, 2:31 am
This button opens the Customize Toolbar window.
<a href="custombutton://Customize%20Toolbar%5D%5B%5D%5BBrowserCustomizeToolbar%28%29%3B%5D%5B/*Initialization%20Code*/">Customize Toolbar</a>
<a href="custombutton://Customize%20Toolbar%5D%5B%5D%5BBrowserCustomizeToolbar%28%29%3B%5D%5B/*Initialization%20Code*/">Customize Toolbar</a>
Linkify bug numbers - test: bug 258287
-
- Posts: 0
- Joined: December 31st, 1969, 5:00 pm
-
- Posts: 2225
- Joined: November 9th, 2004, 6:45 pm
- Location: Jakarta, Indonesia (UTC+7)
- Contact:
- ConQuery button menu
Now can use searchbar as search query. Requires ConQuery extension. - Updated Google Site Search button
- Updated data:URI Generator button
makondo wrote:Thanks, Zoolcar9! The Home button is exactly what i was looking for - really appreaciate it!
I wrote one for userChrome.js for used with default Home button
http://forums.mozillazine.org/viewtopic ... 61#2355561
-
- Posts: 0
- Joined: December 31st, 1969, 5:00 pm
-
- Posts: 2225
- Joined: November 9th, 2004, 6:45 pm
- Location: Jakarta, Indonesia (UTC+7)
- Contact:
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAMwSURBVHja1JRLaFxlFMd/d2bu3DuvTDKvvCYzmSSmg3WwNWDEiiA+QKigSBeFqogbQXHjRrrQhaIiuFLQlYp0rxQENQUX1VStTekjbTPNNJ1kMs9MZnLn3pk7z+tNC4WamnapZ/fxne/HOf//+Q7810O4W8LWb18azVKBnuTDNeTEs/+1Xd/Y/u3i+/feMtZTKTbzDSxNnbaa49J8HmXuY0PwhfHMHBHuCZj95k1D9gfQtxTkxF7UdgnZIdJRGlxIruH2ikxNqTT++MLodnq4D7wh7AoUXR6SC0v8tbBGbCLE+WtVnjsQJpcpkYh5abXanPj5HJPhVUbGQ7tXuHzsqNEoF+mIDkqKTulykcKGgsY4VqeLlXyN0yeSREcDpAt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1Xd/Y/u3i+/feMtZTKTbzDSxNnbaa49J8HmXuY0PwhfHMHBHuCZj95k1D9gfQtxTkxF7UdgnZIdJRGlxIruH2ikxNqTT++MLodnq4D7wh7AoUXR6SC0v8tbBGbCLE+WtVnjsQJpcpkYh5abXanPj5HJPhVUbGQ7tXuHzsqNEoF+mIDkqKTulykcKGgsY4VqeLlXyN0yeSREcDpAt1opnKDQn6nn5HuCPQKxm0OzJbpSy1dg+r0eSlV5/B0VFIK00iQSdX3BK1un4jf6Oi8ZTZ9h1dvvjJy0a1XCNb61Bcr/D4bARvyEc5W2Z8/x48Y2EWz2dYv5hk0CfiFC3YPW58w36zLDu+Z48Kt1XYavbwOK0Ur5SoYefH+TRP7GsydzbHQZvAiKld/L5h5M0MFpuFmtSP22HcbNM872i5rmooSp3YngilssJ4eJTltSKrBZVCvoLLaaOYq5C+vIKmtnnkxSdx+gagamquqbeAt9CS2cKKKfTkhJ94fJTpqSBW2Y63z4nDIXMmWeGHX5boeQeJxGM39dLrnD19Db1a3Ql0DfRRrDQQtCpDcotfT12l3ZM4OBMiNNxPrqyTK1QY8RoMBUW0lWU+//Q7dNOg7VHbAbz/7a+FeMxP8nqVbrdrOtliMZVF6dhYSm3w0FQ/e6MDiKJIQ2ty/GQatSuQ2BcleOgjYQdwOw5/9ZOgai0WLuSZDkqoaoPEzCTFzfq2a4hWgUbb4NSlCroJdVsN8+e4bhsbyz8nPeB3ouhdZEnk0GNjpmtdZh8cJZnVsMsic/Mpfj+3imLO6aOJEL7nPxDuum3+fP8Vo5zJEAj24xsJ8O3xRWqqaVjIxezDE1wv6jwwHSL++mfCPa+vq8c+NITNZQSbyMkz60hGm/BwH9ExL47BCMEX3hX4X8bfAgwA3uZR9fiASu0AAAAASUVORK5CYII%3D%5D%5BdeleteUnprotectedCookies%28%29%3B%5D%5Bthis.onClick%20%3D%20function%28evt%29%20%7B%0A%20%20switch%28evt.button%29%20%7B%0A%20%20%20%20case%202%3A%0A%20%20%20%20%20%20openDialog%28%22chrome%3A//cookieculler/content/CookieCuller.xul%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22CookieCuller%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22centerscreen%2C%20chrome%2C%20dialog%3D0%2C%20resizable%22%29%3B%0A%20%20%20%20%20%20break%3B%0A%20%20%20%20case%201%3A%0A%20%20%20%20%20%20var%20popup%20%3D%20document.getElementById%28%22custombuttons-contextpopup%22%29%3B%0A%20%20%20%20%20%20var%20x%20%3D%20this.boxObject.x%3B%0A%20%20%20%20%20%20var%20y%20%3D%20this.boxObject.y%20+%20this.boxObject.height%3B%0A%20%20%20%20%20%20document.popupNode%20%3D%20this%3B%0A%20%20%20%20%20%20popup.showPopup%28this%2C%20x%2C%20y%2C%20%22popup%22%2C%20null%2C%20null%29%3B%0A%20%20%7D%0A%7D%0A%0Athis.setAttribute%28%22context%22%2C%20%22%22%29%3B%0Athis.setAttribute%28%22onclick%22%2C%20%22this.onClick%28event%29%22%29%3B%0Athis.tooltipText%20%3D%20%22Enhanced%20Cookie%20Manager%22%3B%0A%0A">CookieCuller</a>
-
- Posts: 0
- Joined: December 31st, 1969, 5:00 pm
-
- Posts: 2225
- Joined: November 9th, 2004, 6:45 pm
- Location: Jakarta, Indonesia (UTC+7)
- Contact:
-
- Posts: 0
- Joined: December 31st, 1969, 5:00 pm
Oh, great! Thank you!
I'm having another problem (which i thought will go away somehow but it doesn't) - my toolbar is re-arranged on every start up/restart. I can see that all but custom buttons get loaded all right, then custom buttons show up and they're all over the toolbar and not where i've placed them and where they were on closing Fx. Since nobody has mentioned this here, as well as the prob with double confirmation dialogs, i guess it's my profile - css/styles? Will have to try in another profile (time permits). If any body has this probs/ideas, i'd appreciate an input, thank you!
I'm having another problem (which i thought will go away somehow but it doesn't) - my toolbar is re-arranged on every start up/restart. I can see that all but custom buttons get loaded all right, then custom buttons show up and they're all over the toolbar and not where i've placed them and where they were on closing Fx. Since nobody has mentioned this here, as well as the prob with double confirmation dialogs, i guess it's my profile - css/styles? Will have to try in another profile (time permits). If any body has this probs/ideas, i'd appreciate an input, thank you!
-
- Posts: 23
- Joined: January 25th, 2005, 12:07 am
- DynaBMan
- Posts: 383
- Joined: November 15th, 2003, 9:46 pm
- Location: Oklahoma
Can someone explain how to install one of these buttons into Thunderbird? I have the extension installed into Thunderbird and I tried to copy the clock button code into a new button, but all I get in the customize toolbar window is the word "Clocks" and there isn't an image when I drag it to the toolbar.
As far as the CPU usage goes, I had the same problem and through trial and error, I discovered that the InFormEnter extension was causing the problem. As soon as I disabled InFormEnter, the CPU usage dropped like a rock.
As far as the CPU usage goes, I had the same problem and through trial and error, I discovered that the InFormEnter extension was causing the problem. As soon as I disabled InFormEnter, the CPU usage dropped like a rock.