Created
June 18, 2014 06:23
-
-
Save ssig33/eb457ef743104acf18b1 to your computer and use it in GitHub Desktop.
ダニエル・ラドクリフ・オン・タンブラー.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Recommended Daniels | |
// @namespace http://use.i.E.your.homepage/ | |
// @version 0.1 | |
// @description enter something useful | |
// @match http://www.tumblr.com/* | |
// @copyright 2012+, You | |
// @require http://code.jquery.com/jquery-1.11.1.min.js | |
// ==/UserScript== | |
var recommended_daniels; | |
recommended_daniels = function() { | |
if ($('.recommended_tumblelogs .no_push').get(0)) { | |
$('.recommended_tumblelogs .no_push').text("RECOMMENDED DANIELS"); | |
$('.recommended_tumblelogs img').attr({ | |
src: 'http://s.ssig33.com/gyazo/afa5d6e1520749889eb3e810821d8ac0' | |
}); | |
$('.recommended_tumblelogs a').attr({ | |
href: 'http://www.tumblr.com/tagged/daniel-radcliffe' | |
}); | |
$('.recommended_tumblelogs .avatar').attr('style', "background-image:url('http://s.ssig33.com/gyazo/afa5d6e1520749889eb3e810821d8ac0')"); | |
$('.recommended_tumblelogs .tumblelog_title').text("Radcliffe"); | |
$('.recommended_tumblelogs .tumblelog_name').remove(); | |
return $('.recommended_tumblelogs .follow').remove(); | |
} else { | |
return setTimeout(function() { | |
return recommended_daniels(); | |
}, 200); | |
} | |
}; | |
$(function() { | |
$('.thumbnail_anchor').attr('style', "background-image:url('http://s.ssig33.com/gyazo/6a2a032ba61646efa1d257b3956b5cae')"); | |
$('.radar_footer .name').text('Daniel Radcliffe'); | |
$('.radar_footer a').attr({ | |
href: 'http://www.tumblr.com/tagged/daniel-radcliffe' | |
}); | |
$('.radar_footer .subheading').remove(); | |
$('.radar_footer .follow').remove(); | |
$('.radar_tumblelog_avatar img').attr({ | |
src: 'http://s.ssig33.com/gyazo/afa5d6e1520749889eb3e810821d8ac0' | |
}); | |
return recommended_daniels(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Google Chrome + Tampermonkey で検証してます。
https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=ja を Google Chrome にインストールして使ってください。右上の Raw というのでインストールできます。
他の環境でも動くかもしれませんし、動かないかもしれません。
Tumblr の recommend が大体全部ダニエル・ラドクリフになる user.js です。以下のようになります。