Skip to content

Instantly share code, notes, and snippets.

@nobodyplace
Created November 3, 2009 07:23
Show Gist options
  • Save nobodyplace/224864 to your computer and use it in GitHub Desktop.
Save nobodyplace/224864 to your computer and use it in GitHub Desktop.
Sleipnir Startを表示したとき自動的に人気トピックスを開く
// ==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