Skip to content

Instantly share code, notes, and snippets.

@cherenkov
Created March 21, 2009 01:28
Show Gist options
  • Save cherenkov/82688 to your computer and use it in GitHub Desktop.
Save cherenkov/82688 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name blip.fm script
// @namespace http://d.hatena.ne.jp/Cherenkov/
// @include http://blip.fm/*
// ==/UserScript==
GM_addStyle("#blipPlayer{position:fixed; bottom:0px;}");
if(/^http:\/\/blip\.fm\/profile\/.*\/favoritePeople/.test(location.href)) {
var x = document.evaluate('//button[@class="x"]', document, null, 7, null);
for(var i=0;i<x.snapshotLength;i++){
var func = x.snapshotItem(i).getAttribute("onclick");
x.snapshotItem(i).setAttribute("onclick","confirmAction('Are you sure you want to remove this DJ from your Favorites?', function() {" + func + "})");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment