Difference between revisions of User:Viceroy Sam/nightpedia.js
Viceroy Sam (talk | contribs) Local User:Sam.Watson/nightpedia.css |
Viceroy Sam (talk | contribs) Undo revision 11573 by Sam.Watson (talk) Tag: Undo |
||
| Line 22: | Line 22: | ||
} | } | ||
function lightsOff() { | function lightsOff() { | ||
if(!cssLoaded) { | |||
$('head').append(mw.loader.load('https://wiki.endmyopia.org/index.php?title=User:Sam.Watson/nightpedia.css&action=raw&ctype=text/css', 'text/css')); | |||
} | |||
$('html').addClass('nighttime'); | |||
$('#pt-nightpedia a').text('Daypedia'); | |||
mw.storage.set('nightpedia', 'on'); | |||
return true; | |||
} | } | ||
}); | }); | ||
//</nowiki> | //</nowiki> | ||