Skip to content

Instantly share code, notes, and snippets.

View cho45's full-sized avatar

Satoh, Hiroh cho45

View GitHub Profile
@cho45
cho45 / yukkuri.txt
Created July 24, 2008 05:23 — forked from motemen/yukkuri.txt
ゆっくりしていってね!!!
   _,,....,,_  _人人人人人人人人人人人人人人人_
-''":::::::::::::`''>  ゆっくりした結果がこれだよ!!! <
ヽ::::::::::::::::::::: ̄^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^ ̄
 |::::::;ノ´ ̄\:::::::::::\_,. -‐ァ     __   _____   ______
 |::::ノ   ヽ、ヽr-r'"´  (.__    ,´ _,, '-´ ̄ ̄`-ゝ 、_ イ、
_,.!イ_  _,.ヘーァ'二ハ二ヽ、へ,_7   'r ´          ヽ、ン、
::::::rー''7コ-‐'"´    ;  ', `ヽ/`7 ,'==─-      -─==', i
r-'ァ'"´/  /! ハ  ハ  !  iヾ_ノ i イ iゝ、イ人レ/_ルヽイ i |
!イ´ ,' | /__,.!/ V 、!__ハ  ,' ,ゝ レリイi (ヒ_]     ヒ_ン ).| .|、i .||
`!  !/レi' (ヒ_]     ヒ_ン レ'i ノ   !Y!""  ,___,   "" 「 !ノ i |
              __   _____   ______    ,'´ ̄ ̄ ̄ ̄ ̄ヽ.
             ,´ _,, '-´ ̄ ̄`-ゝ 、_ イ、   | そ .お ご お |
             'r ´          ヽ、ン、 | れ .風 飯 帰.|
            ,'==─-      -─==', i  | と 呂 に な |
_|\∧∧/|_   i イ iゝ、イ人レ/_ルヽイ i | | も に す  さ |
\       /   レリイi (ヒ_]     ヒ_ン ).| .|、i .|| | ・  す る  い.|
<    じ   >    !Y!""  ,___,   "" 「 !ノ i | | ・  る ? .ア |
/       \   L.',.   ヽ _ン    L」 ノ| .| | ・  ?    ナ |
 ̄|/∨∨\| ̄    | ||ヽ、       ,イ| ||イ| /  |        タ |
             レ ル` ー--─ ´ルレ レ´  ヽ、_____ノ
   _,,....,,_  _人人人人人人人人人人人人人人人_
-''":::::::::::::`''>   はやく帰ってね!!!      <
ヽ::::::::::::::::::::: ̄^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^ ̄
 |::::::;ノ´ ̄\:::::::::::\_,. -‐ァ     __   _____   ______
 |::::ノ   ヽ、ヽr-r'"´  (.__    ,´ _,, '-´ ̄ ̄`-ゝ 、_ イ、
_,.!イ_  _,.ヘーァ'二ハ二ヽ、へ,_7   'r ´          ヽ、ン、
::::::rー''7コ-‐'"´    ;  ', `ヽ/`7 ,'==─-      -─==', i
r-'ァ'"´/  /! ハ  ハ  !  iヾ_ノ i イ iゝ、イ人レ/_ルヽイ i |
!イ´ ,' | /__,.!/ V 、!__ハ  ,' ,ゝ レリイi (ヒ_]     ヒ_ン ).| .|、i .||
`!  !/レi' (ヒ_]     ヒ_ン レ'i ノ   !Y!""  ,___,   "" 「 !ノ i |
    _,,....,,_  _人人人人人人人人人人人人人人人_
 -''":::::::::::::`''>   ゆっくりしていってね!!!   <
 ヽ::::::::::::::::::::: ̄^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^ ̄
  |::::::;ノ´ ̄\:::::::::::\_,. -‐ァ     __   _____   ______
  |::::ノ   ヽ、ヽr-r'"´  (.__    ,´ _,, '-´ ̄ ̄`-ゝ 、_ イ、
 _,.!イ_  _,.ヘーァ'二ハ二ヽ、へ,_7   'r ´          ヽ、ン、
 ::::::rー''7コ-‐'"´    ;  ', `ヽ/`7 ,'==─-      -─==', i
 r-'ァ'"´/  /! ハ  ハ  !  iヾ_ノ i イ iゝ、イ人レ/_ルヽイ i |
 !イ´ ,' | /__,.!/ V 、!__ハ  ,' ,ゝ レリイi (ヒ_]     ヒ_ン ).| .|、i .||
 `!  !/レi' (ヒ_]     ヒ_ン レ'i ノ   !Y!""  ,___,   "" 「 !ノ i |
// ==UserScript==
// @name Last.fm unlocalize
// @namespace http://lowreal.net/
// @include http://www.lastfm.jp/*
// ==/UserScript==
location.href = "http://www.last.fm/" + location.pathname + "?setlang=en";
// extend version of $X
// $X(exp);
// $X(exp, context);
// $X(exp, type);
// $X(exp, context, type);
function $X (exp, context, type /* want type */) {
if (typeof context == "function") {
type = context;
context = null;
}
function createElementFromString (str, opts) {
if (!opts) opts = { data: {} };
if (!opts.data) opts.data = { };
var t, cur = opts.parent || document.createDocumentFragment(), root, stack = [cur];
while (str.length) {
if (str.indexOf("<") == 0) {
if ((t = str.match(/^\s*<(\/?[^\s>\/]+)([^>]+?)?(\/)?>/))) {
var tag = t[1], attrs = t[2], isempty = !!t[3];
if (tag.indexOf("/") == -1) {
function log (m) {
var o = Array.prototype.concat.apply([], arguments);
location.href = "javascript:(function () { if (window.console) console.log.apply(console.log, "+o.toSource()+") })();";
}
 気 私 |            ________
 持    |.      ,. - ´     ` - 、
 ち .あ |   ,.ノ                ヽ
 悪 あ | ∠,イ / i{ ハ! i ! l }.    、
 い い |   /イ { -从{ i} ! ハ}┼!┐   :ハ
 ん う  |   {ⅩレT:カVリN T:カ}!: :Ⅹ: : :.';
 で の |   ∠: : ! ゞ '    ゞイ!: : : : : :.N
 す    |     レi入"  r--、  "'レ!: : ;、/レ'
 よ    |.    //   >- ,.  -<  `'´
 ね.   |   { {   ,イ^{、 __ ,..イ:::>、
// from http://www.joehewitt.com/blog/files/getElementsBySelector.js
// modified
function convertSelectorToXPath (rule, start) {
var regElement = /^([#.]?)([a-z0-9\\*_-]*)((\|)([a-z0-9\\*_-]*))?/i;
var regAttr1 = /^\[([^\]]*)\]/i;
var regAttr2 = /^\[\s*([^~=\s]+)\s*(~?=)\s*"([^"]+)"\s*\]/i;
var regPseudo = /^:([a-z_-])+/i;
var regCombinator = /^(\s*[>+\s])?/i;
var regComma = /^\s*,/i;