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 / amazon-smile-switch-banner.user.js
Last active July 18, 2021 16:30
A user script that displays a banner to suggest switching to Amazon Smile when you're browsing Amazon's main website
// ==UserScript==
// @name Amazon Smile switch banner
// @namespace benzi.io
// @version 0.3
// @description Displays a banner to suggest switching to Amazon Smile when you're browsing Amazon's main website
// @author Benzi <benzi@benzi.io>
// @match *://amazon.co.uk/*
// @match *://www.amazon.co.uk/*
// @icon https://i.imgur.com/RrKpd9P.png
// @grant GM_addStyle

Keybase proof

I hereby claim:

  • I am benzi on github.
  • I am benzi (https://keybase.io/benzi) on keybase.
  • I have a public key ASB91pSJY5vUQVsDKyAjUPKh9jEdgee6LY9thOLxMKdycwo

To claim this, I am signing this object:

@Benzi
Benzi / upgradeNodeJS.sh
Last active September 17, 2015 14:18
Use this to upgrade node.js (version 4.1.0) - ubuntu
sudo npm cache clean -f && sudo npm install -g n && sudo n 4.1.0 && node -v
@Benzi
Benzi / removeDonateBanner.js
Created September 14, 2015 22:40
This is used to remove the donate banner on plug.dj (Paste this in the console)
document.getElementById('donate-box').remove();
document.querySelector('.show-donate').style.top = '47px';
document.querySelector('#chat-messages').style.height = '432px';
@Benzi
Benzi / getSoundcloudLink.js
Created September 4, 2015 15:35
You can use this to get the Soundcloud permalink from a track ID.
@Benzi
Benzi / customBadge.js
Created August 24, 2015 19:56
You can use this to inject CSS on a page. The example shows how to use a custom badge on plug.dj
// Edit the url to point to your custom badge
// Edit the data-cid to include your user ID
var css = '[data-cid^="3851534-"] .badge-box .bdg {background: url("https://ssl.benzi.io/code/qluster/images/badges/eyes.png")!important;}',
head = document.head || document.getElementsByTagName('head')[0],
style = document.createElement('style');
style.type = 'text/css';
if (style.styleSheet){
@Benzi
Benzi / face.svg
Created July 19, 2015 22:48
SVG code for face.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Benzi
Benzi / naSkip.js
Last active August 29, 2015 14:23
Automatically skip songs that are not available.
/*
Copyright (c) 2015 by Benzi (Benzi Mooneegan)
Please do not copy or modify without permission from the owner.
Description: This script is used to automatically skip songs that are not available.
*/
function naSkip() {
var format = API.getMedia().format;
var cid = API.getMedia().cid;
@Benzi
Benzi / getSongLink.js
Created May 31, 2015 17:30
Returns link to current song playing in plug.dj community
@Benzi
Benzi / togglePlayback.js
Last active August 29, 2015 14:22
Toggles video playback on plug.dj
(function() {
if ($("#playback").is(":visible")){
$('#playback').hide();
}
else {
$('#playback').show();
}
// Credit: Benzi (Benzi Mooneegan)