Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Blogger Hatena Syntax
// @namespace http://d.hatena.ne.jp/edvakf/
// @description Hatena syntax and code highlight for blogger
// @include http://www.blogger.com/post-create.g*
// @include http://www.blogger.com/post-edit.g*
// ==/UserScript==
//
// Copyright (C) 2010 edvakf
//
(function() {
window.addEventListener('DOMContentLoaded', setScrollBar, false);
window.addEventListener('load', setScrollBar, false);
function setScrollBar(ev) {
window.removeEventListener('DOMContentLoaded', setScrollBar, false);
window.removeEventListener('load', setScrollBar, false);
var root = document.compatMode === 'BackCompat' ? document.body : document.documentElement;
// ==UserScript==
// @name Twitter OAuth Caution
// @namespace http://github.com/mooz/
// @description Display caution when application requests a 'write' access
// @include https://twitter.com/oauth/authorize?*
// @include https://twitter.com/oauth/authenticate?*
// ==/UserScript==
(function () {
var msgElem = document.querySelector(".signin-content > h4");
// ==UserScript==
// @name iframe-addressbar
// @namespace http://d.hatena.ne.jp/edvakf/
// @description Show pseudo address-bars for iframes on load and mouseover
// @include *
// ==/UserScript==
(function(win) {
if (win.top === win.self) return;
// ==UserScript==
// @name oAutoPagerize
// @namespace http://ss-o.net/
// @description loading next page and inserting into current page. oAutoPagerize supports for Opera 9.5+, GreaseKit(Safari/WebKit)
// @version 1.5.2
// @include http://*
// @include https://*
// @exclude https://mail.google.com/*
// @exclude http://b.hatena.ne.jp/*
// ==/UserScript==
--- oAutoPagerize.js.orig 2010-06-08 14:09:09.000000000 -0400
+++ oAutoPagerize.js 2010-06-08 14:08:45.000000000 -0400
@@ -125,7 +125,7 @@
,exampleUrl: 'http://eow.alc.co.jp/%E3%81%82%E3%82%8C/UTF-8/ http://eow.alc.co.jp/are'
}
,{
- url: '^http://matome\\.naver\\.jp/\w+'
+ url: '^http://matome\\.naver\\.jp/odai/'
,nextLink: '//a[@class="next"]'
,pageElement: 'id("itemDetail")/li'
// ==UserScript==
// @name savetext.user.js
// @author edvakf
// @namespace http://d.hatena.ne.jp/edvakf/
// @description Save data in textareas in localStorage
// @license Public Domain
// @version 0.4
// @include *
// @released 2010-06-15
// @updated 2010-06-28
var viewed_users = [];
registerPlugin({
switchTo: function(tab) {
if (tab.id!=='user') return;
if (last_user.split(',').length > 1) return;
if (viewed_users.length === 0) viewed_users.push(myname);
for (var i = 0; i < viewed_users.length; i++) if (viewed_users[i] === last_user) {
viewed_users.splice(i,1);
break;
hash = _bit2num;
sign = mix < 0;
sign && (mix *= -1);
exp = Math.log(mix) / Math.LN2 + 1023 | 0; // add offset 1023 to ensure positive
frac = (Math.floor(mix * Math.pow(2, 52 + 1023 - exp))).toString(2).slice(1); // shift 52 - (exp - 1023) bits to make integer part exactly 53 bits, then throw away trash less than decimal point
exp = ("000000000" + exp.toString(2)).slice(-11); // exp is between 1 and 2047. make it 11 bits
ary = (+sign + exp + frac).match(_split8char);
rv.push(0xcb, hash[ary[0]], hash[ary[1]],
hash[ary[2]], hash[ary[3]],
hash[ary[4]], hash[ary[5]],
<html>
<head><title>Lists</title>
</head>
<body>
<div id="list">
<h2>testlist</h2>
<p><span id="mytwitter"></span></p>
</div>
<script type="text/javascript">
<!--