Script Summary: Strips date and signature from quotes, inserts snippets and signatures, see script for details and settings
Version: 2009-11-13 00.19
Google Groups Posting Utilities
November the 13rd, 2009
I've almost completely rewritten the script to support snippets' and signatures' creation and management at runtime.
Now everything gets stored withing GreaseMonkey, hence this script will not work on Opera unless you define GM_setValue and GM_getValue somehow. There should be a script out there for doing so.
I wasn't able to completely and thoroughly test this new version of the script, please let me know of any issue.
October the 23rd, 2009
Unfortunately, nobody had the kind heart of pushing me towards the right direction about all of this stff. I completely missed to take advantage of Greasemonkey's value set/get functions. In other words, I've hard-coded sigs and snippet in the script while I could have stored them via GM, allowing the user to create, edit and store them, along with the script's settings, directly withing GM.
Luckily, I've stomped on those functions by myself, I'm currently working on them.
Let me hear your voice, if you're reading me.
Here below is the full list of features as it appears in the last script version.
/* FEATURES: a) = always (no toggle) t) = toggle in the panel (gets saved and recalled between runs) f) = flag in the script settings (hardcoded, modify and save the file) Quoted text: a) strip signature from quote t, f) strip date from quote Signatures & snippets management: t, f) show/hide rearrange/delete buttons a) create, rearrange and delete sigs and snippets at runtime a) import and export sigs and snippets Signatures: t, f) add first signature by default when starting a new post/reply a) place caret between text and signature when adding signature t, f) toggle signatures' bar visibility a) preview signatures when hovering the links f) signature replacement warning Snippets: a) replace selected text when inserting snippet t, f) toggle snippets' bar visibility a) preview snippets when hovering the links Toggles' panel: f) completely hide panel (won't show up at all) f) show panel also when not posting f) compact/expanded panel switch f) shows toggles only on hover Misc: a) multiple posting forms warning a) narrow down the advisory bar on the right Adding snippets and sigs works also when posting new topics (the links appear as soon as you enter the message's body) Currently tested on: - Firefox 3.5.3 Currently NOT tested on Opera - it could work if the missing GM_setValue() and GM_getValue() functions get defined somehow. (I've heard of a script that defines them and saves the data into cookies, try installing that. I will include such a fallback method in some future release) --- Thank you for your interest about this script, hope you'll find it useful. I look forward for your comments, advices and, eventually, for your feature requests too. Best of luck, Francesco e-mail: entuland at gmail.com Website: http://fscode.altervista.org
- runtime data and settings management and recall added
- messed up code sections, everything will have to be rearranged better
- still planned: add localization
- centralized all styling in an embedded CSS section
- rearranged the script structure (reordered code sections)
- planned: add localization
- added integrity check for signatures and snippets
- replaced pseudo-links with buttons
- rewritten most of the code to improve readability (I hope) and to ease future modifications (for sure)