Announce and Discuss the Latest Theme and Extension Releases.
Zoolcar9
Posts: 2225 Joined: November 9th, 2004, 6:45 pm
Location: Jakarta, Indonesia (UTC+7)
Contact:
Post
by Zoolcar9 » November 19th, 2006, 12:47 pm
alta88 wrote: pile0nades wrote: Copy Feed URL 2.0
brilliant (and elegant now that multiple feeds are handled
). but it seems the menuitem is added on contexts other than the feed icon, when rt click in the menubar and other toolbars, even after having tabbed to a page with no feed icon. odd, since it looks like you check that rt click context is the icon...
it would be nice to in fact get rid of all that other stuff on feed icon rt click and only keep items that have to do with rss.
should be an rfe to make copy url standard on that icon.<a href="http://forums.mozillazine.org/viewtopic.php?p=2609058#2609058"><img src="http://static.mozillazine.org/forums/images/icon_latest_reply.gif" title="go to original post" align="right" border="0"></a>
Move line 13 to line 21
<a href="data:application/x-javascript;base64,Ly8gQ29weSBGZWVkIFVSTCBtZW51aXRlbQ0KLy8gYnkgcGlsZTBuYWRlcyAod2l0aCBhd2Vzb21lIGhlbHAgZnJvbSBab29sY2FyOSkNCi8vIFJpZ2h0LWNsaWNrIHRoZSBmZWVkIGljb24gYW5kIGNsaWNrIENvcHkgRmVlZCBVUkwNCg0KKGZ1bmN0aW9uKCkgew0KICB2YXIgbWVudSA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJ0b29sYmFyLWNvbnRleHQtbWVudSIpOw0KDQogIG1lbnUuYWRkRXZlbnRMaXN0ZW5lcigicG9wdXBzaG93aW5nIiwgZnVuY3Rpb24oZXZlbnQpIHsNCiAgICAvLyByZW1vdmUgb2xkIGl0ZW1zIGJlZm9yZSBhZGRpbmcgbmV3IG9uZXMNCiAgICBpZihkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgiY29udGV4dC1jb3B5ZmVlZC1udW1iZXItMC11cmwtc2VwYXJhdG9yIikgIT0gbnVsbCkgew0KICAgICAgbWVudS5yZW1vdmVDaGlsZChkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgiY29udGV4dC1jb3B5ZmVlZC1udW1i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gfQ0KICAgICAgdmFyIG1zID0gbWVudS5pbnNlcnRCZWZvcmUoZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgibWVudXNlcGFyYXRvciIpLCBtaVswXSk7DQogICAgICBtcy5pZCA9IG1pWzBdLmlkICsgIi1zZXBhcmF0b3IiOw0KICAgIH0NCiAgfSwgZmFsc2UpOw0KfSkoKTsNCg0KZnVuY3Rpb24gY2Z1X2NvcHlGZWVkVVJMKHVybCkgew0KICB2YXIgZ0NsaXBib2FyZEhlbHBlciA9IENvbXBvbmVudHMuY2xhc3Nlc1siQG1vemlsbGEub3JnL3dpZGdldC9jbGlwYm9hcmRoZWxwZXI7MSJdDQogICAgLmdldFNlcnZpY2UoQ29tcG9uZW50cy5pbnRlcmZhY2VzLm5zSUNsaXBib2FyZEhlbHBlcik7IA0KICBnQ2xpcGJvYXJkSGVscGVyLmNvcHlTdHJpbmcodXJsKTsNCn0NCg0K">copyfeedurl.uc.js</a>
t22design
Posts: 1 Joined: July 15th, 2005, 11:57 am
Post
by t22design » November 19th, 2006, 3:12 pm
Hello,
I use the extension userChrome.js to clear my search box after each search. However, when I install Tab Mix Plus it seems to break this feature. Has anybody got any idea why?
t22
Here is my userChrome.js:
Code: Select all
/** * A user script for userChrome.js extension. * @name Clear Search Term * @description Clear search term after searching. * @note Doesn't work when searching by drag-and-drop. * @compatibility Firefox 2.0 * @author Gomita * @version 1.0.20061029 * @permalink http://amb.vis.ne.jp/mozilla/?p=52 */ (function() { var clearSearchTerm = function(event) { if ( event.keyCode == 13 || event.button == 0 || event.button == 1 ) { setTimeout(function(){ BrowserSearch.getSearchBar()._textbox.value = ""; }, 1000); setTimeout(function(){ BrowserSearch.getSearchBar()._textbox._displayCurrentEngine(); }, 1000); event.stopPropagation(); } }; var searchbar = BrowserSearch.getSearchBar(); // clear the term after searching by clicking glass button document.getAnonymousElementByAttribute(searchbar, "anonid", "search-go-button") .addEventListener("click", clearSearchTerm, false); // clear the term after searching by pressing Enter key document.getAnonymousElementByAttribute(searchbar, "anonid", "searchbar-textbox") .addEventListener("keypress", clearSearchTerm, false); }());
pile0nades
Posts: 756 Joined: May 15th, 2005, 2:31 am
Post
by pile0nades » November 19th, 2006, 8:04 pm
^^fixed. Edit: bah, didn't see Zoolcar9's fix. Anyway, with it, the items get removed if you hover a submenu like AIOS's Toolbar Properties submenu. Updated to fix that.
<a href="data:text/javascript;charset=utf-8;base64,Ly8gQ29weSBGZWVkIFVSTCBtZW51aXRlbQ0KLy8gYnkgcGlsZTBuYWRlcyAod2l0aCBhd2Vzb21lIGhlbHAgZnJvbSBab29sY2FyOSkNCi8vIFJpZ2h0LWNsaWNrIHRoZSBmZWVkIGljb24gYW5kIGNsaWNrIENvcHkgRmVlZCBVUkwNCg0KKGZ1bmN0aW9uKCkgew0KICB2YXIgbWVudSA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJ0b29sYmFyLWNvbnRleHQtbWVudSIpOw0KDQogIG1lbnUuYWRkRXZlbnRMaXN0ZW5lcigicG9wdXBzaG93aW5nIiwgZnVuY3Rpb24oZXZlbnQpIHsNCiAgICBpZihldmVudC50YXJnZXQuaWQgPT0gInRvb2xiYXItY29udGV4dC1tZW51Iikgew0KICAgICAgLy8gcmVtb3ZlIG9sZCBpdGVtcyBiZWZvcmUgYWRkaW5nIG5ldyBvbmVzDQogICAgICBpZihkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgiY29udGV4dC1jb3B5ZmVlZC1udW1iZXItMC11cmwtc2VwYXJhdG9yIikgIT0gbnVsbCkgew0KICAgICAgICBtZW51LnJlbW92ZUNoaWxkKGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJjb250ZXh0LWNvcHlmZWVkLW51bWJlci0wLXVybC1zZXBhcmF0b3IiKSk7DQogICAgICB9DQogICAgICBmb3IodmFyIGk9MDsgZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoImNvbnRleHQtY29weWZlZWQtbnVtYmVyLSIgKyBpICsgIi11cmwiKSAhPS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NlKTsNCn0pKCk7DQoNCmZ1bmN0aW9uIGNmdV9jb3B5RmVlZFVSTCh1cmwpIHsNCiAgdmFyIGdDbGlwYm9hcmRIZWxwZXIgPSBDb21wb25lbnRzLmNsYXNzZXNbIkBtb3ppbGxhLm9yZy93aWRnZXQvY2xpcGJvYXJkaGVscGVyOzEiXQ0KICAgIC5nZXRTZXJ2aWNlKENvbXBvbmVudHMuaW50ZXJmYWNlcy5uc0lDbGlwYm9hcmRIZWxwZXIpOyANCiAgZ0NsaXBib2FyZEhlbHBlci5jb3B5U3RyaW5nKHVybCk7DQp9DQoNCg%3D%3D">copyfeedurl.uc.js</a>
pile0nades
Posts: 756 Joined: May 15th, 2005, 2:31 am
Post
by pile0nades » November 19th, 2006, 9:24 pm
We just use this thread, but having a .org site for user scripts, maybe a section of userscripts.org, would be nice.
Cato62
Posts: 684 Joined: March 7th, 2005, 10:06 am
Location: Eugene, OR
Post
by Cato62 » November 19th, 2006, 9:54 pm
pile0nades wrote: We just use this thread, but having a .org site for user scripts, maybe a section of userscripts.org, would be nice.
I'll join this (potential) bandwagon!
Eygte450
Posts: 179 Joined: July 20th, 2006, 12:52 pm
Post
by Eygte450 » November 20th, 2006, 7:30 am
pile0nades wrote: We just use this thread, but having a .org site for user scripts, maybe a section of userscripts.org, would be nice.
I've tried, but is a lot of pages searching for what i could like or not...
In page 1-6 i've found a script to view source-page in a tab, and it didnt work. Could be because new version of the extension?
Zoolcar9
Posts: 2225 Joined: November 9th, 2004, 6:45 pm
Location: Jakarta, Indonesia (UTC+7)
Contact:
Post
by Zoolcar9 » November 20th, 2006, 8:34 am
FalledAngel wrote: In page 1-6 i've found a script to view source-page in a tab, and it didnt work. Could be because new version of the extension?
It works with middle click
paulfox
Posts: 1510 Joined: May 8th, 2004, 1:38 pm
Post
by paulfox » November 20th, 2006, 9:08 am
dougeeebear, if any of them work, and you're looking for a project, I loaded GreaseMonkey no less than 4-5 times to have these, but they slowed down GMail so much it was sickening. I don't want an extension for 3 scripts that slow down the one site I need the extension for. That's why I'm such a "Style GMail" freak . . . these are the 3 that would be great, if you're taking requests!!
GMail Conversation Preview:
http://userscripts.org/scripts/show/1554
GMail Label Colors
http://userscripts.org/scripts/show/2433
GMail Saved/Custom Searches
http://userscripts.org/scripts/show/801
PentiumIII/W2K, Toshiba AMD laptop/Vista. FX 3 on both.
Zoolcar9
Posts: 2225 Joined: November 9th, 2004, 6:45 pm
Location: Jakarta, Indonesia (UTC+7)
Contact:
Post
by Zoolcar9 » November 20th, 2006, 10:50 am
greasemonkey_mod.uc.js
Makes the User Scripts Manager dialog non-modal, minimizable Adds middle click event to GM icon on statusbar to open the User Scripts Manager Sorts the scripts list on GM icon context menu alphabetically To sort the scripts list on User Scripts Manager, see
this post .
dougeeebear
Posts: 548 Joined: September 15th, 2005, 4:17 pm
Post
by dougeeebear » November 20th, 2006, 11:04 am
paulfox,
I don't even use Gmail, sorry
Maybe someone else can help you out.
pile0nades
Posts: 756 Joined: May 15th, 2005, 2:31 am
Post
by pile0nades » November 20th, 2006, 1:59 pm
Zoolcar9 wrote: greasemonkey_mod.uc.js Makes the User Scripts Manager dialog non-modal, minimizable Adds middle click event to GM icon on statusbar to open the User Scripts Manager Sorts the scripts list on GM icon context menu alphabetically To sort the scripts list on User Scripts Manager, see
this post .
The sort in the Manage User Scripts window doesn't work for me unless I change the sort function <a href="data:text/javascript;charset=utf-8;base64,ICAgICAgICBmdW5jdGlvbihhLGIpIHsNCiAgICAgICAgICBhPWEubmFtZS50b0xvd2VyQ2FzZSgpOw0KICAgICAgICAgIGI9Yi5uYW1lLnRvTG93ZXJDYXNlKCk7DQogICAgICAgICAgaWYgKGEgPCBiKSByZXR1cm4gLTE7DQogICAgICAgICAgaWYgKGEgPiBiKSByZXR1cm4gMTsNCiAgICAgICAgICByZXR1cm4gMDsNCiAgICAgICAgfQ%3D%3D">to this</a>. I guess the forum filtered the angle brackets thinking it was html. It turns into this:
Code: Select all
function(a,b) { a=a.name.toLowerCase(); b=b.name.toLowerCase(); if (a <b> b) return 1; return 0; }
Zoolcar9
Posts: 2225 Joined: November 9th, 2004, 6:45 pm
Location: Jakarta, Indonesia (UTC+7)
Contact:
Post
by Zoolcar9 » November 20th, 2006, 3:26 pm
Ugh.. I didn't notice that. It's
fixed now, thanks
Chad-)
Posts: 166 Joined: August 29th, 2005, 7:01 am
Post
by Chad-) » November 21st, 2006, 12:00 pm
Can this be used with the throbber on tabs?
pile0nades
Posts: 756 Joined: May 15th, 2005, 2:31 am
Post
by pile0nades » November 21st, 2006, 1:01 pm
Bug with Greasemonkey Mod.
When I click on Add quick links, the Justify text script gets en/disabled.