User:Cuckooman4/js.js/doc: Difference between revisions

Content deleted Content added
Cuckooman4 (talk | contribs)
Created doc.
 
Cuckooman4 (talk | contribs)
Added compatibility
 
(One intermediate revision by the same user not shown)
Line 1:
Adds an "Edit -insert skin here-.js" link to the navigation menu.
 
==Usage==
There's really nothing to set. I could make it possible to choose what menu to add it to, though.
Click the link to edit your user javascript.
 
==Setting which portlet to add the link to==
I'd put it in the toolbox, but I use it a lot, so I put it in navigation as default.
 
Use:
<pre>
jslinkportlet = "-insert portlet id here-"
</pre>
 
From [[Wikipedia:WikiProject_User_scripts/Techniques]]:
*;'p-cactions' : the tabs at the top of the page (with the article, discussion, edit, history, move, and watch links)
*;'p-personal' : the personal toolbar (i.e. the one at the top, with a link to user page, user talk, prefs, watchlist, contribs, log out)
*;'p-navigation' : the navigation toolbar (i.e. Main page, Featured Content, etc.)
*;'p-interaction' : the interaction toolbar, below the navigation toolbar
*;'p-tb' : the toolbox (What links here, Related changes etc.)
 
==Installation==
Line 13 ⟶ 29:
 
It automatically figures out what skin you're using (there's a <code>skin</code> variable), so you don't have to set it.
 
==Compatibility==
{|
!Browser!!Compatible?
|-
|[[Internet Explorer|IE 6]]||Yes
|-
|[[Mozilla Firefox|FF 2]]||Yes
|}