phpBB CollapseQuickreply

Adds a button which shows/hides the quick reply in phpBB boards.

目前為 2017-11-19 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         phpBB CollapseQuickreply
// @namespace    http://openuserjs.org/users/ardiman
// @description  Adds a button which shows/hides the quick reply in phpBB boards.
// @description:de-DE Erstellt in phpBB-Foren einen Button, mit dem man die Schnellantwort ein-/ausblenden kann.
// @grant        none
// @homepage     https://github.com/ardiman/userscripts/tree/master/phpbbcollapsequickreply
// @icon         https://raw.githubusercontent.com/ardiman/userscripts/master/scriptlogo.gif
// @include       */viewtopic.php*
// @license      CC-BY-NC-SA-3.0; https://creativecommons.org/licenses/by-nc-sa/3.0/legalcode
// @license      MIT; https://opensource.org/licenses/MIT
// @supportURL   https://github.com/ardiman/userscripts/issues
// @version      1.0.1
// @date         2017-11-19
// ==/UserScript==

$('#qr_postform').before('<div id="reprap" class="panel" style="text-align: center;"><input class="button2" type="submit" value="Schnellantwort anzeigen"></div>').css('display', 'none');
$('#reprap input[type=submit]').click(function(){
	$(this).parent().toggleClass('ouvert').next('#qr_postform').slideToggle();
	$('#reprap input[type=submit]').val('Schnellantwort anzeigen');
	$('#reprap.ouvert input[type=submit]').val('Schnellantwort verbergen');
});