[Konachan] Tag Subscriptions: Tag Completion

Adds tag completion boxes to the edit page for tag subscriptions.

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name		[Konachan] Tag Subscriptions: Tag Completion
// @namespace	Zolxys
// @description	Adds tag completion boxes to the edit page for tag subscriptions.
// @include		/^https?://konachan\.(com|net)/tag_subscription/?($|\?|#)/
// @include		/^https?://yande\.re/tag_subscription/?($|\?|#)/
// @version		1.1
// ==/UserScript==
var f = String(function(){
	var zoltsa = [];
	function zoltsf() {
		var a = document.getElementById('tag-subscription-body').getElementsByTagName('input');
		var r = /^tag_subscription_(\d+)_tag_query$/;
		for (var i = 0; i < a.length; i++)
		  if (r.test(a[i].id)) {
			var n = parseInt(r.exec(a[i].id)[1]);
			if (zoltsa.indexOf(n)== -1) {
				zoltsa.push(n);
				new TagCompletionBox(a[i]);
				if (TagCompletion)
					TagCompletion.observe_tag_changes_on_submit(a[i].up('form'), a[i], null);
			}
		}
	}
	document.getElementById('content').addEventListener('DOMNodeInserted', zoltsf);
	zoltsf();
});
var ne = document.createElement('script');
ne.setAttribute('type','text/javascript');
ne.innerHTML=f.substring(f.indexOf('\n') + 1, f.lastIndexOf('}'));
document.head.appendChild(ne);