Skip to content

Instantly share code, notes, and snippets.

@esperecyan
Last active February 10, 2023 01:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esperecyan/c78ea6033d189d0c44a26a0209613fc3 to your computer and use it in GitHub Desktop.
Save esperecyan/c78ea6033d189d0c44a26a0209613fc3 to your computer and use it in GitHub Desktop.
ニコニコ生放送で、2020-07-27のコメントフィルター実装後も残った、連続した数字などをはじくための運営NGワードを回避するための、NiconamaCommentViewer (NCV) 用の書き込み置換ファイル (書き込み置換設定を保存するファイル) です。

ニコニコ生放送で、2020-07-27のコメントフィルター実装後も残った、連続した数字などをはじくの運営NGワードを回避するための、NiconamaCommentViewer (NCV) 用の書き込み置換ファイル (書き込み置換設定を保存するファイル) です。

▚▚▚▚▚ 導入方法

  1. 「SubstList_Writing.xml」をダウンロードします。
    https://gist.githubusercontent.com/esperecyan/c78ea6033d189d0c44a26a0209613fc3/raw/SubstList_Writing.xml
  2. NiconamaCommentViewer を起動し、ファイルメニューから「ファイル」▸「設定ファイル保存フォルダを開く」を選択します。
  3. NiconamaCommentViewer を終了します。
  4. 開いたフォルダにダウンロードした「SubstList_Writing.xml」を入れます。
    • すでに書き込み置換を設定していた場合、ファイルの上書きによってリセットされますのでご注意ください。

▚▚▚▚▚ 既知の問題点

▚▚▚▚▚ 謝辞

NGワードの置換は、しろさん のアイデアです。

<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-License-Identifier: CC0-1.0
Author: 100の人
Web Page: https://www.meish.me/i/esperecyan
-->
<SubstitutionList xmlns:NCV="http://posite-c.jp/niconamacommentviewer/common/" xmlns="http://posite-c.jp/niconamacommentviewer/substitutionlist/">
<subst_client is_regex="True" status="True">
<old>(?:ftp|http|https)://[-0-9A-Za-z!#$&amp;'()*+,./:;=?@_~\[\]%]*?0[0-9-]{8}(?=[0-9])</old>
<new>$0%3</new>
</subst_client>
<subst_client is_regex="True" status="True">
<old>((?:ftp|http|https)://[-0-9A-Za-z!#$&amp;'()*+,./:;=?@_~\[\]%]*?0[0-9-]{8})-(?=[0-9-])</old>
<new>$1%2D</new>
</subst_client>
<subst_client is_regex="True" status="True">
<old>(?i:[00][0-9-0-9ー-]{8}(?=[0-9-0-9ー-]))</old>
<new>$0\</new>
</subst_client>
</SubstitutionList>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment