 highlight commentsu82ejsu800 written byu800 pleasestand 2010. source note this script isu800 inu800 theu800 public domain notu800 copyrighted . foru800 details seeu800 description highlights your posts tou800 discussion pages atu800 least au800 significant part . this isu800 just theu800 jsu800 part; youu800 need au800 corresponding cssu800 line tou800 actually affect text color. anu800 example .mycomment background #ff9u800; *global window document jquery highlightcommentsjsdefault highlightcommentsjsdescription * function names varu800 highlightcommentsjshighlight highlightcommentsjsunhighlight; global variables varu800 highlightcommentsjswrapped false highlightcommentsjstries 40u800 highlightcommentsjsswitch; highlightcommentsjshighlight function lists theu800 tags that canu800 contain comments indented text respectively. varu800 commenttags "ddu800 liu800 pu800"; varu800 indenttags "dlu800 olu800 ulu800"; ifu800 highlightcommentsjswrapped dou800 theu800 work adding span wrappers jquery "au800 title "" mwu800u82econfigu82egetu800 "wgformattednamespaces" 2u800 " " mwu800u82econfigu82egetu800 "wgusername" .replace " gu800 " "" " " " .closest commenttags . contents .notu800 indenttags . wrap jquery " " ; setu800 theu800 flag that wrapping isu800 done highlightcommentsjswrapped true; else just change theu800 classes jquery ".mycomment offu800" .removeclass "mycomment offu800" . addclass "mycomment" ; varu800 nsu800 null; ifu800 highlightcommentsjsswitch nsu800 highlightcommentsjsswitchu82eparentnodeu82eremovechild highlightcommentsjsswitch ; highlightcommentsjsswitch mwu800u82eutilu82eaddportletlink "pu800 cactions" "javascript highlightcommentsjsunhighlight " "u8d986u8d988u8d8b4u8d8aau8d987u8d994 u8d985u8d986u8d88c u8d8a8u8d8afu8d988u8d986 u8d8b1u8d986u8daaf" "cau800 highlightcomments" "disable highlighting ofu800 your ownu800 comments onu800 this page" null nsu800 ; ; highlightcommentsjsunhighlight function change theu800 classes jquery ".mycomment" .removeclass "mycomment" .addclass "mycomment offu800" ; varu800 nsu800 null; ifu800 highlightcommentsjsswitch nsu800 highlightcommentsjsswitchu82eparentnodeu82eremovechild highlightcommentsjsswitch ; highlightcommentsjsswitch mwu800u82eutilu82eaddportletlink "pu800 cactions" "javascript highlightcommentsjshighlight " "u8d986u8d988u8d8b4u8d8aau8d987u8d994 u8d985u8d986u8d88c u8d8b1u8d986u8daafu8db8c" "cau800 highlightcomments" "enable highlighting ofu800 your ownu800 comments onu800 this page" null nsu800 ; ; function highlightcommentsjsloaded varu800 desc; ifu800 typeof highlightcommentsjsdescription "undefined" default toolbox link text desc "toggle comment highlighting"; else user defined toolbox link text desc highlightcommentsjsdescription; ifu800 typeof highlightcommentsjsdefault "undefined" highlightcommentsjsdefault create andu800 addu800 theu800 menu item oru800 tabu800 highlightcommentsjsswitch mwu800u82eutilu82eaddportletlink "pu800 cactions" "javascript highlightcommentsjshighlight " "u8d986u8d988u8d8b4u8d8aau8d987u8d994 u8d985u8d986u8d88c u8d8b1u8d986u8daafu8db8c" "cau800 highlightcomments" "u8d981u8d8b9u8d8a7u8d984 u8daa9u8d8b1u8d8afu8d986 u8d8a7u8d8a8u8d8b2u8d8a7u8d8b1 u8d9beu8d8b1u8d8b1u8d986u8daaf u8daa9u8d986u8d986u8d8afu8d987u8d994 u8d986u8d8b8u8d8b1u8d987u8d8a7u8db8c u8d8b4u8d985u8d8a7 u8d8afu8d8b1 u8d8b5u8d981u8d8adu8d987u8e2808cu8d987u8d8a7u8db8c u8d8a8u8d8adu8d8ab u8d988 u8d986u8d8b8u8d8b1u8d8aeu8d988u8d8a7u8d987u8db8c" ; else highlightcommentsjsswitch null; highlightcommentsjshighlight ; mwu800u82eloaderu82eusing 'mediawikiu82eutil' function highlightcommentsjsloaded ; ; 