Skip to content

Instantly share code, notes, and snippets.

@kk6
Created July 22, 2011 06:19
Show Gist options
  • Save kk6/1098978 to your computer and use it in GitHub Desktop.
Save kk6/1098978 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name MyPixiv
// @namespace http://d.hatena.ne.jp/kk6/
// @description とりあえずお知らせを隠す機能だけ。
// @include http://www.pixiv.net/*
// ==/UserScript==
(function ($) {
var news = $('.NewsTop > h1, .adver_Rightcolumn + .area_right > .area_rightSpace');
news.next().hide();
news.click(function () {
$(this).next().toggle();
})
})(unsafeWindow.jQuery);
@kk6
Copy link
Author

kk6 commented Jul 22, 2011

アドバイスを頂いてすごく短くなった。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment