Hack Forums - Fixed Quick Reply

Fixes the quick reply formula to the bottom of the viewport to make it easier to browse the thread while composing a reply.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name        Hack Forums - Fixed Quick Reply
// @namespace   Doctor Blue
// @description Fixes the quick reply formula to the bottom of the viewport to make it easier to browse the thread while composing a reply.
// @include     *hackforums.net/showthread.php?tid=*
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js
// @version     1.0
// @grant       none
// ==/UserScript==

// Prevent conflicts with other userscripts
$j = $.noConflict(true)

$j('#quick_reply_form .expcolimage').remove() // Remove the expand/collapse button
$j('#quick_reply_form tbody').hide() // Hide the quick reply field by default
$j('#quick_reply_form textarea').attr('rows', '6') // Reduce textarea height to 6 rows

// Make quick reply header clickable
$j('#quick_reply_form thead')
  .css('cursor', 'pointer')
  .on('click', function() {
    $j('#quick_reply_form tbody').toggle()
  })

// Move the quick reply form to the fixed position
$j('#quick_reply_form')
  .css('width', 'calc(95% - 15px)')
  .css('position', 'fixed')
  .css('bottom', '0')