Created
April 9, 2011 10:00
-
-
Save sonota88/911285 to your computer and use it in GitHub Desktop.
hatebu-more.user.js
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 hatebu-more | |
// @namespace anbt | |
// @include http://b.hatena.ne.jp/entry/* | |
// @exclude http://b.hatena.ne.jp/entry?mode=more&url=* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.js | |
// ==/UserScript== | |
var moreURL = "http://b.hatena.ne.jp" + $("#more-link > a").attr("href"); | |
var iframe = $("<iframe></iframe>"); | |
iframe.attr("src", moreURL); | |
iframe.css({ "width": "98%" | |
, "height": "600px" | |
// , border: "solid 4px red" | |
}); | |
var moreLink = $("<a href='" + moreURL + "'>" + moreURL + "</a>"); | |
$("body").prepend(iframe); | |
$("body").prepend(moreLink); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi, i try to recreate it.