Created
November 3, 2009 07:23
-
-
Save nobodyplace/224864 to your computer and use it in GitHub Desktop.
Sleipnir Startを表示したとき自動的に人気トピックスを開く
This file contains 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 Sleipnir Start: News Mode Starter | |
// @namespace http://nplll.com/greasemonkeys | |
// @description Sleipnir Startを表示したとき自動的に人気トピックスを開く | |
// @version 1.0.0 | |
// @downloadURL https://gist.github.com/raw/224864/sleipnir_start_news_mode.user.js | |
// @updateURL https://gist.github.com/raw/224864/sleipnir_start_news_mode.user.js | |
// @include http://www.sleipnirstart.com/* | |
// @grant none | |
// @author Ippei "is" Suzuki | |
// @license MIT License; http://en.wikipedia.org/wiki/MIT_License | |
// ==/UserScript== | |
// Version History: | |
// 0.0.5 - 2009/11/13 catch-up: Hatena Bookmark x Sleipnir | |
// 1.0.0 - 2012/10/18 整形してバージョンを1.0.0に変更 | |
(function(doc) { | |
window.onload = function() { | |
var b = doc.getElementById('BX_nws_swc'); | |
var evt = doc.createEvent("MouseEvents"); | |
evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); | |
b.dispatchEvent(evt); | |
} | |
})(document); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment