Skip to content

Instantly share code, notes, and snippets.

View Benzi's full-sized avatar
typeof benzi === 'object'

Benzi

typeof benzi === 'object'
View GitHub Profile
@Benzi
Benzi / getPlugged.js
Created May 26, 2015 11:17
Script for getting plug.dj babes.
API.sendChat("I know Benzi.");
@Benzi
Benzi / BanScript.js
Last active August 29, 2015 14:21
Bans all current and incoming peasants in a plug.dj community
(function() {
var banning = false;
function killAPI() {
API.off(API.CHAT_COMMAND);
}
API.on(API.CHAT_COMMAND, function(command) {
if (command === "/banall") {
if (banning) {
@Benzi
Benzi / autowoot.js
Created April 11, 2015 07:33
Very basic autowoot for plug.dj
(function() {
API.chatLog("Autowoot turned ON");
API.chatLog("Credit: http://benzi.io");
$("#woot").click();
API.on(API.ADVANCE,function(){
setTimeout(function(){
$("#woot").click();
},1000);
});
@Benzi
Benzi / notifs.js
Last active August 29, 2015 14:18
Get chat notifications from plug.dj
(function() {
var notify = false;
if ("Notification" in window) {
if (Notification.permission === "granted") {
notify = true;
} else if (Notification.permission === "default") {
Notification.requestPermission(function(permission) {
if (!("permission" in Notification && permission === "granted")) {
Notification.permission = permission;
@Benzi
Benzi / test.js
Created March 31, 2015 09:04
test
console.log("test")