Wikipedia:User scripts/Guide: Difference between revisions
Content deleted Content added
Johnduhart (talk | contribs) →Adding elements: Killing off this section, this is a really bad method as portlets are much more complex than just a div. Just use the functions, please |
Johnduhart (talk | contribs) →Removing elements: Updated to use jQuery |
||
Line 295:
=== Removing elements ===
To move an element simply attach it in another place with [http://api.jquery.com/append/ <
To hide an element you can
<source lang="javascript">
// Example: remove copyright warning from edit page
// Or modify the CSS directly
$( '#editpage-copywarn' ).css( 'display', 'none' );
</source>
This is easier with [[Special:Mypage/skin.css|your vector.css]] though:
< #editpage-copywarn { display:none; } </ == Edit page ==
|