This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name fastladder - prevent click scroll. | |
// @description prevent scroll on click feed. | |
// @author miya2000 | |
// @namespace http://d.hatena.ne.jp/miya2000/ | |
// @version 1.0.0 | |
// @inclide http://fastladder.com/reader/ | |
// @inclide http://reader.livedoor.com/reader/ | |
// ==/UserScript== | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name hatebu - rewite id-call. | |
// @description rewite id-call link from the user page to the user bookmark on the entry page. | |
// @author miya2000 | |
// @namespace http://d.hatena.ne.jp/miya2000/ | |
// @include http://b.hatena.ne.jp/entry/* | |
// ==/UserScript== | |
(function() { | |
function main(){ | |
var as = document.evaluate('\/\/a[starts-with(@href,"http://b.hatena.ne.jp/")][starts-with(text(),"id:")]', document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name fastladder - prevent overscroll | |
// @description prevent overscroll on Opera. | |
// @author miya2000 | |
// @namespace http://d.hatena.ne.jp/miya2000/ | |
// @version 1.0.0 | |
// @include http://fastladder.com/reader/ | |
// @include http://reader.livedoor.com/reader/ | |
// ==/UserScript== | |
(function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.Threading; | |
namespace ConcurrentTest | |
{ | |
class Program | |
{ | |
const int CONCURRENT = 100; | |
const int LOOP = 100000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test01; | |
import java.text.MessageFormat; | |
import java.util.concurrent.atomic.AtomicInteger; | |
public class ConcurrentTest { | |
static final int CONCURRENT = 100; | |
static final int LOOP = 100000; | |
static int counter; | |
static AtomicInteger aCounter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var i,m,c={},f,d=document,p,a,an=document.getElementsByTagName('a'); | |
for(i=0;i<an.length;i++){ | |
a=an[i],p=a.parentNode; | |
if(m=/^http:\/\/www\.nicovideo\.jp\/watch\/(\w+\d+)/.exec(a.href)){ | |
if(!c[m[1]){ | |
c[m[1]]=1; | |
f=d.createElement('p'); | |
f.innerHTML='<iframe width="400" height="200" style="border:gray solid 1px;" src="http://www.nicovideo.jp/thumb?v='+m[1]+'"></iframe>'; | |
p.insertBefore(d.createElement('br'),p.insertBefore(f,a.nextSibling)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test01; | |
public class BinaryDumpTest { | |
public static void main(String[] args) { | |
System.out.print("Integer.MAX_VALUE : "); | |
binaryDump(Integer.MAX_VALUE); | |
System.out.print("Integer.MIN_VALUE : "); | |
binaryDump(Integer.MIN_VALUE); | |
System.out.print("-1 : "); | |
binaryDump(-1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name flash - disable script access | |
// @author miya2000 | |
// @namespace http://d.hatena.ne.jp/miya2000/ | |
// @version 1.0.1 | |
// @include http://www.nttsolmare.com/* | |
// @exclude http://*http* | |
// ==/UserScript== | |
(function() { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name flash - remove kuso | |
// @author miya2000 | |
// @namespace http://d.hatena.ne.jp/miya2000/ | |
// @version 1.1.0 | |
// @include http://* | |
// ==/UserScript== | |
(function() { | |
function main() { | |
var kuso = document.evaluate('//embed[contains(@src, "flash_detection.swf")]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var d = document.implementation.createDocument('', '', null); | |
d.appendChild(d.createTextNode('\n')); | |
var opml = d.appendChild(d.createElement('opml')); | |
opml.appendChild(d.createTextNode('\n\t')); | |
var head = opml.appendChild(d.createElement('head')); | |
opml.appendChild(d.createTextNode('\n\t')); | |
var body = opml.appendChild(d.createElement('body')); | |
opml.appendChild(d.createTextNode('\n')); | |
alert(new XMLSerializer().serializeToString(d)); |
OlderNewer