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.

Revisions

  1. audaxion revised this gist Dec 17, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions hide_chat_badges
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    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"); });}());
  2. audaxion revised this gist Oct 24, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion plug_ranked_autowoot
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    javascript:(function(){ API.chatLog("Setting up autowoot for ranked members ONLY"); if (API.getDJ().permission >= API.ROLE.RESIDENTDJ) {$("#woot").click();} API.on(API.ADVANCE, function(obj) { if(obj == null) return; if (obj.dj.permission >= API.ROLE.RESIDENTDJ) {setTimeout(function() {$("#woot").click();}, 5000);} }); }());
    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);} }); }());
  3. audaxion revised this gist Aug 30, 2014. 5 changed files with 6 additions and 6 deletions.
    2 changes: 1 addition & 1 deletion modified_pluggedN
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    javascript: (function () {$.getScript('http://audaxion.github.io/pluggedN/dat.gui.js', function(){$.getScript('http://audaxion.github.io/pluggedN/bookmarklet.js');});}());
    javascript: (function () {$.getScript('https://audaxion.github.io/pluggedN/dat.gui.js', function(){$.getScript('https://audaxion.github.io/pluggedN/bookmarklet.js');});}());
    2 changes: 1 addition & 1 deletion plug_automeh
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    javascript:(function(){ API.chatLog("Setting up automeh"); $("#meh").click(); API.on(API.DJ_ADVANCE, function() { setTimeout(function() {$("#meh").click();}, 10000); }); }());
    javascript:(function(){ API.chatLog("Setting up automeh"); $("#meh").click(); API.on(API.ADVANCE, function() { setTimeout(function() {$("#meh").click();}, 10000); }); }());
    2 changes: 1 addition & 1 deletion plug_autowoot
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    javascript:(function(){ API.chatLog("Setting up autowoot"); $("#woot").click(); API.on(API.DJ_ADVANCE, function() { setTimeout(function() {$("#woot").click();}, 10000); }); }());
    javascript:(function(){ API.chatLog("Setting up autowoot"); $("#woot").click(); API.on(API.ADVANCE, function() { setTimeout(function() {$("#woot").click();}, 10000); }); }());
    2 changes: 1 addition & 1 deletion plug_ranked_autowoot
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    javascript:(function(){ API.chatLog("Setting up autowoot for ranked members ONLY"); if (API.getDJ().permission >= API.ROLE.RESIDENTDJ) {$("#woot").click();} API.on(API.DJ_ADVANCE, function(obj) { if(obj == null) return; if (obj.dj.permission >= API.ROLE.RESIDENTDJ) {setTimeout(function() {$("#woot").click();}, 5000);} }); }());
    javascript:(function(){ API.chatLog("Setting up autowoot for ranked members ONLY"); if (API.getDJ().permission >= API.ROLE.RESIDENTDJ) {$("#woot").click();} API.on(API.ADVANCE, function(obj) { if(obj == null) return; if (obj.dj.permission >= API.ROLE.RESIDENTDJ) {setTimeout(function() {$("#woot").click();}, 5000);} }); }());
    4 changes: 2 additions & 2 deletions pluggedN.user.js
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@
    // @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
    // ==/UserScript==

    $.getScript('http://audaxion.github.io/pluggedN/dat.gui.js',
    $.getScript('https://audaxion.github.io/pluggedN/dat.gui.js',
    function() {
    $.getScript('http://audaxion.github.io/pluggedN/bookmarklet.js');
    $.getScript('https://audaxion.github.io/pluggedN/bookmarklet.js');
    });
  4. audaxion revised this gist Aug 12, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions plug_automeh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    javascript:(function(){ API.chatLog("Setting up automeh"); $("#meh").click(); API.on(API.DJ_ADVANCE, function() { setTimeout(function() {$("#meh").click();}, 10000); }); }());
  5. audaxion revised this gist May 20, 2014. 1 changed file with 12 additions and 0 deletions.
    12 changes: 12 additions & 0 deletions pluggedN.user.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    // ==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('http://audaxion.github.io/pluggedN/dat.gui.js',
    function() {
    $.getScript('http://audaxion.github.io/pluggedN/bookmarklet.js');
    });
  6. audaxion revised this gist Dec 11, 2013. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions modified_pluggedN
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    javascript: (function () {$.getScript('http://audaxion.github.io/pluggedN/dat.gui.js', function(){$.getScript('http://audaxion.github.io/pluggedN/bookmarklet.js');});}());
  7. audaxion revised this gist Dec 10, 2013. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions plug_maximize_video_to_room
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    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!');}());
  8. audaxion created this gist Dec 10, 2013.
    1 change: 1 addition & 0 deletions plug_autowoot
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    javascript:(function(){ API.chatLog("Setting up autowoot"); $("#woot").click(); API.on(API.DJ_ADVANCE, function() { setTimeout(function() {$("#woot").click();}, 10000); }); }());
    1 change: 1 addition & 0 deletions plug_bayan_bg
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    javascript: (function () {document.body.style.backgroundImage = 'url(http://i.imgur.com/zuEvBkP.png)';}());
    1 change: 1 addition & 0 deletions plug_ranked_autowoot
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    javascript:(function(){ API.chatLog("Setting up autowoot for ranked members ONLY"); if (API.getDJ().permission >= API.ROLE.RESIDENTDJ) {$("#woot").click();} API.on(API.DJ_ADVANCE, function(obj) { if(obj == null) return; if (obj.dj.permission >= API.ROLE.RESIDENTDJ) {setTimeout(function() {$("#woot").click();}, 5000);} }); }());
    1 change: 1 addition & 0 deletions plug_toggle_video_chrome
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    javascript:(function(){$("#playback").toggle();}());
    1 change: 1 addition & 0 deletions plug_toggle_video_firefox
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    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');}}());