Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name spacnav-highlight.js
// @description Highlight the targets of spacial navigation
// @namespace http://d.hatena.ne.jp/edvakf/
// @include http://*
// ==/UserScript==
(function(){
var keyHash = {
16 : 'shift',
javascript: (function(_HaH) {
var originalTitle = document.title;
var hintKeys = new String('asdfghjkl');
var choices = [];
var choice = '';
var xpath = '//a[@href]|//input[not(@type=\x22hidden\x22)]|//textarea|//select|//img[@onclick]|//button';
xpath += '|' + xpath.replace(/\/\//g, '//xhtml:');
var defaultType = 'HaHxlink';
function defaultAction(e) {
e.focus();
javascript: (function(doc) {
function addListeners(){
var add = window.addEventListener;
add('mouseover',overHandler,false);
add('mouseout',outHandler,false);
add('click',clickHandler,false);
add('keypress',keyHandler,false);
}
function removeListeners(){
var rm = window.removeEventListener;
// ==UserScript==
// @name fastladder_fixed_item_height.user.js
// @namespace http://d.hatena.ne.jp/edvakf/
// @description Limit the height of items on LDR/Fastladder
// @include http://reader.livedoor.com/reader/
// @include http://reader.livedoor.com/public/*
// @include http://fastladder.com/reader/
// ==/UserScript==
// The "IE OK?" lines **might** work for IE as well
// ==UserScript==
// @name fastladder_show_fc2_images.user.js
// @namespace http://d.hatena.ne.jp/edvakf/
// @description Make fc2 images viewable on LDR/Fastladder
// @include http://reader.livedoor.com/reader/
// @include http://reader.livedoor.com/public/*
// @include http://fastladder.com/reader/
// ==/UserScript==
(function(w,d){
//for Firefox
//javascript:
(function(){
var ta=document.createElement('textarea');
ta.rows=1;
ta.id='fuga';
ta.style.height='auto';
ta.style.minHeight='none';
document.body.appendChild(ta);
var st=getComputedStyle(ta,'');
javascript:(function TextURLLinker() {
var TAG = 'a';
var STYLE = 'color:#13819f;display:inline !important;';
if (document.contentType && !/html/i.test(document.contentType))
return;
var fn = function(doc) {
$XA('descendant::text()[contains(self::text(),"ttp") and not(ancestor::a) and not(ancestor::textarea) and not(ancestor::script) and not(ancestor::style)]', doc)(function(txt) {
var df, text = txt.nodeValue.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;'),
parent = txt.parentNode, range = document.createRange(),
newText = text.replace(/h?(ttps?:\/\/[^\s\])'")」】]+)/g, function($0, $1) {
// ==UserScript==
// @name cleanAutoPager
// @namespace http://d.hatena.ne.jp/
// @description
// @include http://*
// @include https://*
// @exclude https://mail.google.com/*
// ==/UserScript==
(function(){
// ==UserScript==
// @name mata opera de google
// @include http://*.wikipedia.org/wiki/*
// @include http://twitter.com/public_timeline?from=userjs
// ==/UserScript==
(function() {
if (location.href.indexOf('wikipedia.org')>0) {
var wikipe = function() {
var object = document.createElement('object');
// ==UserScript==
// @name mata wikipedia yonderu
// @include http://*.wikipedia.org/wiki/*
// @include http://twitter.com/public_timeline?from=userjs
// ==/UserScript==
(function() {
if (location.href.indexOf('wikipedia.org')>0) {
var wikipe = function() {
var object = document.createElement('object');