Skip to content

Instantly share code, notes, and snippets.

@seaside98
seaside98 / ImportGitHub.js
Created April 21, 2014 01:22
Import a script or stylesheet from GitHub
/* A useful script for pulling directly from GitHub to Wikia.
*
* Use by calling:
* importGitHub('LMBW/Parallel/Parallel.css');
* or
* importGitHub('LMBW/Parallel/Parallel.js');
*/
function importGitHub( path ) {
path = path.replace(/(.*?\/.*?\/)/, '$1contents/');
$.ajax({
@seaside98
seaside98 / RandomPage.js
Last active August 29, 2015 14:00
Creates random mediawiki pages
var num = prompt("Number of pages to create", "1");
var text = prompt("Page text", "Spam");
num = parseInt(num);
for (var i = 0; i < num; i++) {
var title = Math.random().toString(36).substring(13);
$.ajax({
url: wgServer + '/api.php?action=edit&title='+title+'&appendtext='+encodeURIComponent( text )+'&token='+encodeURIComponent( mw.user.tokens.get('editToken') ),
type: 'POST'
});
@seaside98
seaside98 / SassMeister-input.scss
Created April 12, 2014 01:49
Generated by SassMeister.com.
// ----
// Sass (v3.3.5)
// Compass (v1.0.0.alpha.18)
// ----
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
@seaside98
seaside98 / Circles.css
Created March 31, 2014 21:45
A chat skin I started and never finished
@import url(http://fonts.googleapis.com/css?family=Varela+Round);
.ChatWindow {
overflow: hidden;
/*font-family: 'Varela Round', sans-serif;*/
background-image: url('http://www.10wallpaper.com/wallpaper/1920x1080/1107/tender_grass_wallpaper_1920x1080.jpg');
background-size: cover;
}
/*.ChatWindow:before {
background-color: rgba(0,0,0,.2);
position: absolute;
/*April Fools 2013 (Backwards Chat) - by Seaside98 and Danielboone6702*/
var mill = new Date().getTime();
var goStop;
function timeCheck() {
var millCur = new Date().getTime();
if (millCur < mill+30000) { // < 30 seconds
goStop = true;
} else if (millCur > mill+300000) { // 5 minutes have passed
mill = mill+300000;
//<syntaxhighlight lang="javascript">
/* User Talk Notifications
* Code by Seaside98 */
//Variables
var talkWikis = window.talkWikis || [];
var pageName = window.talkName || 'Talk';
var talkNames = [];
var enUserName = encodeURIComponent(wgUserName);
/* Policy Popup */
//Make sure cookies are enabled
if($.cookie('closePolicy') != 'close' && wgUserName) {
$.cookie('closePolicy','enabled',{expires: 365});
if($.cookie('closePolicy') == 'enabled') {
var $optionsWindowHTML = $.showCustomModal( '<div style="font-weight:bold;color:#d25a1b;">Welcome to the LEGO Message Boards Wiki!</div>', 'Our Wiki is a kid-friendly site. <font color="red">No bad language, inappropriate discussions, or personal information is allowed.</font> By editing, chatting, or posting on this Wiki, you agree to follow our <a href="/wiki/Lego_Message_Boards_Wiki:General_Policy" target="_blank" style="font-weight:bold;">Full Policy</a>.', {
id: "optionsWindow",
width: 600,
buttons: [
{
/* Fall Skin - by Seaside98
Winter Skin - by Nxtstep101
JavaScript - by Seaside98
Version 2.2.1
Change Log:
1.0.0 - Fall skin and script
2.0.0 - Winter skin and rewrite of script
2.1.0 - Fixed css loading problems
2.2.0 - Added cookies
2.2.1 - Winter skin is no longer default */