Skip to content

Instantly share code, notes, and snippets.

edvakf

Block or report user

Report or block edvakf

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View spacnav-highlight.js
// ==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',
View hitahint-bookmarklet.js
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();
View purify.js
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;
View fastladder_fixed_item_height.user.js
// ==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
View fastladder_show_fc2_images.user.js
// ==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){
View autoGrow.js
//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,'');
View ore_ore_text_url_linker.js
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) {
View cleanAutoPagerize.js
// ==UserScript==
// @name cleanAutoPager
// @namespace http://d.hatena.ne.jp/
// @description
// @include http://*
// @include https://*
// @exclude https://mail.google.com/*
// ==/UserScript==
(function(){
View gist:54424
// ==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');
View matawikipe.js
// ==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');
You can’t perform that action at this time.