Thursday, 8. March 2007, 18:31:35
[UserJS] Orangoo Spell Check 2
This is a continuation of work that Sombria (our Polish female script writerOriginal version was working by opening new popup window, this one is working inline (in the same page).
How it works?
Just click on textarea you want to spell check and you'll see Orangoo button appearing. Click on it and you'll know what to do next.

Features/changes since original version:
- Works inline (no popups).
- Works with textareas added dynamically through JS.
- Increases height of small textareas (enabled by default)
- Supports keyboard shortcuts:
- while in textarea:
CTRL+, (comma) - invoke spell checker
- while in spell checker window:
CTRL+Enter - OK
CTRL+' (apostrophe) - Cancel
- Keyboard navigation is quite usable. Use spatial navigation (shift+arrows) to navigate in found errors. Use digits 1-9 to choose from listed suggestions. to revert to original word.
- Prevents submitting when spell check window is still open.
- Some small other tweaks, changes etc...
orangoo.spell.inline.js
Saturday, 10. March 2007, 04:51:40 (edited)
(and much thanks to Sombria for the original)
I've been wanting a spell checker for Opera under Vista, and I wasn't too sure about Aspell. This script removes any need for Aspell, and enhances my browsing experience (or at least my blogging experience).
Saturday, 10. March 2007, 05:00:47
Saturday, 10. March 2007, 09:16:00 (edited)
Saturday, 10. March 2007, 10:43:56
Originally posted by xErath:
Write something then press ctrl+comma to open the spell checker. The textarea should have focus.
Yes, I can see this happening when spellchecking happens but no errors are found. Will be fixed.
Originally posted by YtseJam:
Too bad you can't use the Submit button even though Orangoo is Enabled.
That's on purpouse. It's easy to submit form (post comment or something) without OK'ing changes in spell check window first, which will result in posting uncorrected text.
Maybe should be made optional and changeable through config, though.
Originally posted by YtseJam:
If the text form/field/whatever is RTLed, the script doesn't adhere to that and the text box is switched to LTR while in spellchecker mode.
Have to look into it. I don't really know how this whole RTL works (besides being right-to-left).
BTW. On windows 98, keypress keyCode changes while holding ctrl.
BTW2. Forum eats every second linebreak?
Saturday, 10. March 2007, 11:01:04 (edited)
Originally posted by d.i.z.:
Have to look into it. I don't really know how this whole RTL works (besides being right-to-left).
Get direction computed style for the textarea, and assign that value to the generated one.
Originally posted by d.i.z.:
yes. I found that problem too.BTW2. Forum eats every second linebreak?
http://my.opera.com/community/forums/findpost.pl?id=1946246
Saturday, 10. March 2007, 17:27:59 (edited)
Changes:
- Support for RTL text
- Reverting to original word wasn't working when done with keyboard
- Added preventSubmit variable to easily disable this feature if needed
- Fixed focus issue
orangoo.spell.inline.js
Saturday, 10. March 2007, 21:14:02 (edited)
Originally posted by d.i.z.:
Originally posted by ar1pe:
I have a problem: it does not work for me. (I dl:d it today)
Any errors reported in Message Console? Are you using Opera 9?
No messages.
Yes. Look at my sigAre you using Opera 9?
edit: I personally think I've tried everything. But as always, this must be something real simple that I haven't just noticed..... So please: tell me also the stupid things..
Saturday, 10. March 2007, 21:16:00
Saturday, 10. March 2007, 21:31:54 (edited)
Originally posted by ar1pe:
Yes. Look at my sig
Sorry, I have sigs disabled.
One thing that happened to someone else before, was that the file was modified by Proxomitron when downloading. Do you happen to have any of such proxy software enabled? Even firewall or antivirus can do that too but not very likely.
EDIT:
Did you use "Ctrl+," (Ctrl + comma) to activate it? Type something in a text field then hit "Ctrl+,"
Yes, good advice too. In some rare cases Orangoo button might not show up but script will work.
Saturday, 10. March 2007, 21:54:15 (edited)
Originally posted by Saddle Magic:
Did you use "Ctrl+," (Ctrl + comma) to activate it? Type something in a text field then hit "Ctrl+,"
Thanks for the "stupid" idea
edit: more "stupid" ideas, thank you
edit2: the forums just kicked me out???? Had to log in again...
edit3: @d.i.z.: nope (thanks anyway)
edit4: nope to your edit too
edit5: @d.i.z.: is there another js that might affect this one?
edit6: I created a totally new js folder that has no other js >>>> does not work:(
edit7: took the risk and turned off my firewall and antivirus (downloaded again (this time 4th) > does not work
Sunday, 11. March 2007, 12:06:43
Sunday, 11. March 2007, 12:18:00 (edited)
For anyone having problems, try this:
- Save this script (disable any other version of it)
- Open Message Console and clear it
- Refresh (F5) this thread
- Click once on textarea so it gains focus
- Select all messages in message console (CTRL+A, CTRL+C) and show this to me somehow

debug.js
There is chance there will be no messages at all, it would mean Opera is ignoring this file or not liking it for some reason but we will cover this later eventually.
Originally posted by DynaBMan:
Do I have to disable Aspell before this script will work?
Nope.
Originally posted by DynaBMan:
should the script work when composing an email message with M2?
Nope, scripts are working only in web pages.
Sunday, 11. March 2007, 12:30:22
Sunday, 11. March 2007, 13:04:48
Originally posted by HaJotKE:
Not necessarily, I am using this method too... M/B just put this script in all your folders, so did I...
So, you just put copies of the script in your different folders? Is there any chance that will slow Opera down? I really don't know the answer, just wondering aloud.
Sunday, 11. March 2007, 13:15:00
Originally posted by DynaBMan:
Any chance of getting the script to work with M2?
Vote: http://my.opera.com/community/forums/topic.dml?id=163169
Sunday, 11. March 2007, 16:02:58
C:\Profiles\Phred\Application Data\Opera\_userjs,C:\Profiles\Phred\Application Data\Opera\_userjs\greasemonkey
It reads the scripts in path order from left to right.
Sunday, 11. March 2007, 19:26:42
Originally posted by fearphage:
why do you keep them all in seperate folders? The files themselves should determine which sites they execute on so there is really no need for that. The only distinction I make in scripts is between normal userjs scripts and real greasmonkey scripts (*.user.js) just because I want to make sure that the greasemonkey helper functions scripts runs before they do although I could myself use one folder for this. You know you can put multiple folders in the userjs path too, check it:
So, it shouldn't matter if all of the scripts are in one folder and shouldn't slow Opera down? If that is the case, then what is the use of being able to choose a specific user script folder in site preferences?
Sunday, 11. March 2007, 21:11:13
Originally posted by d.i.z.:
Originally posted by GT500:
OK, I like this script so much that I'm thinking of giving it a page on my Opera Customizations site, alongside Operapedia. d.i.z. would you like it if I did that?
Nothing should stop you from doing that
Done.
I did have to remove the two extra periods in the filename to make it compatible with my .htaccess file, but I replaced them with underscores for readability.
Sunday, 11. March 2007, 22:05:59
Originally posted by DynaBMan:
No slowdown here...Is there any chance that will slow Opera down?
And I like the idea of having extra folders for some special sites, where I use multiple 'UserJavascripts' to make them behave how I need it...
M/B there are better solutions, I didn't try every possibility...
I didn't try what *fearphage* proposed, i.e. using multiple scripts in a comma separated list in Site Specific Preferences...
Will try it!
Monday, 12. March 2007, 18:48:10 (edited)
Author have something up it's sleeve so let's see what happens.
EDIT: Works now.
Monday, 12. March 2007, 19:54:09
d.i.z. can you tell me exactly what you need to make your script work off of my website? Would you need the Python based "Nox Spell Server" installed on my server, or is that not needed for the script to work?
Monday, 12. March 2007, 20:06:05
Originally posted by GT500:
Would you need the Python based "Nox Spell Server" installed on my server, or is that not needed for the script to work?
Yes, this is a must for things to work.
But as script works fine now, and author is thinking about possible resolutions for such problems, maybe we should refrain with moving for now.
Monday, 12. March 2007, 20:10:40
Originally posted by d.i.z.:
But as script works fine now, and author is thinking about possible resolutions for such problems, maybe we should refrain with moving for now.
Alright, I'll wait untill we learn what the author has in mind.
Tuesday, 13. March 2007, 00:59:34
Originally posted by fearphage:
Please let me host this! I have so much bandwidth I would love to use. It will be professionally hosted but my host oversells so I'd love to use some of what i'm paying for. I'll read up on what I need to do.
Well, I'm not going to stop you.
Tuesday, 13. March 2007, 12:40:23
Showing topic replies 1 - 50 of 62.
Forums » Opera Community » General Opera topics » User JavaScript
