Skip to content

Instantly share code, notes, and snippets.

View Xyvyrianeth's full-sized avatar

Xyvyrianeth Xyvyrianeth

View GitHub Profile
@Xyvyrianeth
Xyvyrianeth / conway.html
Created March 25, 2021 03:55
Conway's Game of Life
<!DOCTYPE html>
<body oncontextmenu="return false">
<canvas id="conway" height=900 width=900></canvas>
<div id="player">
<text class="left">PLAYER</text>
<text class="right">CANVAS</text><br>
<button class="left player" id="pause" onclick="ruleChange(0); blur()" title="Start the engine" oncontextmenu="blur()">PLAY</button>
<button class="right player" onclick="random(); blur()" title="Randomize the activity of every cell in the canvas" oncontextmenu="blur()">RANDOM</button><br>
<button class="left player" onclick="table.frame = true; blur()" title="Generate the next frame (engine must be paused)" oncontextmenu="blur()">STEP</button>
<button class="right player" id="clear" onclick="blur()" title="Set all cells to inactive" oncontextmenu="blur()">CLEAR</button><br>
@Xyvyrianeth
Xyvyrianeth / OwO.plugin.js
Last active October 5, 2017 05:19
Based of the Chrome extension, "OWO", created ONLY because a few friends of mine wanted to see this in Discord.
//META{"name":"OwO","author":"Xyvyrianeth","version":"1.2"}*//
function OwO() {
return;
}
OwO.prototype.pluginName = "OwO";
OwO.prototype.load = function() {
console.log("%c[OwO]%c Loaded", "color: #008888; font-weight: bold;", "");
@Xyvyrianeth
Xyvyrianeth / OwO.plugin.js
Created October 4, 2017 22:23
Based of the Chrome extension, "OWO", created ONLY because a few friends of mine wanted to see this in Discord.
//META{"name":"OwO"}*//
function OwO() {
return;
}
OwO.prototype.pluginName = "OwO";
OwO.prototype.load = function() {
console.log("%c[OwO]%c Loaded", "color: #008888; font-weight: bold;", "");
@Xyvyrianeth
Xyvyrianeth / Dan-Ball Comment Board Beautifier
Last active June 16, 2019 02:39
Dan-Ball Comment Board Beautifier
// ==UserScript==
// @name Dan-Ball Comment Board Beautifier
// @description Makes the CBs a little less ugly.
// @author Xyvyrianeth
// @match https://dan-ball.jp/en/bbs/*
// @include https://dan-ball.jp/en/bbs/*
// @include http://dan-ball.jp/en/bbs/*
// @include https://dan-ball.jp/bbs/*
// @include http://dan-ball.jp/bbs/*
// @namespace http://tampermonkey.net/
setInterval(function() {
document.body.style.cssText = "background: radial-gradient(at center center, rgb(" + backgroundcolor + ") 0%, rgb(0, 0, 0) 100%)";
}, 0);
$("body #bottom .relative").append('<div id="BC-btn" class="ugly-button BG_btn" style="position:fixed; background-color:#0aaa0a; width:100px; text-align:left; font-family:' + fixedWidth + '; font-color:#999999; border-style:inset; border-width:2px; border-color:#999999; bottom:92px; right:9px">BG Color</div>');
$("#BC-btn").click(function(){ backgroundcolorprompt = prompt("What would you like to set the background color to?", backgroundcolorprompt); if (backgroundcolorprompt === "") { backgroundcolor = "0, 0, 0"; } else { backgroundcolor = HTD(backgroundcolorprompt); } });
$("body #bottom .relative").append('<div id="CC-btn" class="ugly-button CC_btn" style="position:fixed; background-color:#0000aa; width:100px; text-align:left; font-family:Lucida Sans Typewriter; font-color:#999999; border-style:inset; border-width:2px; border-color:#999999; bottom:92px; right:9px">Clear Chat</div>');
$("#CC-btn").click(function(){ V.chat.clear(); localMsg("[chat]", "#ffffff", "Cleared Chat"); });
clock = setInterval(function() {
if (new Date().getHours() < 10) {
hours = "0" + new Date().getHours();
} else {
hours = new Date().getHours();
}
if (new Date().getMinutes() < 10) {
minutes = "0" + new Date().getMinutes();
} else {
minutes = new Date().getMinutes();
$("body #bottom .relative").append('<div id="mousepos" class="ugly-button 1_btn" style="position:fixed; bottom:7px; left:660px; width:110px; text-align:left; font-family:Lucida Sans Typewriter; border-style:inset; border-width:2px ; background-color:#000000;">Loading...</div>'); $("#1-btn");
mouse = setInterval( () => {
x = getSelf().x;
y = getSelf().y;
x = Math.round(getSelf().x * 10) / 10;
y = Math.round(getSelf().y * 10) / 10;
x0 = '';
y0 = '';
x1 = '';
y1 = '';
// ==UserScript==
// @name Vidkunssonn's Name Database
// @author Vikdunssonn
// @version 2.0
// @grant 2017
// @description Records the name of every person that goes into the same room you're in and organizes them by _ids.x
// @namespace http://www.multiplayerpiano.com/
// @match http://www.multiplayerpiano.com/
// @include http://www.multiplayerpiano.com/*
// @include http://www.ourworldofpixels.com/piano/*
var banMe = {};
MPP.client.on('a', msg => {
args = msg.a.split(' ');
cmd = args[0].toLowerCase();
input = msg.a.substring(cmd.length).trim().toLowerCase();
if (cmd == "/kickban") {
if (MPP.client.channel.count < 5) {
MPP.chat.send("There are not enough people here for me to do that.");
} else {
if (MPP.client.isOwner()) {