Skip to content

Instantly share code, notes, and snippets.

@quanon
Last active August 29, 2015 14:23
Show Gist options
  • Save quanon/a0a7f19db022d8471c86 to your computer and use it in GitHub Desktop.
Save quanon/a0a7f19db022d8471c86 to your computer and use it in GitHub Desktop.
「フォローされています」をハイライトして両思いを見つけやすくするためのスクリプト
// ==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