スポンサード リンク
shuffle links(http://blog.fkoji.com/shufflelinks.user.js)
ページ内のリンクをシャッフルするお遊びGreasemonkeyスクリプト。
思い通りのリンク先に飛べずにイライラしたい人にオススメです。
// ==UserScript==
// @name shuffle links
// @namespace http://blog.fkoji.com/
// @description we wanna shuffle
// @include http://*
// ==/UserScript==
(function() { var a = document.getElementsByTagName("a"); for (i = 0; i < a.length; i++) { var j = Math.floor(Math.random() * a.length); var k = Math.floor(Math.random() * a.length); var tmp = a[j].href; a[j].href = a[k].href; a[k].href = tmp; } })();
// @name shuffle links
// @namespace http://blog.fkoji.com/
// @description we wanna shuffle
// @include http://*
// ==/UserScript==
(function() { var a = document.getElementsByTagName("a"); for (i = 0; i < a.length; i++) { var j = Math.floor(Math.random() * a.length); var k = Math.floor(Math.random() * a.length); var tmp = a[j].href; a[j].href = a[k].href; a[k].href = tmp; } })();
スポンサード リンク
Written by F.Ko-Ji
トラックバック
このエントリーのトラックバックURL:
前のエントリー: « マイミクシィ最新日記チェック用のGreasemonkeyスクリプト
次のエントリー: 今年の秋は『ただ、君を愛してる』で泣きましょう »
コピペにご利用ください。
タイトル:URL:
リンク用HTMLタグ:











