Created
May 24, 2014 11:32
-
-
Save ssig33/bf233858927890c8bb47 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 Daniel Radcliffe NL to Follow | |
// @namespace http://use.i.E.your.homepage/ | |
// @version 0.1 | |
// @description enter something useful | |
// @match https://twitter.com/* | |
// @copyright 2012+, You | |
// @require http://code.jquery.com/jquery-1.11.1.min.js | |
// ==/UserScript== | |
follow = function() { | |
return setTimeout(function() { | |
var $node; | |
$node = $('.js-recommended-followers'); | |
if ($node.find('b.fullname').first().text() !== 'Daniel Radcliffe NL') { | |
$node.find('img.js-action-profile-avatar').attr({ | |
src: 'https://pbs.twimg.com/profile_images/434031578046427136/tFBjgs-Z.jpeg' | |
}); | |
$node.find('b.fullname').text('Daniel Radcliffe NL'); | |
$node.find('button.small-follow-btn').remove(); | |
$node.find('.js-username').text('DanJRadcliffeNL'); | |
$node.find('a').attr({ | |
href: 'https://twitter.com/DanJRadcliffeNL' | |
}); | |
} | |
return follow(); | |
}, 20); | |
}; | |
jQuery(function(){ | |
follow(); | |
}); |
who to follow が全部ダニエル・ラドクリフになります。
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 というのでインストールできます。
他の環境でも動くかもしれませんし、動かないかもしれません。