Bitbucketのデフォルトのリポジトリアバターをイカ娘にするゲソ
python界の重鎮 @shimizukwa さんが言ってたのでやってみた。
// ==UserScript== // @name bitbucket ika-musume // @namespace http://use.i.E.your.homepage/ // @version 0.1 // @description enter something useful // @match https://bitbucket.org/* // @require http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js // @copyright 2012+, You // ==/UserScript== var $ = unsafeWindow.jQuery; $(function() { $("img[class='repo-avatar size16']").each(function() { if ($(this).attr("src").match(/.*default_16.png/)) { $(this).attr({ src: "https://twimg0-a.akamaihd.net/profile_images/1093514809/t_icon_reasonably_small.gif", width: "16px", height: "16px", }); } }); $("span[class='repo-avatar-container size32'] > img").each(function() { if ($(this).attr("src").match(/.*default_32.png/)) { $(this).attr({ src: "https://twimg0-a.akamaihd.net/profile_images/1093514809/t_icon_reasonably_small.gif", width: "32px", height: "32px", }); } }); $("span[class='repo-avatar-container size64'] > img").each(function() { if ($(this).attr("src").match(/.*default_64.png/)) { $(this).attr({ src: "https://twimg0-a.akamaihd.net/profile_images/1093514809/t_icon_reasonably_small.gif", width: "64px", height: "64px", }); } }); });
やってることはimgタグのsrcを差し替えてるだけでゲソ。
追記
インストールしやすくしてみたでゲソ - https://bitbucket.org/troter/home/raw/default/scripts/userscripts/bitbucket-ika-musume.user.js