powdertoy.co.uk Confirm Discarding A Long Post

Shows a confirmation before accidentally discarding a long forum post.

作者
Johannes Kadak
日安装量
0
总安装量
4
评分
0 0 0
版本
1.2.1
创建于
2015-09-26
更新于
2015-09-28
大小
5.2 KB
许可证
暂无
适用于

Hi!

This is a quick script to let you know when you're about to abandon a longform post (either reply or new thread) on powdertoy.co.uk. Right now, the limit for "longform post" is 400 characters, but feel free to make it smaller.

If you're willing to put in some elbow grease, you can adapt this script to any site you can think of.

Features

Clipboard backup

Automatically backs up whatever you were about to type into the system clipboard. You can then paste it back when you change your mind later.

Configlumaration

If you open up the source code of the script, there's quite a few configuration options now! You can specify how long a "long post" has to be, you can toggle debug mode (does a lot of logging) and various features (like the clipboard backup).

Changelog

1.2.1: Performance fixes

  • const'ed all the configuration variables in the script
  • new @match-rules match only the pages you need it on
  • (also means that it now works with groups and conversations!)
  • new data specifies exactly which parts of a given page to match, meaning an entire 1 branch is skipped!
  • overall optimizations :D
  • better debug experience if you enable DEBUG = true

1.1.0: New Features and A Really Useful Bugfix

  • New feature: flippy switches! You can now toggle most of the script's features.
  • New feature: clipboard backup! Automatically backs up the script to the clipboard when attempting to leave.
  • Fixed feature: You won't get a prompt anymore when you actually want to post the thread / forum post.

1.0.0: Initial Release

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址