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
#!/usr/bin/perl -- | |
use strict; | |
use warnings; | |
use utf8; | |
# mastodonのdockerコンテナの rails console はreadline がUS-ASCIIなので、文字列リテラルはエスケープが必要 | |
sub escapeNonAscii($){ | |
my($a) = @_; | |
$a =~ s/([\x{80}-\x{fffff}])/"\\u{".sprintf("%x",ord $1)."}"/ge; | |
$a; |
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 ZeroFix | |
// @namespace applest.net | |
// @version 0.5 | |
// @description ZeroFix is ZeroWatch of niconico fixer. ZeroWatchが改良するまでの暫定的なユーザースクリプトです。 市場エリアに投稿者情報を表示、コメント投稿エリアの修正、フェード防止の機能があります。 | |
// @include http://www.nicovideo.jp/watch/* | |
// ==/UserScript== | |
/**************************************** | |
* 右上の[raw]をクリックしてダウンロード開始 * |