SCS Software

message board
It is currently 30 Apr 2017 16:57

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: 23 Jan 2016 08:59 
Offline
User avatar

Joined: 22 Jun 2014 12:08
Posts: 2993
Location: Budapest, Hungary
If you pay attention to use someone's nick in a right color, you noticed that can be a pain because the colors are not in the color palette or they are hard to find :)

I've made a small JavaScript addon to make selection easier.
Image
The links are make the (selected) text bold and colored.

Installation:
  1. Install this Google Chrome addon: https://chrome.google.com/webstore/deta ... elnpjljija
  2. Open a forum page. Not necessary a reply or new topic page. Only domain matters.
  3. Select jQuery 1.11.0 in the second select.
  4. Copy this gist's content into the addon: https://gist.github.com/davidzoli/bf536ee3d44d887157b7
    You have to see this:
    Image
  5. Save
  6. If it's ok, you can hide the "cjs" button in its right click menu

After this when you open a post window, you will see the user type color selector too.

What is this?
This is a small JavaScript code injection to the site on client (your) side.

Is this secure?
Yes. Despite it is an injected JavaScript this code is not harmful. The source is readable, (copied by you) and contains only necessary things.
Don't use that Google Crome addon for unknown codes (from untrusted sources)!

Can this make other thing unusable?
Yes. If it has a problem, it can stop the whole site's own JavaScript working.
In that case just delete the addon's code from the code field and save the empty field. Than everything should be ok again. It's working like a mod in the game :)

Do you plan other functions too?
I missed this function for this time :) And the site's HTML source is quite outdated. So the possibilities are limited. But if you have a widely useful suggestion, share that and I'll check that.

_________________
-- wake me up when Range T has arrived --


Last edited by davidzoli on 23 Sep 2016 14:37, edited 1 time in total.

Top
 Profile  
 
PostPosted: 23 Jan 2016 17:50 
Offline

Joined: 06 Nov 2013 11:01
Posts: 3529
Really useful! Wish I'd thought of doing this months ago. Thanks davidzoli! (see, it works ;))

(ooooh. and it bolds it too! you thought of everything...)


EDIT: you could also add #C20600, which would be "Admin" (Michal)


Top
 Profile  
 
PostPosted: 23 Jan 2016 19:38 
Offline
User avatar

Joined: 22 Oct 2013 09:55
Posts: 7229
Location: The Lost Coast
When I first came here I opened Paint Shop Pro and made a note of the forum member color list. Here it is for people who don't use Chrome and \ or Javascript.

Forum Color Legend: (Use of Staff colors are restricted.)
Forum Administrators, Red: #CC0000
Forum Moderators, Green: #00AA00
SCS Staff, Gold: #CC990B
SCS Beta Testers, Light Blue: #66FFFF
Members, in forum lists, Dark Gold #A5904C
Members, in post member ID's, White: #FFFFFF

_________________
You can call me Ax

Image


Top
 Profile  
 
PostPosted: 23 Jan 2016 21:19 
Offline
User avatar

Joined: 22 Jun 2014 12:08
Posts: 2993
Location: Budapest, Hungary
Thanks guys!
Admin red added in the gist. You can update your script if you haven't made that extra one linkHolder.append() by yourselves.

Dark gold and white is not necessary in a reply, I think.
For info, the regular text color is #D2D4D5 in hex format.

_________________
-- wake me up when Range T has arrived --


Top
 Profile  
 
PostPosted: 23 Sep 2016 13:24 
Offline

Joined: 06 Nov 2013 11:01
Posts: 3529
Any chance we can have this stickied?
It's really quite a useful tool, and it took me ages to find it (yes, even with google - it's difficult to work out keywords for it!)


Top
 Profile  
 
PostPosted: 23 Sep 2016 13:32 
Offline
User avatar

Joined: 05 Mar 2014 19:52
Posts: 5611
Location: United Kingdom
^^
Done. :P

_________________
ImageImage
ImageImage


Top
 Profile  
 
PostPosted: 23 Sep 2016 13:41 
Offline

Joined: 28 Dec 2012 01:16
Posts: 3976
WTH is an "Operator" ?

_________________
Nope.. I got nuthin'


Top
 Profile  
 
PostPosted: 23 Sep 2016 14:35 
Offline
User avatar

Joined: 22 Jun 2014 12:08
Posts: 2993
Location: Budapest, Hungary
Reef :lol: Fixed :D

_________________
-- wake me up when Range T has arrived --


Top
 Profile  
 
PostPosted: 23 Sep 2016 16:31 
Offline

Joined: 28 Dec 2012 01:16
Posts: 3976
Nice, appears to work well Mr davidzoli, this Moderator approves :P



(I now have to use two scripts on this archaic forum, I use that one to give us the SCS logo in the page tab and favourites bar too)

_________________
Nope.. I got nuthin'


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: