User:Hydriz/Scripts

From Simple English Wikipedia, the free encyclopedia

Here is the list of gadgets that is being used on the English Wikipedia but not here. I have imported some that might be useful for use. JS files can just importScript to the Javascript files, I don't really know how to do so on CSS. But it is being listed for reference(in case you know).

PLEASE USE THE CONTENTS BOX PROVIDED HERE! THE PAGE IS VERY BIG AND LONG!

CSS scripts[change | change source]

Gadgets coded in CSS is found here.

ExpandSearchBox[change | change source]

ExpandSearchBox is the name I have given it. It is actually called WidenSearch but the English has to be simple on this wiki

Script page: User:Hydriz/ExpandSearchBox.css

Code:

div#simpleSearch input#searchInput { width: 20em; }
div#simpleSearch { margin-top: 0.6em; }

EnhancedTalk[change | change source]

EnhancedTalk is a gadget on the English Wikiversity to color discussions. Click here to see a screenshot.

Script page: User:Hydriz/EnhancedTalk.css

Code:

 /* Styles for discussion pages; */
 .ns-talk dl, .ns-4.page-Wikiversity_Colloquium dl { display:block; padding:0em; margin:0px; background-color:#BEBFFF; }
 .ns-talk dd, .ns-4.page-Wikiversity_Colloquium dd { display:block; padding:1em; margin:0em; }
 .ns-talk dl dl, .ns-4.page-Wikiversity_Colloquium dl dl { background-color:#D2E0FF; margin:1em -1em -1em 0em; }
 .ns-talk dl dl dl, .ns-4.page-Wikiversity_Colloquium dl dl dl { background-color:#9FAFFF; margin:1em -1em -1em 0em; } 
 .ns-talk dl dl dl dl, .ns-4.page-Wikiversity_Colloquium dl dl dl dl { background-color:#CFFF9F; margin:1em -1em -1em 0em; }
 .ns-talk dl dl dl dl dl, .ns-4.page-Wikiversity_Colloquium dl dl dl dl dl { background-color:#7FFF5F; margin:1em -1em -1em 0em; }
 .ns-talk dl dl dl dl dl dl, .ns-4.page-Wikiversity_Colloquium dl dl dl dl dl dl { background-color:#CFFF9F; margin:1em -1em -1em 0em; }
 .ns-talk dl dl dl dl dl dl dl, .ns-4.page-Wikiversity_Colloquium dl dl dl dl dl dl dl { background-color:#FFFFCF; margin:1em -1em -1em 0em; }

BlackSkin[change | change source]

Only for the Monobook skin!

Script page: User:Hydriz/blackskin.css

Code:

///// here begins MediaWiki:Gadget-Blackskin.css /////
///// Created by [[it:Utente:Kormoran]]          /////
 
/* Colors the tabs across the top of the page */
 
#p-cactions { 
    background-color: #000000;  
}
#p-cactions li { 
    background-color: #000000;  
    border-color: #008000;
}
#p-cactions li.selected { 
    background-color: #000000; 
}
#p-cactions li.new { 
    background-color: #000000; 
}
#p-cactions li a { 
    background-color: #000000 !important; 
    color : #7070FF;
}
#p-cactions li.selected a {
    background-color:#000000; 
}
 
/* Color background */ 
body {
    background: Black;
    color: #00dd00;
}
 
#content { background : #000000 !important; }
#content { color : #00dd00 !important; } 
#content { border: 1px solid #008000  !important; }
 
 
/* Color the links */
a { color: #7070FF; }
a:visited { color: #9090D0; }
a:active, a.new { color: #FF4040; }
a.interwiki, a.external { color: #5386DB; }
a.stub { color: #974253; }
 
/* Color the edit interface */
 
textarea { color: #90FF90; }
textarea { background : #001000; } 
 
/* User links (preferences, contribs) */
 
.autocomment { color: #008000; }
fieldset { 
    background: transparent; 
    border: 1px solid #004000;
}
legend { 
    background: transparent; 
    border: 1px solid #004000;
}
 
hr {
    color: #004000;
    background-color: #000000;
}
 
/************************
 *  COLOR IN TEMPLATES  *
 ************************/
 
 
/* Assorted other stuff */
 
/* New messages */
.usermessage {
    background-color: #004000;
    border: 1px solid #FFFF00;
    color: #FFFF00;
    font-weight: bold;
}
 
/* Fix background of Tex images, which are black on transparent. */
img.tex { background: white; }
 
input.historysubmit {
    padding: 0 0.3em 0.3em 0.3em !important;
    font-size: 94%;
    cursor: pointer;
    height: 1.7em !important;
    margin-left: 1.6em;
}
input[type="radio"],
input[type="checkbox"] { border:none; }
select {
    background-color: #004000;
    background: #004000;
    border: 1px solid #008000;  
    color: #00dd00;
    vertical-align: top;
}
 
#p-personal li a {
  color: #FFFF00;
  background-color: #000000;
  background: #000000;
}
 
#p-personal li a:hover {
  color: #FFFF00;
  background-color: #636300;
  background: #636300;
}
 
/* Toglie l'icona vicino al nome utente 
li#pt-userpage { background: none }*/
 
#infobox { background: #002000;
           color: #00FFFF;
           border: ipx solid #00FFFF
}
 
/* Use black logo */
#p-logo { 
    background: url(http://upload.wikimedia.org/wikipedia/en/6/6e/WikiGreen.png) no-repeat; 
    display: none
    position:absolute; /*needed to use z-index */
    top: 8;
    left: 15;
    height: 0;
    width: 0;
    padding: 0 0 154px 154px;
    overflow: hidden;
}
 
 
/* Search box */
#searchInput { 
    border: 1px inset !important; 
    color: #00dd00; 
    background : #000000; 
} 
 
input.searchButton { 
    background : #000000; 
    border-top: 1px solid #00FFFF;
    border-left: 1px solid #00FFFF;
    border-right: 1px solid #008080;
    border-bottom: 1px solid #008080;
    color : #00dd00; 
}
 
/* .More backgrounds */
 
.portlet {
    background: #004000;
    color: #00dd00;
}
 
.pBody {
    background: #000000;
    color: #00dd00;
}
 
 
 
/* Questa roba mette i tab di editing pagina Wiki anche in fondo al box 
(ma non funge con IE e serve anche un filettino monobook.js... vedere la 
mia pagina utente) */
#mytabs {
    margin: -0.3em 0 0  11.5em;
    border: 1px solid #008000;
    white-space:nowrap;
    line-height: 1.1em;
    overflow: visible;
    border-collapse: collapse;
    padding: 0 0 0 1em;
    list-style: none;
    font-size: 95%;
}
#mytabs .hiddenStructure { display: none; }
#mytabs li {
    display: inline;
    border: 1px solid #004000;
    border-top: none;
    padding: 0.1em 0 0 0;
    margin: 0 0.3em 0 0;
    overflow: visible;
    background: #000000;
    color: #7070FF;
}
#mytabs li.selected {
    border-color: #00dd00;
    padding: 0.2em 0 0 0;
}
#mytabs li a {
    background-color: #000000;
    color: #7070FF;
    border: none;
    padding: 0.3em 0.8em 0 0.8em;
    text-decoration: none;
    text-transform: lowercase;
    position: relative;
    margin: 0;
}
#mytabs li.selected a { z-index: 3; }
#mytabs .new a { color:#FF4040; }
#mytabs li a:hover {
    z-index: 3;
    text-decoration: none;
}
#mytabs h5 { display: none; }
#mytabs li.istalk { margin-right: 0; }
#mytabs li.istalk a { padding-right: 0.5em; }
#mytabs-ca-addsection a { 
    padding-left: 0.4em;
    padding-right: 0.4em;
}
/* offset per separare i gruppi di tab */
li#mytabs-ca-talk { margin-right: 1.6em; }
li#mytabs-ca-watch { margin-left: 1.6em; }
 
/* Colore dei box delle spiegazioni, degli acronimi e delle abbreviazioni */
abbr, acronym, .explain {
    border-bottom: 1px dotted #004000;
    color: White;
    background: #002000;
    cursor: help;
}
 
/* Colore dei frammenti di codice */
code { 
    background-color: #00AA00; 
    color: Black; 
}
/* Colore del testo preformattato */
pre {
    padding: 1em;
    border: 1px dashed #00AA00;
    color: White;
    background-color: #002000;
    line-height: 1.1em;
}
 
h1, h2, h3, h4, h5, h6 { color: #00dd00; }
#bodyContent h1 { color : #00dd00; }
#bodyContent h2 { color : #00dd00; }
#bodyContent h3 { color : #00dd00; }
#bodyContent h4 { color : #00dd00; }
#bodyContent h5 { color : #00dd00; }
#bodyContent h6 { color : #00dd00; }
h1 { border-bottom: 2px solid #008000; }
h2 { border-bottom: 1px solid #008000; }
 
 
/* Colore di sfondo e di testo delle tabelle */
table { 
    background: #000000;
	background-color: #000000;
    color: #00dd00; 
}
/* Colore del sommario dell'articolo */
#toc { 
    background: #002000; 
    border: 1px solid #008000; 
}
 
/* La barra in fondo alla pagina */
#footer {
    background-color: Black;
    color: #00dd00;
    border-top: 1px solid #FFFF00;
    border-bottom: 1px solid #FFFF00;
    margin: 0.6em 0em 1em 0em;
    padding: 0.4em 0em 1.2em 0em;
    text-align: center;
    font-size: 90%;
}
/* box delle categorie */
#catlinks {
    border:1px solid #800080;
    background-color:#000000;
    color: #00FFFF;
    padding:5px;
    margin-top: 1em;
    clear: both;
}
/* le immagini: meglio tenerle su sfondo bianco... */
img {
    border: 2px solid #008000;
    background-color: #000000;
}
 
/* thumbnails */
.ns-0 * #content div.thumb {
    border-color: #000000;
}
 
/* thumbnails */
 
div.thumb {
    margin-bottom: .5em;
    border-style: solid;
    border-color: #002000;
    width: auto;
}
div.thumb div {
    border: 1px solid #002000;
    padding: 3px !important;
    background-color: #004000;
    font-size: 94%;
    text-align: center;
    overflow: hidden;
}
div.thumb div a img {
    border: 1px solid #002000;
}
div.thumb div div.thumbcaption {
    border: none;
    text-align: left;
    line-height: 1.4em;
    padding: .3em 0 .1em 0;
}
 
 
 
#wpSummary {
  background-color: #000000;
  color: #90ff90;
}
 
#pagehistory li.selected {
    background-color: #004000;
    border: 1px solid #002000;
}
 
#pagehistory li {
    border: 1px solid #002000;
}
 
 
/*
** Diff rendering
*/
table.diff, td.diff-otitle, td.diff-ntitle {
    background-color: #000000;
}
td.diff-addedline {
    color: #00a000;
    background: #004000;
    font-size: smaller;
}
td.diff-deletedline {
    color: #00a000;
    background: #004000;
    font-size: smaller;
}
td.diff-context {
    background: #000000;
    color: #008000;
    font-size: smaller;
}
span.diffchange {
    color: #00ff00;
    font-weight: bold;
}
 
table.gallery {
    border: 1px solid #002000;
    background-color: #004000;
}
 
table.gallery td {
    background-color: #004000;
    border: solid 2px white;
}
 
div.gallerybox div.thumb {
    border: 1px solid #002000;
}
 
/* let's make a class that deals with tables better 
   Any complaints, please message Ta bu shi da yu */
 
table.wikitable {
  background: #000000;
  border: 1px #004000 solid;
}
table.wikitable th, table.wikitable td {
  border: 1px #004000 solid;
}
table.wikitable th {
  background: #000000;
}
 
 
/* suppress the person icon by your username */
li#pt-userpage { background: none; }
 
/* make a few corners round, only supported by moz/firefox/other gecko browsers for now, i reduced this from 1em to 4px to make it very illnoticable */
#p-cactions ul li, #p-cactions ul li a {  
  -moz-border-radius-topleft: 5px;
  -moz-border-radius-topright: 5px;
}
 
#content, #footer {
   -moz-border-radius-topleft: 5px;
   -moz-border-radius-bottomleft: 5px;
}
 
div.pBody {
   -moz-border-radius-topright: 4px;
   -moz-border-radius-bottomright: 4px;
}
 
/* Dotted borders on pre look ugly, replace with a solid one */
#bodyContent pre {
    border: 1px solid #aaa;
}
 
/* Dont need this copyright notice on every page */
 
/*li#f-copyright,
li#f-lastmod,
#editpage-copywarn { display: none; }*/
 
/* The 'Edit summary' box is way to crammed in the textarea box by default */
textarea { margin-bottom: 4px; }
 
 
/* ################################### */
/* Start of requirements for menu tabs */
.tabmenu ul
{
    display: none;
    z-index: 2;
    position: relative;
    top: -2px;
    border-top: 1px solid #aaaaaa;
    padding: 0px;
    margin: 0px;
    background: #F8FCFF;
    background-color: #F8FCFF;
}
 
 
/* Menu tab IDs. If you add a new menu, you need to add its ID here too */
#afda ul li, #talkm ul li, #dbm ul li
{
    float: none;
    border: 1px solid #aaaaaa;
    border-top: none;
    text-align: center;
    background: #F8FCFF;
    background-color: #F8FCFF;
}
 
.tabmenu:hover ul
{
    display: block;
}
 
.tabmenu a
{
    padding: 0pt 0.8em !important;
    background: #F8FCFF;
    background-color: #F8FCFF;
}
 
.tabmenu ul a:hover
{
    font-weight: bold;
}
 
/* End of requirements for menu tabs */
/* ################################# */
 
#bodyContent {
  color: #00dd00;
}
 
@media print { 
#content { color:black !important; }
body {
    color: black !important;
}
.pBody {
    color: black !important;
}
}
 
/* Changes for Vector skin */
#page-base {
  background: black;
}

JS scripts[change | change source]

The scripts coded in Javascript is found here.

Friendly[change | change source]

Script page: User:Hydriz/Friendly.js

Use this code on your skin.js page:

importScript('User:Hydriz/Friendly.js');

UTCLiveClock[change | change source]

Note: This gadget is on this wiki. But if your gadget does not work, you can use this.

Script page: User:Hydriz/UTCLiveClock.js

Use this code on your skin.js page:

importScript('User:Hydriz/UTCLiveClock.js');

GoogleTrans[change | change source]

Note: This script can only translate English to French. Please copy the source code into your subpage and make the changes yourself.

Script page: User:Hydriz/GoogleTrans.js

Use this code on your skin.js page:

importScript('User:Hydriz/GoogleTrans.js');

refToolbar[change | change source]

Script page: User:Hydriz/refToolbar.js

Use this code on your skin.js page:

importScript('User:Hydriz/refToolbar.js');

WikEd[change | change source]

Script page: User:Hydriz/WikEd.js

Use this code on your skin.js page:

importScript('User:Hydriz/WikEd.js');

Lefteditlinks[change | change source]

Script page: User:Hydriz/Lefteditlinks.js

Use this code on your skin.js page:

importScript('User:Hydriz/Lefteditlinks.js');

Longeditsummary[change | change source]

Script page: User:Hydriz/Longeditsummary.js

Use this code on your skin.js page:

importScript('User:Hydriz/Longeditsummary.js');

Quickedit(buggy)[change | change source]

Edit articles directly on the page

Script page: User:Hydriz/Quickedit.js

Use this code on your skin.js page:

importScript('User:Hydriz/Quickedit.js');

Note: This script is very buggy, since it was imported from Test Wikipedia. If you found any bug to this script, please post it on its talk page. I will direct them to the script creator.

Modrollback[change | change source]

Imported from English Wikibooks

Script page: User:Hydriz/modrollback.js

Use this code on your skin.js page:

importScript('User:Hydriz/modrollback.js');