[UserJs] Code/Formatting Tools in Quick-Reply

Forums » General Opera topics » User JavaScript

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

12. April 2007, 22:27:02

AyushJ

Posts: 4754

[UserJs] Code/Formatting Tools in Quick-Reply

A little userjs that adds formatting tools (b,i,u,list,url,sub,font,color etc...) in quickreply. See <> screenshots.

Script also supports keyboard shortcuts. Press [Ctrl] key dont hold it down then press the shortcut key.
Example: to activate Bold(B), press Ctrl then press B

There is also a Reselect text feature. If you dont like that, open the script and set AutoReSelect to 0.

Download: Code Tools in Quick Reply yes

note: the smilies button isn't working yet ... sad


cheers

4. September 2007, 13:41:18

Saddle Magic

Psycho Chicken What_The_Cluck

Posts: 19681

Beauty up

On a semi-related subject, are you having "problems" with the text entry/edit fields in the forums?

example: Type a few words then move your cursor back and try to insert something between them.

When I do that the cursor jumps to the end of the text irked
Opera 12.02 Build 1578 | 3.00 GHz Pentium 4 | 2 GB DDR | WinXP Pro sp3 | 10 GB access | 22" Widescreen LCD, Synaptics Touchpad & $5 Keyboard

4. September 2007, 14:19:20

AyushJ

Posts: 4754

Originally posted by Saddle Magic:

are you having "problems" with the text entry/edit fields in the forums?


No. Works fine here happy Maybe some other userjs ?

4. September 2007, 15:00:20

Saddle Magic

Psycho Chicken What_The_Cluck

Posts: 19681

I've been going through them, it's the "myopera-community-enhancements.js" script rolleyes
Opera 12.02 Build 1578 | 3.00 GHz Pentium 4 | 2 GB DDR | WinXP Pro sp3 | 10 GB access | 22" Widescreen LCD, Synaptics Touchpad & $5 Keyboard

4. September 2007, 20:38:45

xErath

javascript guru

Posts: 6588

Originally posted by Saddle Magic:

I've been going through them, it's the "myopera-community-enhancements.js" script


aw.... I have to check the cursor positioning thing.
There are some nasty bugs setting selectionStart and selectionEnd in merlin, which are fixed in kestrel
Disable the tab replace feature meanwhile.
For a collection of user scripts visit
http://my.opera.com/xErath/blog/

4. September 2007, 21:20:26

Saddle Magic

Psycho Chicken What_The_Cluck

Posts: 19681

Call off the dogs!

I was having numerous UserJS problems when logged in here as myself, the problems went away if I logged in as a different user.

I canceled my membership in one group (Opera Veterans) and all the problems solved at once left
Opera 12.02 Build 1578 | 3.00 GHz Pentium 4 | 2 GB DDR | WinXP Pro sp3 | 10 GB access | 22" Widescreen LCD, Synaptics Touchpad & $5 Keyboard

6. September 2007, 03:18:36

GT500

GT500.org

Posts: 3478

Originally posted by Saddle Magic:

I canceled my membership in one group (Opera Veterans) and all the problems solved at once



Maybe Kestrel didn't think you were really an Opera veteran... lol

Anyway, Ayush, thanks for the fix. wink

6. September 2007, 08:15:19

Saddle Magic

Psycho Chicken What_The_Cluck

Posts: 19681

Originally posted by GT500:

Maybe Kestrel didn't think you were really an Opera veteran...


No, this was happening in both Opera 9.23 and Kestrel.
Opera 12.02 Build 1578 | 3.00 GHz Pentium 4 | 2 GB DDR | WinXP Pro sp3 | 10 GB access | 22" Widescreen LCD, Synaptics Touchpad & $5 Keyboard

6. September 2007, 11:39:41

DynaBMan

Posts: 978

I had to disable the scripts, for the time being. Deleting my group memberships did not do the trick.
LJ
My best friend is my wife!!

Political Realities

7. September 2007, 02:22:57

GT500

GT500.org

Posts: 3478

Originally posted by Saddle Magic:

No, this was happening in both Opera 9.23 and Kestrel.



I only saw the issue with the cursor jumping to the last character in a text area when trying to edit/add something in Kestrel. I was not aware that this issue was also seen in Merlin...

7. September 2007, 02:27:16

DynaBMan

Posts: 978

Originally posted by GT500:

Originally posted by Saddle Magic:

No, this was happening in both Opera 9.23 and Kestrel.



I only saw the issue with the cursor jumping to the last character in a text area when trying to edit/add something in Kestrel. I was not aware that this issue was also seen in Merlin...



That was the case for me as well. Has anyone came up with a solution that I am not aware of? I would really like to enable the scripts again.
LJ
My best friend is my wife!!

Political Realities

7. September 2007, 03:12:49

Saddle Magic

Psycho Chicken What_The_Cluck

Posts: 19681

One thing that really confused me was if I logged in as a different user in the Opera community, the problem went away.

I have no idea exactly why or what was going on, I'm just glad it is over as that was a real pain.
Opera 12.02 Build 1578 | 3.00 GHz Pentium 4 | 2 GB DDR | WinXP Pro sp3 | 10 GB access | 22" Widescreen LCD, Synaptics Touchpad & $5 Keyboard

7. September 2007, 03:24:13

DynaBMan

Posts: 978

Originally posted by Saddle Magic:

One thing that really confused me was if I logged in as a different user in the Opera community, the problem went away.

I have no idea exactly why or what was going on, I'm just glad it is over as that was a real pain.



Am I to understand that removing your group memberships seemed to have fixed the problem for you?
LJ
My best friend is my wife!!

Political Realities

7. September 2007, 03:31:00

Saddle Magic

Psycho Chicken What_The_Cluck

Posts: 19681

Originally posted by DynaBMan:

Am I to understand that removing your group memberships seemed to have fixed the problem for you?


Almost, at the suggestion of canceling group memberships I removed one.

I had joined 7 groups total, I canceled the one membership, went back to the forum post that was already open in another page. Reloaded it and all was right with the world.

I have no idea why canceling 1 of 7 group memberships cleared the problem.
Opera 12.02 Build 1578 | 3.00 GHz Pentium 4 | 2 GB DDR | WinXP Pro sp3 | 10 GB access | 22" Widescreen LCD, Synaptics Touchpad & $5 Keyboard

7. September 2007, 03:40:17

DynaBMan

Posts: 978

Originally posted by Saddle Magic:

Originally posted by DynaBMan:

Am I to understand that removing your group memberships seemed to have fixed the problem for you?


Almost, at the suggestion of canceling group memberships I removed one.

I had joined 7 groups total, I canceled the one membership, went back to the forum post that was already open in another page. Reloaded it and all was right with the world.

I have no idea why canceling 1 of 7 group memberships cleared the problem.



Well, I canceled all of my group memberships and the problem still exists. I would like to get it straightened out because I really like the clean effect it provides on the forums. Maybe I can figure something out later.
LJ
My best friend is my wife!!

Political Realities

7. September 2007, 03:46:49

Saddle Magic

Psycho Chicken What_The_Cluck

Posts: 19681

I too am using:
  • Community Enhancements
  • Community Optimizations
  • Quick reply formatting tools
  • Multipopup
  • Ospell
and a handful of others, it's hard to deal without them.
Opera 12.02 Build 1578 | 3.00 GHz Pentium 4 | 2 GB DDR | WinXP Pro sp3 | 10 GB access | 22" Widescreen LCD, Synaptics Touchpad & $5 Keyboard

7. September 2007, 10:05:55

GT500

GT500.org

Posts: 3478

Originally posted by DynaBMan:

... I would like to get it straightened out because I really like the clean effect it provides on the forums. Maybe I can figure something out later.



I think xErath is working on a fix.

8. September 2007, 04:42:48

DynaBMan

Posts: 978

Just to confirm, I just opened 9.23 and it does not have the editing text problem with the community scripts enabled. Not on my computer, at least.
LJ
My best friend is my wife!!

Political Realities

28. September 2007, 17:29:12 (edited)

AyushJ

Posts: 4754

Kestrel#9562 broke it mad- fixed a userjs-bug that broke this script bigsmile
Script updated : B]

30. October 2007, 22:43:15

arnymars

Natural Hobbiest

Posts: 464

Do these Tools work in Quick Reply ONLY, or also in Opera Mail Client Compose Message view?

30. October 2007, 23:36:49

arnymars

Natural Hobbiest

Posts: 464

Are you talking about Quick-Reply Boxes in Opera Forums? I thought, such Format Menu is the Opera (or other) website feature, and not the Browser's (obviously OS & Browser supportable). Am I wrong?

What about similar Format Panel for Opera Mail Client - is it adaptable? Why?

30. October 2007, 23:40:59

AyushJ

Posts: 4754

Originally posted by arnymars:

Are you talking about Quick-Reply Boxes in Opera Forums?


yes like the quick-reply textarea in this page.

Originally posted by arnymars:

I thought, such Format Menu is the Opera (or other) website feature


On the Post reply page, it's a website feature but on this page, there is no format menu without userjs.

Originally posted by arnymars:

What about similar Format Panel for Opera Mail Client - is it adaptable?


no User-Javascripts can't change anything outside webpage sad

13. January 2008, 11:08:29

dude09

ex-Opera user

Posts: 5195

Thanks AyushJ!bigsmile

13. January 2008, 18:31:35

Saddle Magic

Psycho Chicken What_The_Cluck

Posts: 19681

up thank you smile
Opera 12.02 Build 1578 | 3.00 GHz Pentium 4 | 2 GB DDR | WinXP Pro sp3 | 10 GB access | 22" Widescreen LCD, Synaptics Touchpad & $5 Keyboard

14. January 2008, 10:22:24

shoust

Operaised

Posts: 3196

I don't know if you people have noticed yet, but there is a smileys button in the bottom right corner of the quick reply box wink
My Opera I burning the E
Thats the way it should always B.
smile

14. January 2008, 12:36:29

Moderator

Tamil

:-(|)

Posts: 115304

Originally posted by shoust:

I don't know if you people have noticed yet, but there is a smileys button in the bottom right corner of the quick reply box

When it is enabled it hides part of text box.

14. January 2008, 13:37:51

HaJotKE

Grumbling Hyper-Critical Cantankerous Curmudgeon!

Banned user

Originally posted by Tamil:

When it is enabled it hides part of text box

And where and how can I disable that, please?
OPERA V8.54 (Win NT4) & V9.27 & V9.52[b10108] & V9.62[b10467] & V10[b1413] standard on (Win 98 SE) / (Win NT4) / (Win 2000 pro)
◇◇ UserJavascript "zz-spoof-id"! ◇◇◇ [Thanks for Finally Considering this Petition!] Composing Emails in the HTML Format in Opera

14. January 2008, 13:49:11

dude09

ex-Opera user

Posts: 5195

Originally posted by HaJotKE:

And where and how can I disable that, please?


Just use Block Content to block it.doh

14. January 2008, 14:07:03 (edited)

HaJotKE

Grumbling Hyper-Critical Cantankerous Curmudgeon!

Banned user

Originally posted by dude09:

Just use block content to block it

Ah, that...
I thought there would be some setting in this script? bigsmile

[EDIT]
This blocking method cannot be used, because I am loosing my smilies facilities in 'Edit' mode of a post... sad
Not when first posting, however.
Strange...
OPERA V8.54 (Win NT4) & V9.27 & V9.52[b10108] & V9.62[b10467] & V10[b1413] standard on (Win 98 SE) / (Win NT4) / (Win 2000 pro)
◇◇ UserJavascript "zz-spoof-id"! ◇◇◇ [Thanks for Finally Considering this Petition!] Composing Emails in the HTML Format in Opera

14. January 2008, 14:07:30

dude09

ex-Opera user

Posts: 5195

I think that's a new feature of the forum added after the upgrade/changed...
but it's horrible to be useful, because it block 1/3 of the text box.

They should make it to display the icons in horizontal along the bottom of the textbox instead.
Anyway, we don't need it because we can simply use AyushJ's userjs - It better anyway...

14. January 2008, 14:12:23

HaJotKE

Grumbling Hyper-Critical Cantankerous Curmudgeon!

Banned user

I don't use it, I am using exclusively smilies *AyushJ* is offering... norris bigsmile

and that, because it's not going away and because it's coming in the way with other userscripts I have... bug mad
OPERA V8.54 (Win NT4) & V9.27 & V9.52[b10108] & V9.62[b10467] & V10[b1413] standard on (Win 98 SE) / (Win NT4) / (Win 2000 pro)
◇◇ UserJavascript "zz-spoof-id"! ◇◇◇ [Thanks for Finally Considering this Petition!] Composing Emails in the HTML Format in Opera

14. January 2008, 18:44:02

HaJotKE

Grumbling Hyper-Critical Cantankerous Curmudgeon!

Banned user

One add-on wish of my heart, I would like to have fulfilled, please *AyushJ*, have a look...

Before making lots of words, I'll show a picture here:

Quick Reply - my wish

Most important:
moving those STATUS/INFO buttons about 'Spotlight' and 'Subscription' to the right in the line of the 'Post Reply' button...

Hope some more would like this design too? bigsmile
OPERA V8.54 (Win NT4) & V9.27 & V9.52[b10108] & V9.62[b10467] & V10[b1413] standard on (Win 98 SE) / (Win NT4) / (Win 2000 pro)
◇◇ UserJavascript "zz-spoof-id"! ◇◇◇ [Thanks for Finally Considering this Petition!] Composing Emails in the HTML Format in Opera

15. January 2008, 00:43:24

fearphage

Trained Swordsman of Unwanted Opera Termination

Posts: 2234

@HaJotKE: Personally, I think that your last wish is beyond the scope of this script. If there are no objections (Ayush), I wouldn't mind accomodating your request in the myopera optimizations script. Just a suggestion...
Always latest weekly; XP Pro SP2
My bugs / disable RSS subscription prompt (This will disable email and chat as well) / Receive emailed copies of your bug reports

quote from desktopteam blog Feb 23 2007 06:49.36 (direct link to comment)

Originally posted by borg:

we will not be satisfied before we have the best developer tools in the industry

Source: Mozilla Links - 5 things I’d like to see in Opera

Originally posted by Percy Cabello:

One of the main reasons I prefer Firefox is that it starts from the belief that it can’t be the ideal browser for everybody

15. January 2008, 13:28:11 (edited)

AyushJ

Posts: 4754

HaJotKE- You can use UserCSS:
#addsmilies,.postreply {float:left}
#addsmilies+p,.buttons {float:right;}
.forumtools,.pagenav {clear:right;margin-bottom:0}
#quickreply {border-top-width:6px!important;padding-top:4px;}
#addsmilies,#addsmilies+p {margin-top:6px}
#addsmile{display:none}


Originally posted by fearphage:

If there are no objections (Ayush), I wouldn't mind accomodating your request in the myopera optimizations script.


No problem up

16. January 2008, 05:03:39

fearphage

Trained Swordsman of Unwanted Opera Termination

Posts: 2234

@HaJotKE: Added your suggestions. Nothing I added touched the smilie interface and buttons. I just implemented the changes from your previous post. enjoy!

Thanks Ayush!
Always latest weekly; XP Pro SP2
My bugs / disable RSS subscription prompt (This will disable email and chat as well) / Receive emailed copies of your bug reports

quote from desktopteam blog Feb 23 2007 06:49.36 (direct link to comment)

Originally posted by borg:

we will not be satisfied before we have the best developer tools in the industry

Source: Mozilla Links - 5 things I’d like to see in Opera

Originally posted by Percy Cabello:

One of the main reasons I prefer Firefox is that it starts from the belief that it can’t be the ideal browser for everybody

16. January 2008, 10:54:01

HaJotKE

Grumbling Hyper-Critical Cantankerous Curmudgeon!

Banned user

Hello *AyushJ* and *fearphage*, thank you both very much, it's looking great now, marvelous! up

You made me a fine birthday present by that, yesterday, BTW... bigsmile
Thanks, once more!beer wine coffee
OPERA V8.54 (Win NT4) & V9.27 & V9.52[b10108] & V9.62[b10467] & V10[b1413] standard on (Win 98 SE) / (Win NT4) / (Win 2000 pro)
◇◇ UserJavascript "zz-spoof-id"! ◇◇◇ [Thanks for Finally Considering this Petition!] Composing Emails in the HTML Format in Opera

30. January 2008, 05:40:30

balu_

Posts: 17

thanx a lot ayushsmile yes yes
The KMPlayer 2.9.3.1428 Final Release
http://imgcdn.pandora.tv/pan_img/KMP/Download/kmp.exe

22. February 2008, 22:46:47

fearphage

Trained Swordsman of Unwanted Opera Termination

Posts: 2234

Bug in 1.2.6: The email button has '' in the box although using the email tag automatically adds this. Resulting in
mailto:mailto:foo@bar.com
addresses.
Always latest weekly; XP Pro SP2
My bugs / disable RSS subscription prompt (This will disable email and chat as well) / Receive emailed copies of your bug reports

quote from desktopteam blog Feb 23 2007 06:49.36 (direct link to comment)

Originally posted by borg:

we will not be satisfied before we have the best developer tools in the industry

Source: Mozilla Links - 5 things I’d like to see in Opera

Originally posted by Percy Cabello:

One of the main reasons I prefer Firefox is that it starts from the belief that it can’t be the ideal browser for everybody

27. March 2008, 21:36:50

fearphage

Trained Swordsman of Unwanted Opera Termination

Posts: 2234

Another 1.2.6 bug: There is no check for the existence of the comment box. On pages where the forum is closed, the textarea is absent resulting in an error:
JavaScript - http://my.opera.com/community/forums/topic.dml?id=206102
Event thread: DOMContentLoaded
Error:
name: TypeError
message: Statement on line 250: Cannot convert undefined or null to Object
Backtrace:
  Line 250 of User JS script 
          opera.AddCodeTools((codTT=document.forms.addcomment).comment,codTT)
  ...
stacktrace:   ...
Always latest weekly; XP Pro SP2
My bugs / disable RSS subscription prompt (This will disable email and chat as well) / Receive emailed copies of your bug reports

quote from desktopteam blog Feb 23 2007 06:49.36 (direct link to comment)

Originally posted by borg:

we will not be satisfied before we have the best developer tools in the industry

Source: Mozilla Links - 5 things I’d like to see in Opera

Originally posted by Percy Cabello:

One of the main reasons I prefer Firefox is that it starts from the belief that it can’t be the ideal browser for everybody

30. March 2008, 08:54:25

rfudk

Godlike!

Posts: 114

thisrox
Wise men talk because they have something to say; fools, because they have to say something.

30. March 2008, 10:53:16

Opera Software

d.i.z.

bug hunter

Posts: 3029

I wonder where is Ayush...

3. April 2008, 06:19:30

DachaArh

Posts: 62

how to add these user script, paste it in notepad, what next ? ....

3. April 2008, 11:20:55

xErath

javascript guru

Posts: 6588

Originally posted by DachaArh:

how to add these user script, paste it in notepad, what next ? ....


http://www.opera.com/support/tutorials/userjs/using/#writingscripts
For a collection of user scripts visit
http://my.opera.com/xErath/blog/

Forums » General Opera topics » User JavaScript