BS-Harou

Just another blog about the best browser - Opera!

Autocomplete for Opera

, ,

Yes, I know there is already one and good -> http://userjs.org/scripts/browser/enhancements/ops, but I decided to do my own. My plan was to do something more similar to Firefox's one. And after few hours of work I introduce you Buscomplete (Because Bus is greater than auto bigsmile)

Just download this userJS to your userJS folder, or use userJS manager:
http://files.myopera.com/BS-Harou/files/buscomplete.js

Some more information:
1. Script use localStorage for storing the data, so it's working only in Opera 10.50+
2. You can use Shift+Click to delete item from the list
3. If you are downloading snapshots, sometimes localStorage stops working after installation of new build. You'll have to delete all storage in Opera to make it work.
4. You can use double click on empty field to show all items



Enjoy wink

EDIT:
I uploaded new version in which you can use arrows up and down instead of CTRL+arrow left/right but I could make some bugs, so if you will find any - please report it!

Extension: http://goo.gl/QSghS

Weather in Speed dialuserJS - Image Gallery - Alpha

Comments

metude Thursday, August 19, 2010 10:28:43 AM

What is next version? Truckcompletor http://files.myopera.com/Tamil/Smilies/ThumbsUp.gif -

BS-Harou Thursday, August 19, 2010 10:31:31 AM

I actually use name "Traincomplete" for alpha versions whistle

Mağruf ÇolakoğluZAHEK Thursday, August 19, 2010 11:47:29 AM

First of all thanks smile
Do you think to add some features to it, such as arow, "del" button, etc.. or this is first and final vers..? smile

BS-Harou Thursday, August 19, 2010 11:50:21 AM

Originally posted by ZAHEK:

Do you think to add some features to it, such as arow, "del" button, etc.. or this is first and final vers..? :)



You can delete items with SHIFT+CLICK
You have to use CTRL+ARROW LEFT/RGITH instead of up/down - it's not possible to use arrow up and down in input field :/

Mağruf ÇolakoğluZAHEK Thursday, August 19, 2010 12:05:02 PM

Originally posted by BS-Harou:

You can delete items with SHIFT+CLICK
You have to use CTRL+ARROW LEFT/RGITH instead of up/down - it's not possible to use arrow up and down in input field


http://files.myopera.com/Tamil/Smilies/ThumbsUp.gif -
Maybe only a button, such as "x" can be added at the right corner of the line for word. Maybe usefull for visual,becouse everyone couldn't know the shortcuts smile

BS-Harou Thursday, August 19, 2010 12:13:17 PM

Originally posted by ZAHEK:

Maybe only a button, such as "x" can be added at the right corner of the line for word. Maybe usefull for visual,becouse everyone couldn't know the shortcuts



Well, if you want more of this you can use OpS, that is exactly the different. I want o do it as much simple as I can =)

BTW I just find a way how to (perhaps) use arrows up and down!!!! I was looking for this for ages.

Mağruf ÇolakoğluZAHEK Thursday, August 19, 2010 12:15:49 PM

smile
No certainly necessary and this is so usefull..mine is only advise smile

BS-Harou Thursday, August 19, 2010 12:24:23 PM

Originally posted by ZAHEK:

No certainly necessary and this is so usefull..mine is only advise


sorry, I won't add any delete buttons - that is my final decision)

I added new version with arrow up/down support

BS-Harou Thursday, August 19, 2010 12:55:40 PM

new version again - this time it fixes the bug that when you shiftclicked on item for delete, whole list disappeared

Mağruf ÇolakoğluZAHEK Thursday, August 19, 2010 3:26:58 PM

Thanks.

dapxin Thursday, August 19, 2010 10:50:45 PM

thanks.

Sn3ipen Friday, August 20, 2010 2:32:56 PM

Wow! Really great. Exactly what have been missing in Opera for ages.

FransFrenzie Saturday, August 21, 2010 9:45:20 AM

People have been bugging me for this ever since I wrote Textarea Backup Localstorage, but I personally have no use for it.

You should add it to http://extendopera.org smile

BS-Harou Saturday, August 21, 2010 10:02:40 AM

There are still some bugs I want to fix before whistle

Adam Dziuraadas Wednesday, September 15, 2010 5:29:58 PM

It possible to use a localStorage not for domain, but for all domain? In other script you used a User JS Storage Quota - maybe this is it? (I don't know what is it wink )

BS-Harou Wednesday, September 15, 2010 5:57:43 PM

Originally posted by adas:

It possible to use a localStorage not for domain, but for all domain? In other script you used a User JS Storage Quota - maybe this is it? (I don't know what is it ;) )



yes, it's possible, but it would create a huge list of items. I would suggest you to use [ALT+P](Preferences)>Forms where you can set quite a lots of things you may often use.

FransFrenzie Sunday, September 19, 2010 9:05:44 PM

Originally posted by BS-Harou:

yes, it's possible, but it would create a huge list of items. I would suggest you to use [ALT+P](Preferences)>Forms where you can set quite a lots of things you may often use.


Additionally, you can use notes to supplement with things you use less often, but often enough that you don't want to type them all the time (plus you can make folders and such). Press the down key in a textfield to use that method.

Or, of course, the right mouse click combined with insert note and insert personal.

Osorio Merlos Erick Victor Gabrielevgom Friday, September 24, 2010 7:44:20 PM

Thx nice script, but i am too want storage for all domain, please.

BS-Harou Friday, September 24, 2010 8:09:48 PM

I'm currently working on extending another userjs, but I will focus then on this one and perhaps I will also create some special version with same list for all domains smile

kyotocafe Tuesday, October 5, 2010 12:11:01 PM

wow! this is very nice, it should be published on extendopera, very nice job!

BS-Harou Tuesday, October 5, 2010 3:05:45 PM

there are still some serious bugs that must be fixed)

myregs Saturday, November 6, 2010 2:30:34 PM

is it remember history for specifically per input id like firefox?

would be nice to see system font in popup list

BS-Harou Saturday, November 6, 2010 2:33:38 PM

Originally posted by myregs:

is it remember history for specifically per input id like firefox?


nope, should it? what is the advantage?

Originally posted by myregs:

would be nice to see system font in popup list


There might be some problems with different fonts, so I choose font which all OS supports

StelianLZ2SDC Saturday, November 6, 2010 7:20:14 PM

Originally posted by kyotocafe:

wow! this is very nice, it should be published on extendopera, very nice job!


Yes! It would be nice to see it as an extension (OPS also) smile
Converting UserJS to Opera Extensions

BS-Harou Saturday, November 6, 2010 8:22:57 PM

StelianLZ2SDC Sunday, November 7, 2010 8:30:58 AM

Thanks!up

myregs Wednesday, November 10, 2010 12:36:22 PM

Firefox remember specifically per input id
for example when input has address id it will be easier in future to select from entered addresses before. if you entering name, then selecting names entered before. search then you will get only things entered in search.



can font be determined per operating system. anyway all modern winodows 6.0+ have segoe ui as deafult font. tahoma can be found in all windows versions since 5.0 (windows 2000). but the only is currently using is really too big and too ugly and draws without ansialiasing.

myregs Thursday, November 18, 2010 3:47:48 PM

just looked into code and seems it's pure css and js for it, here is it will work nicely

segue ui will be used first, if not found then tahoma, if not found then sans, if not found then sans-serif

font-size: inherit !important;
font-family: 'segoe ui', tahoma, sans, sans-serif !important;

QuHno Friday, November 19, 2010 8:53:11 PM

Think about the Asian users with their multiple different code points. Segoe UI and Tahoma have a quite limited Unicode support. "Lucida Sans Unicode" is installed on >97% of all Windows machines too and has a way better Unicode support.

Some thoughts about font stacks in my blog

BS-Harou Friday, November 19, 2010 9:05:38 PM

From last build Opera finally supports "preferences page" for extensions. I think I will give there an option to set font-family, font-size, number of items before scrollbar appears and editable list of site where the autocomplete should be disabled smile

BS-Harou Friday, November 19, 2010 9:06:04 PM

but firstly, I have to discover how is the preferences page working)

QuHno Friday, November 19, 2010 9:29:28 PM

Same problem here, I'd really like to update the arc90 script with a settings dialog. I'll look into your code after you have found out how it works wink

BS-Harou Friday, November 19, 2010 10:03:53 PM

I've found some info on ext. forum, so there might be some update for buscomplete extension soon smile

myregs Tuesday, November 23, 2010 9:04:11 AM

Originally posted by QuHno:

font-family: 'segoe ui', tahoma, sans, sans-serif !important;


then might be
font-family: inherit !important;
though didn't check it.

BS-Harou Friday, November 26, 2010 5:18:09 PM

I've uploaded new version, but they probably won't approve it over the weekend, so if you are interest you can download it here:
http://files.myopera.com/BS-Harou/files/Buscomplete.oex

I've added "preferences page" smile

QuHno Friday, November 26, 2010 8:42:35 PM

Looks nice, seems to work without problems so far. Now I just need some more pages where I can test it smile

myregs Saturday, November 27, 2010 1:23:38 PM

can you add segoe ui to the list of fonts, which is default in windows 6+, option default which would be inherit and font sizes in points instead of pixels, so it would be for people to understand with default option for for size which would be inherit as well

BS-Harou Saturday, November 27, 2010 1:53:32 PM

you can write "iherit" instead of font family name and you can also write any font (not only the ones which are in the list). I perhaps add option to select px/em/pt etc...

BS-Harou Sunday, December 5, 2010 9:46:00 AM

Hi, I'm working on some features that should help you with all of this

drworm Monday, December 13, 2010 12:48:44 AM

When selecting a value and pressing tab, it should tab to the next field. Currently it sticks to the current field and I type my password in the wrong place smile

Also, it would be nice if the remembered entries where limited by the field name. So fields named 'email' will only list the emails I've typed in before.

I'm pretty sure this is the behaviour of autocomplete in other browsers.

Zainal Arifinakubeda Saturday, December 18, 2010 4:50:10 AM

I've awaiting for this long-long time

MarcoTheInvoker Thursday, December 23, 2010 5:53:23 PM

is it possible to display the words i searched for only in the site i made the research??

BS-Harou Thursday, December 23, 2010 6:02:43 PM

It's possible in version 1.6

https://addons.opera.com/addons/extensions/details/buscomplete/1.6/?display=en

Go to preferences page and change "Range" to "Per domain" wink

And Merry Christmas!

rseiler Thursday, December 23, 2010 7:18:26 PM

Thanks. Could you advise as to the best way to update? I've never seen Opera's autoupdate actually do it. I don't even know when it's supposed to (daily, when the browser is opened, etc?). There's no "update now" button in Opera, and no word if there ever will be. Perhaps downloading the file and copying it manually to widgets?

BS-Harou Thursday, December 23, 2010 7:26:28 PM

Originally posted by rseiler:

I've never seen Opera's autoupdate actually do it.


Me neither p

Originally posted by rseiler:

There's no "update now" button in Opera, and no word if there ever will be.


I heard that there might be something very soon.

Originally posted by rseiler:

Could you advise as to the best way to update?


I plan to create export/import option in version 1.7 or 1.8. That will be probably the best way. Currently, I always uninstall the previous version and install the new one. It removes all stored data, but it's good to remove them time to time anyway, so I don't bother so much.

MarcoTheInvoker Thursday, December 23, 2010 10:03:29 PM

Originally posted by BS-Harou:

It's possible in version 1.6

https://addons.opera.com/addons/extensions/details/buscomplete/1.6/?display=en

Go to preferences page and change "Range" to "Per domain" wink

And Merry Christmas!



thanks

Alan Zuñiga Riojakhraom Friday, December 24, 2010 9:20:14 PM

Hi How are you? I wonder why the "buscomplete" can not remember "email. " I have several times the respective tests and does not keep. I wonder if whether future versions will do that. Thanks.smile

MarcoTheInvoker Friday, December 24, 2010 9:23:52 PM

how can we delete the words we don't need anymore?

BS-Harou Friday, December 24, 2010 10:07:15 PM

Originally posted by TheInvoker:

how can we delete the words we don't need anymore?


SHIFT+[Left Mouse click] on item smile

Originally posted by khraom:

Hi How are you? I wonder why the "buscomplete" can not remember "email. " I have several times the respective tests and does not keep. I wonder if whether future versions will do that. Thanks.smile


What do you exactly mean? Buscomplete should remember when you enter your e-mail somewhere (if you know about some page where it doesn't then post it here). I do plan to create a feature that will filter items to e-mails only on fields with type=email or name=email.

FransFrenzie Friday, December 24, 2010 11:45:49 PM

Originally posted by BS-Harou:

I do plan to create a feature that will filter items to e-mails only on fields with type=email or name=email.


I was just thinking that rather than writing your own e-mail validating mechanism (fun though it may be) you could just pass it to an input type=email and get the result for the best efficiency. Then again, no way to tell which is faster without trying. Still, seeing if something's a valid-looking e-mail address with a regexp or some such is totally been there, done that. p

Write a comment

New comments have been disabled for this post.

May 2012
M T W T F S S
April 2012June 2012
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31