Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name NicovideoPlayingFavicon
// @namespace https://twitter.com/hirogasa/
// @match http://www.nicovideo.jp/watch/*
// @description ニコニコ動画の再生中ページのFaviconを変更します。
// @version 1.4
// @grant none
// ==/UserScript==
if(window.WatchApp) { // Flashプレーヤー
@vzvu3k6k
vzvu3k6k / split_opml.rb
Created March 14, 2013 16:51
Split OPML with Ruby, nokogiri
# -*- coding: utf-8 -*-
# Livedoor ReaderにOPMLで一度にインポートできるのは260件までっぽい感じだったので適当に分割する
require 'nokogiri'
xml = Nokogiri::XML.parse(File.read(ARGV[0]))
feeds = xml.search("//outline[@type]")
count = 0
feeds = feeds.to_a.uniq{|i| i["htmlUrl"]}