Last active
August 29, 2015 14:23
-
-
Save quanon/a0a7f19db022d8471c86 to your computer and use it in GitHub Desktop.
「フォローされています」をハイライトして両思いを見つけやすくするためのスクリプト
This file contains 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 Highlight followers | |
// @namespace quanon | |
// @version 0.1 | |
// @author QUANON | |
// @match https://twitter.com/following | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js | |
// @grant none | |
// ==/UserScript== | |
(function ($) { | |
'use strict'; | |
var $timeline = $('.GridTimeline'), | |
highlight, | |
observer, | |
config; | |
highlight = function () { | |
$('.ProfileCard .FollowStatus').css({ | |
'background-color': '#FFFA40', | |
'padding': '2px' | |
}); | |
}; | |
observer = new MutationObserver(highlight); | |
config = { | |
attributes: true, | |
childList: true, | |
characterData: true | |
}; | |
observer.observe($timeline.get(0), config); | |
highlight(); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment