[Ext] userChrome.js

Announce and Discuss the Latest Theme and Extension Releases.
Locked
old zeniko
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post by old zeniko »

alta88 wrote:did you even read what you wrote?

You still can't take a "No" without getting offensive, can you? *sigh*

Instead of trying to persuade me, why don't you get constructive, implement the change you suggest yourself and upload the modified extension somewhere so that you can offer a version which makes users jump through one less hoop?
alta88
Posts: 1029
Joined: January 28th, 2006, 3:08 pm

Post by alta88 »

well, i suppose that's one way of trying to change the subject, rather than supporting your position.
User avatar
smsmith
Moderator
Posts: 19979
Joined: December 7th, 2004, 8:51 pm
Location: Indiana

Post by smsmith »

Cool off guys.

This is zeniko's extension. If he wants to not include something, that's his right.
Give a man a fish, and he eats for a day. Teach a man to fish, and he eats for a lifetime.
I like poetry, long walks on the beach and poking dead things with a stick.
Please do not PM me for personal support. Keep posts here in the Forums instead and we all learn.
User avatar
dougeeebear
Posts: 548
Joined: September 15th, 2005, 4:17 pm

Post by dougeeebear »

alta88 wrote:i've created importScript and importXUL functions based on subscript loader, so that it's easy to comment out something in userchrome.js and organize files in a subdir of chrome.

I'm interested in checking out these functions if you'd care to share.

Regards,
Doug
alta88
Posts: 1029
Joined: January 28th, 2006, 3:08 pm

Post by alta88 »

sure. my userchrome.js is <a href="data:text/javascript;charset=utf-8;base64,LyogOjo6Ojo6Ojo6OjogU2NyaXB0IGFuZCBYVUwgTG9hZGVyIDo6Ojo6Ojo6Ojo6Ojo6ICovDQoNCi8qIEltcG9ydCBmaWxlcyByZWxhdGl2ZSB0byBbcHJvZmlsZV1cY2hyb21lIGZvbGRlciAqLw0KDQppbXBvcnRTY3JpcHQoInVzZXJDaHJvbWUuanNTY3JpcHRzL0NvcHlGZWVkVXJsLmpzIik7DQppbXBvcnRTY3JpcHQoInVzZXJDaHJvbWUuanNTY3JpcHRzL0VkaXRDb25maWdGaWxlcy5qcyIpOw0KaW1wb3J0U2NyaXB0KCJ1c2VyQ2hyb21lLmpzU2NyaXB0cy9FbGVtZW50SW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2luZG93LCBmYWxzZSk7DQoJCXZhciBmdW5jcyA9IHRoaXMuX1dpbmRvd0hvb2subUZ1bmNzW3RoaXMuZG9jdW1lbnQubG9jYXRpb24uaHJlZl0gfHwgbnVsbDsNCgkJaWYgKGZ1bmNzKQ0KCQl7DQoJCQlmdW5jcy5mb3JFYWNoKGZ1bmN0aW9uKGFGdW5jKSB7IGFGdW5jKHRoaXMpOyB9LCB0aGlzKTsNCgkJfQ0KCQlkZWxldGUgdGhpcy5fV2luZG93SG9vazsNCgl9LA0KCXJlZ2lzdGVyOiBmdW5jdGlvbihhVVJMLCBhRnVuYykNCgl7DQoJCWlmICghdGhpcy5tRnVuY3MpDQoJCXsNCgkJCXRoaXMubUZ1bmNzID0ge307DQoJCQlDb21wb25lbnRzLmNsYXNzZXNbIkBtb3ppbGxhLm9yZy9vYnNlcnZlci1zZXJ2aWNlOzEiXQ0KCQkJLmdldFNlcnZpY2UoQ29tcG9uZW50cy5pbnRlcmZhY2VzLm5zSU9ic2VydmVyU2VydmljZSkNCgkJCS5hZGRPYnNlcnZlcih0aGlzLCAiZG9td2luZG93b3BlbmVkIiwgZmFsc2UpOw0KCQl9DQoJCWlmICghdGhpcy5tRnVuY3NbYVVSTF0pDQoJCXsNCgkJCXRoaXMubUZ1bmNzW2FVUkxdID0gW107DQoJCX0NCgkJdGhpcy5tRnVuY3NbYVVSTF0ucHVzaChhRnVuYyk7DQoJfQ0KfTsNCg0KZnVuY3Rpb24gZGVidWcoYVNjcmlwdCwgYU1zZykgDQp7CQ0KCUNvbXBvbmVudHMuY2xhc3Nlc1siQG1vemlsbGEub3JnL2NvbnNvbGVzZXJ2aWNlOzEiXQ0KCQkuZ2V0U2VydmljZShDb21wb25lbnRzLmludGVyZmFjZXMubnNJQ29uc29sZVNlcnZpY2UpDQoJCS5sb2dTdHJpbmdNZXNzYWdlKGFTY3JpcHQgKyBhTXNnKTsNCn07DQo%3D">here</a>. easy organization of script/xul files, windowhook, loading of files in parallel, logging - all-in-one.

if you see any problems let me know, i sure won't be offended.
User avatar
dougeeebear
Posts: 548
Joined: September 15th, 2005, 4:17 pm

Post by dougeeebear »

Looks interesting, thanks.
I'll check it out and see if I can get it working with my configuration.
I use separate directories for JS and XUL files (chrome\userChrome-JS and chrome\userChrome-XUL respectively).

Regards,
Doug
User avatar
dougeeebear
Posts: 548
Joined: September 15th, 2005, 4:17 pm

Post by dougeeebear »

Ok, here is what seems to happen with this:
It works like the original userChrome.xul which was used to manage xul files.
If an xul file was defined in userChrome.xul, it was loaded and used.

Your userChrome.js seems to work that way for both js and xul files.
That's a nice concept for those who like that type of setup.
Personally, I prefer to just throw a js or xul file in the directory and have it used with no further action.
Of course like you stated, if I want to disable it, I have to either rename the file or comment out its code.
I might still decide to use it in some way later on.
Nice job, and thanks for posting it.

Regards,
Doug
Lost User 255607
Posts: 0
Joined: December 31st, 1969, 5:00 pm

add history to Findbar

Post by Lost User 255607 »

Following script is to add input history to Findbar for Fx2.0.0.3 WindousXP.

ttp://space.geocities.jp/alice0775/STOR ... dbar.uc.js
User avatar
dougeeebear
Posts: 548
Joined: September 15th, 2005, 4:17 pm

Post by dougeeebear »

Alice0775, you're missing the "h" in http://....
Lost User 255607
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post by Lost User 255607 »

dougeeebear wrote:Alice0775, you're missing the "h" in http://....

Sorry; post it again here.
http://space.geocities.jp/alice0775/STO ... dbar.uc.js
User avatar
Eygte450
Posts: 179
Joined: July 20th, 2006, 12:52 pm

Re: add history to Findbar

Post by Eygte450 »

Alice0775 wrote:Following script is to add input history to Findbar for Fx2.0.0.3 WindousXP.

ttp://space.geocities.jp/alice0775/STOR ... dbar.uc.js

Works in Vista too?
DMCrimson
Posts: 1025
Joined: February 13th, 2004, 6:11 am

Post by DMCrimson »

It should, it's javascript... Alice is propably using XP, thus the mention.
User avatar
adxalf
Posts: 32
Joined: February 1st, 2007, 1:09 pm

Post by adxalf »

Hello Alice!
I need the same functionality for Thunderbird 2.0 your "addHistoryFindbar.uc.js" script only works with Firefox :-(
Please can you give me code .js for Thunderbird? That would be very great!
Alice0775 wrote:
dougeeebear wrote:Alice0775, you're missing the "h" in http://....

Sorry; post it again here.
http://space.geocities.jp/alice0775/STO ... dbar.uc.js
Lost User 255607
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post by Lost User 255607 »

adxalf wrote:Hello Alice!
I need the same functionality for Thunderbird 2.0 your "addHistoryFindbar.uc.js" script only works with Firefox :-(
Please can you give me code .js for Thunderbird? That would be very great!


Sorry, I am not familiar with Thunderbird.
This script uses a function of Firefox.
Therefore, it seems that it is difficult to transplant it in Thunderbird.
Leedsfan
Posts: 110
Joined: December 18th, 2004, 4:26 pm
Location: New Zealand

Add History to Findbar useage

Post by Leedsfan »

I have added the js code to my userchrome.js file but nothing seems to happen. The Findbar appears shorter in height but that is all.
If I do a find on a page I can see no way of recalling the history.
Is there supposed to be a dropdown box as in the search bar?
Locked