Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Very Simple PukiWiki to MediaWiki Converter</title>
<style type="text/css">
textarea{
width:100%;
}
table, tr, th, td{
#!/usr/local/bin/ruby
require "cgi"
require "kconv"
$KCODE = 'UTF8'
begin
html = <<END
<html>
<head>
<!-- head -->
(function(){
var untiny = function(){
var doc = document;
var api='http://atsushaa.appspot.com/untiny/get?url=URLS&callback=untinyUrl';
function xGet(xpath){
xpath+=xpath.replace(/^\/\//,'|//x:');
var res=doc.evaluate(xpath,doc,function(){return 'http://www.w3.org/1999/xhtml'},6,null);
var ret=[];
for(var i=0,l=res.snapshotLength;i<l;i++){
ret[i]=res.snapshotItem(i);
#!/usr/bin/env ruby
require 'base64'
require 'uri'
id = $$
#id = Time.now.strftime('%Y%m%d%H%M')
pdffile = ARGV[1] ? ARGV[1] : ARGV[0]
tmpfile = "/tmp/pdf_#{id}_%02d.svg"
puts tmpfile
#!/usr/local/bin/ruby
require 'open-uri'
require 'uri'
require 'rss'
require 'digest/md5'
cache_dir = File.dirname(__FILE__)+'/cache'
Dir.mkdir(cache_dir) unless File.exist?(cache_dir)
result_file = File.dirname(__FILE__)+'/results.txt'
results = Hash.new
2235 rd.yahoo.co.jp
780 n-sale.org
723 technorati.jp
591 www.amazon.co.jp
568 hb.afl.rakuten.co.jp
539 www.infotop.jp
427 blog.livedoor.jp
284 www.kenchi.jp
234 ameblo.jp
205 r.gnavi.co.jp
<?xml version="1.0" encoding="utf-8"?>
<opml version="1.0">
<head>
<title>Spam Blogs</title>
<dateCreated>Tue, 17 Mar 2009 00:20:54 -0400</dateCreated>
<ownerName />
</head>
<body>
<outline text="Subscriptions">
<outline title="仙台に生まれて" htmlUrl="http://suminaga20.blog105.fc2.com/" text="仙台に生まれて" type="rss" xmlUrl="http://suminaga20.blog105.fc2.com/?xml" />
// ==UserScript==
// @name LDR_hateb_count.user.js
// @namespace http://atsushi-takayama.com/
// @include http://reader.livedoor.com/reader/
// @include http://fastladder.com/reader/
// ==/UserScript==
(function(win){
win.ItemFormatter.TMPL.tmpl = win.ItemFormatter.TMPL.tmpl.replace(/(<span id="pin)/, '<a href="http://b.hatena.ne.jp/entry/[[ item ]]" style="height:18px;margin-right:4px;float:left;"><img alt="" border="0" src="http://b.hatena.ne.jp/entry/image/[[ link ]]"></a>\n$1');
})(this.unsafeWindow || window)
// ==UserScript==
// @name ad_entry_blocker_mod.user.js
// @namespace http://d.hatena.ne.jp/edvakf/
// @description Remove ad items
// @include http://reader.livedoor.com/reader/
// @include http://reader.livedoor.com/public/*
// @include http://fastladder.com/reader/
// ==/UserScript==
// Inspired by the original script http://blog.endflow.net/?p=58
// ==UserScript==
// @name ad_entry_blocker_mod.user.js
// @namespace http://d.hatena.ne.jp/edvakf/
// @description Remove ad items
// @include http://reader.livedoor.com/reader/
// @include http://reader.livedoor.com/public/*
// @include http://fastladder.com/reader/
// ==/UserScript==
// Inspired by the original script http://blog.endflow.net/?p=58