Skip to content

Instantly share code, notes, and snippets.

@audaxion
Last active December 30, 2015 20:59
Show Gist options
  • Save audaxion/7884229 to your computer and use it in GitHub Desktop.
Save audaxion/7884229 to your computer and use it in GitHub Desktop.
Plug.dj bookmarklets
javascript: (function () {$("#chat .badge-box").hide(); $("#chat .msg").css("padding-left", "5px"); API.on(API.CHAT, function () {$("#chat .badge-box").hide(); $("#chat .msg").css("padding-left", "5px"); });}());
javascript: (function () {$.getScript('https://audaxion.github.io/pluggedN/dat.gui.js', function(){$.getScript('https://audaxion.github.io/pluggedN/bookmarklet.js');});}());
javascript:(function(){ API.chatLog("Setting up automeh"); $("#meh").click(); API.on(API.ADVANCE, function() { setTimeout(function() {$("#meh").click();}, 10000); }); }());
javascript:(function(){ API.chatLog("Setting up autowoot"); $("#woot").click(); API.on(API.ADVANCE, function() { setTimeout(function() {$("#woot").click();}, 10000); }); }());
javascript: (function () {document.body.style.backgroundImage = 'url(http://i.imgur.com/zuEvBkP.png)';}());
javascript:(function(){$("#playback-container").css({left: 0, top: ($("#header").height() - 12) + 'px', position: 'fixed', width: $("#room").width() + 'px', height: ($("#room").height() + 12) + 'px'}); $("#audience").hide(); $("#dj-booth").hide(); API.chatLog('Maximizing video. Reload page to reset!');}());
javascript:(function(){ API.chatLog("Setting up autowoot for ranked members ONLY"); if (API.getDJ().role >= API.ROLE.DJ) {$("#woot").click();} API.on(API.ADVANCE, function(obj) { if(obj == null) return; if (obj.dj.role >= API.ROLE.DJ) {setTimeout(function() {$("#woot").click();}, 5000);} }); }());
javascript:(function(){$("#playback").toggle();}());
javascript:(function(){if($("#playback").css('visibility')%20==%20'hidden'){API.chatLog('Showing%20video');$("#playback").css('visibility','visible');}else{API.chatLog('Hiding%20video');$("#playback").css('visibility','hidden');}}());
// ==UserScript==
// @name PluggedN
// @description PluggedN chrome extension converted for use as a userscript (greasemonkey, etc.)
// @include http://plug.dj/*
// @exclude http://plug.dj/_/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// ==/UserScript==
$.getScript('https://audaxion.github.io/pluggedN/dat.gui.js',
function() {
$.getScript('https://audaxion.github.io/pluggedN/bookmarklet.js');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment