Last active
April 18, 2019 03:40
-
-
Save khsk/2126887fa6f6dc299a2f936a4dbbf882 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 http://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