User:PleaseStand/Comment highlighter: Difference between revisions
PleaseStand (talk | contribs) m one more |
PleaseStand (talk | contribs) clarify what is highlighted |
||
Line 1: | Line 1: | ||
'''Comment highlighter''' is a user script by [[User:PleaseStand|PleaseStand]] that allows you to easily highlight your discussion page comments. The script adds a tab or menu item called "Toggle comment highlighting" to do so, turning the highlighting on or off. (When a page is loaded, it is turned off until the user clicks the tab/menu item.) |
'''Comment highlighter''' is a user script by [[User:PleaseStand|PleaseStand]] that allows you to easily highlight your discussion page comments while reading the discussion page (comments are not highlighted in edit mode). The script adds a tab or menu item called "Toggle comment highlighting" to do so, turning the highlighting on or off. (When a page is loaded, it is turned off until the user clicks the tab/menu item.) |
||
== Installation == |
== Installation == |
Revision as of 00:02, 28 May 2010
Comment highlighter is a user script by PleaseStand that allows you to easily highlight your discussion page comments while reading the discussion page (comments are not highlighted in edit mode). The script adds a tab or menu item called "Toggle comment highlighting" to do so, turning the highlighting on or off. (When a page is loaded, it is turned off until the user clicks the tab/menu item.)
Installation
On the English Wikipedia
- Add the following code to Special:MyPage/skin.js:
importScript("User:PleaseStand/highlight-comments.js");
- And also the following code to Special:MyPage/skin.css: (If you forget to add this to the linked skin CSS (not .js file), your comments will not appear highlighted.)
.mycomment { background: #ff9; }
Keep in mind that that this script will automatically load jQuery from the Wikimedia server if it does not detect that jQuery has already been loaded. This means that to use this script, you do not need to add jQuery to your skin.js file, even though it does heavily rely on jQuery.
Other wikis
If you are not on the English Wikipedia, you will need to use the following code instead. It is still necessary to add the CSS code.
// install [[Wikipedia:User:PleaseStand/Comment highlighter]] browsing tool
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/enwiki/w/index.php?title=User:PleaseStand/highlight-comments.js'
+ '&action=raw&ctype=text/javascript"></' + 'script>');
Advanced
Source code
The source code is available at User:PleaseStand/highlight-comments.js.
Configuration
Change the CSS code to configure the color that comments should be highlighted. All other aspects of the script currently are not configurable (or at least should not be changed without a good reason to do so).
Gadget
This script is currently proposed as a Gadget.
Any questions?
If you have any questions, please leave a message on my talk page, or on the talk page of these instructions.