Skip to content

Instantly share code, notes, and snippets.

(function() {
var re = /^https?:\/\/twitter\.com\/(\w+)\/status(?:es)?\/(\d+)/;
function tweetUrlReply(elem) {
var links = elem.getElementsByTagName('a');
for (var i = 0, l = links.length; i < l; i++) {
if (/\bstatus\b/.test(links[i].parentNode.className)) {
if (re.test(links[i].href)) insertInReplyTo(links[i]);
}
}
// ==UserScript==
// @name pixiv_darami.js
// @author edvakf
// @namespace http://d.hatena.ne.jp/edvakf/
// @include http://www.pixiv.net/new_illust.php?darami
// ==/UserScript==
// pixiv の新着イラストをダラダラ見るためのスクリプトです。
// 使い方:
// このスクリプトをインストールして、http://www.pixiv.net/new_illust.php?darami を開きます。
javascript:(function(){
var hintkeys = 'asdfghjkl';
function createText(num) {
var text = '', l = hintkeys.length, iter = 0;
while (num >= 0) {
var n = num;
num -= Math.pow(l, 1 + iter++);
}
for (var i = 0; i < iter; i++) {
r = n % l;
/* twicli plugin (http://twicli.neocat.jp/)
* multi-users.js
* 一度タイムラインを表示したことのあるユーザーのタイムラインを簡単に再表示することができます。
* 複数のユーザーのタイムラインを表示することも可能です。
* http://twitter.com/edvakf/status/20406609758
* http://twitter.com/edvakf/status/20406753129
*/
var viewed_users = [];
// ==UserScript==
// @name searchalltabs.js
// @author edvakf (and thank you amachang for escapeXPathExpr)
// @namespace http://d.hatena.ne.jp/edvakf/
// @description An experimental UserJS to search for word from all tabs and move to the tab
// @license The MIT License
// @version 0.3
// @include *
// @released 2010-06-08
// @updated 2010-06-08
// ==UserScript==
// @name AutoPagerizeSITEINFOLoader.js
// @author edvakf
// @namespace http://d.hatena.ne.jp/edvakf/
// @description Help loading AutoPagerize SITEINFO
// @license The MIT License
// @version 0.2
// @include *
// @released 2010-06-06
// @updated 2010-06-06
<html>
<head><title>Lists</title>
</head>
<body>
<div id="list">
<h2>testlist</h2>
<p><span id="mytwitter"></span></p>
</div>
<script type="text/javascript">
<!--
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]],
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;
// ==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