Skip to content

Instantly share code, notes, and snippets.

@monjudoh
Created May 25, 2010 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monjudoh/413286 to your computer and use it in GitHub Desktop.
Save monjudoh/413286 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name pixiv remove user
// @namespace http://d.hatena.ne.jp/monjudoh/
// @include http://www.pixiv.net/member.php?id=*
// @require http://dl.dropbox.com/u/612874/jquery-1.4.2_patch_applied_for_GM.js
// ==/UserScript==
(function(){
$('<div/>',{
html : $('<a/>',{
text : 'お気に入りから削除',
click : function(ev){
ev.preventDefault();
if(!confirm('削除しますか?'))return;
$.get('http://www.pixiv.net/bookmark.php?type=user',function(html){
var tt =$(html).find('#f [name=tt]').val();
var id = location.search.match(/\d+/g)[0];
$.ajax({
type : 'POST',
url : 'bookmark_setting.php',
data :{
del : 'hoge',
id : [id],
tt : tt,
type : 'user'
}
});
});
}
})
}).appendTo('.profile_edit');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment