shut up Star-Comments
by
noromanba
2017-05-24 [2017/05/24 07:37:06]
turn off HatenaStar-Comment container
/*
* @title Shut up Star-Comments
* @description turn off Hatena::Star-Comments
* @include http://*
* @include https://*.hatena.tld/*
* @license MIT License http://nrm.mit-license.org/2012
* @require
* @private stargazing
*/
(function () {
var addStyle = (function () {
var parent = document.head || document.body;
var style = document.createElement('style');
style.type = 'text/css';
parent.appendChild(style);
return function (css) {
style.appendChild(document.createTextNode(css + '\n'));
};
})();
// http://s.hatena.ne.jp/help#section5
addStyle('.hatena-star-comment-container { display: none; }');
})();
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。