Skip to content

Instantly share code, notes, and snippets.

@hasbromlp
hasbromlp / edit.js
Last active August 29, 2015 14:15
testt
/*
The MIT License (MIT)
Copyright (c) 2013-2014 Zimny Lech
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies off
the Software, and to permit persons to whom the Software is furnished to do so,
@hasbromlp
hasbromlp / testtest.js
Last active August 29, 2015 14:15
test.js
/*
// CyTube Channel: MLP Anniversary Internal Script
//
// Written and maintained by Xaekai
*/
// -- Channel Namespace --
if (!this[CHANNEL.name])
this[CHANNEL.name] = {};
// -- Channel Branding --
@hasbromlp
hasbromlp / gist:9562973
Created March 15, 2014 07:19
testing popup
<html><head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
<title>Perdcoin Purse</title>
<link href="Perdcoin%20Purse_files/css.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="Perdcoin%20Purse_files/perdcoin.css">
</head>
<body>
<div id="welcome"><h1>Welcome, User</h1>
<h2>:</h2>
<div id="wallet"></div></div>
$(document).keydown(function(event) {
if(!event.ctrlKey || event.shiftKey)
return true;
var tag;
switch(event.which) {
case 83: tag = 'spoiler'; break;
case 80: tag = '.pic'; break;
default:
return true;
}
$(document).keydown(function(event) {
if(!event.ctrlKey || event.shiftKey)
return true;
var tag;
switch(event.which) {
case 83: tag = 'spoiler'; break;
case 80: tag = '.pic'; break;
default:
return true;
}
$(".navbar-brand").html("<img src='http://i.imgur.com/Sr1n7Fa.png' width='125'>");
$("#chatonly").css("display","none");
$("#help").css("display","none");
addChatMessage({username: "[Server]", msg:"YOU NEED TO SIGN BACKUP I UPDATED THE WHOLE SITE AND LOST THE DATABASE SORRY ABOUT THAT Remember, Love And Tolerance! Thanks to banditen for the donation.", time: Date.now()})
@hasbromlp
hasbromlp / nonyoutube
Last active January 1, 2016 14:18
hasbromlp !
$(".brand").html("<img src='http://i.imgur.com/Sr1n7Fa.png' width='125'>");
$("#chatonly").css("display","none");
$("#help").css("display","none");
addChatMessage({username: "[Server]", msg:"Please consider donating to help keep the site alive, thank you!| <a href='http://pitchinbox.com/redirect/5483896851' target='_blank'>http://pitchinbox.com/redirect/5483896851</a> Remember, Love And Tolerance! .............. YOU NEED TO RE REGISTER SITE MUCKED UP AND HAD TO RE DO THE WHOLE WEBSITE THANKS FOR UNDERSTANDING.", time: Date.now()})
********************************************************
Usage Sample:
<script language="JavaScript">
TargetDate = "12/31/2020 5:00 AM";
BackColor = "palegreen";
ForeColor = "navy";
CountActive = true;
CountStepper = -1;
LeadingZero = true;
html, body { /* background //= not actvate */
background-color:#f1f1f1; /* T?m? sen takia ett? ei ole ihan valakonen kun taustakuva loppuu, f1f1f1 on mclareninhopea */
background-image:url("http://image.noelshack.com/fichiers/2012/22/1338552266-1-rainbow-dash-my-little-pony-friendship-is-magic.jpg");
//background-image:url("http://i.imgur.com/1QzY44j.jpg"); /* ALL HAIL CELESTIA */
//background-image:url("http://i.imgur.com/c2DSydz.jpg"); /* AJ 2 */
//background-image:url("http://i.imgur.com/6KMsWC0.jpg"); /* Applejerk */
//background-image:url("http://images5.fanpop.com/image/photos/24500000/Rainbow-Dash-Wallpapers-my-little-pony-friendship-is-magic-24559390-1600-1200.jpg"); /* April Fools AJ */
background-repeat:repeat-x;
background-attachment:scroll;
background-position: 10% 32%;
@hasbromlp
hasbromlp / gist:5676531
Created May 30, 2013 08:38
chat emots cytube
:angel::<img src= width=80 height=80>
<BR>
:applebloom: <img src=http://i.imgur.com/t0IuE.png width=62 height=80>
<BR>
:applefritter:<img src=http://i.imgur.com/71ZTs.png width=76 height=80>
<BR>
:applejack:<img src=http://i.imgur.com/DPlMs.png width=71 height=80>
<BR>
:berrypunch:<img src=http://i.imgur.com/CVy1q.png width=96 height=60>
<BR>