-
-
Save tsuyoshicho/9d4ffd22b6109fc32fbd2b2a565b25b3 to your computer and use it in GitHub Desktop.
はてなのシロクマを屑籠に放り込むユーザースクリプト ref: http://qiita.com/khsk/items/0cb47046d1721099c729
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
| B.RegistReminder = { | |
| count: function () { | |
| if (B.user) { | |
| B.cookie.clear('vcount'); | |
| } else { | |
| var vcount = B.cookie.get('vcount'); | |
| vcount = vcount ? ++vcount : 1; | |
| B.cookie.set('vcount', vcount , '+10y'); | |
| if (vcount % 40 == 0) { |
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
| var Hatena = Hatena || {}; | |
| (function (Ten, Hatena) { | |
| var B = Hatena.Bookmark = Hatena.Bookmark || {}; | |
| try { // 念のため例外補足 | |
| var h = document.getElementsByTagName("html")[0] | |
| // for v3 | |
| B.isV3EntryPage = (h.getAttribute("data-is-v3-entry-page") === "true"); | |
| } catch (err) {} | |
| B.isLocal = !/(?:^|\.)(?:b|bkuma)\.hatena\.ne\.jp$/.test(location.hostname); | |
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 rm bear | |
| // @description はてなブックマークの登録誘導を消す | |
| // @namespace khsk | |
| // @include https://b.hatena.ne.jp/* | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| // ログイン済みユーザー?のフリをするなら | |
| Hatena.Bookmark.user = true; | |
| // visit回数の記録改変を気にしないなら | |
| Hatena.Bookmark.cookie.set('vcount', 1); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment