Userscript.org Post Preview

By sizzlemctwizzle Last update May 1, 2009 — Installed 204 times.

SUGGESTIONS

in
Subscribe to SUGGESTIONS 34 posts, 4 voices



Marti Scriptwright

Guess who? ;)

  • COMPLETE Vertical spacing in preview is REALLLLLLLLLLLLLLLLY off...?
  • REVOKED Do like the possibility of a full page preview like Joe's... although different
  • COMPLETE Please rename your button to Inline preview or the like (Tooltip with that text?)... I'm getting confused on which button belongs to whom.
  • COMPLETE Work with editing a post
  • REMINDER Implement Knowing your own metadata to implement some style of alert when editing a post can't add preview button.
  • PENDING Work with send message... if possible SOOPER DOOPER PLEASE :)
  • NEWuncaught exception

 
sizzlemctwizzle Script's Author

Marti wrote:
Do like the possibility of a full page preview like Joe's... although different

No thanks. Don't like it. I'd rather have it compressed.
Marti wrote:
Vertical spacing in preview is REALLLLLLLLLLLLLLLLY off...?

Haven't noticed this. Maybe it's a padding issue. I'll look into it.

 
Marti Scriptwright

sizzlemctwizzle wrote:
Haven't noticed this
Quote and then you'll see.
sizzlemctwizzle wrote:
No thanks. Don't like it. I'd rather have it compressed.
We'll see... I'm still balancing between both methods, but it's also quite new.

 
sizzlemctwizzle Script's Author

Fixed the spacing issue.

 
Marti Scriptwright

sizzlemctwizzle wrote:
Fixed the spacing issue
Sweetness! :)


NEW request(s)

 
JoeSimmons Scriptwright

It needs to work with editing posts and previewing new topics.
It also needs to support new lines \n in previews.

The script is alright though. I like the preview in the reply area idea.

 
sizzlemctwizzle Script's Author

JoeSimmons wrote:
It needs to work with editing posts and previewing new topics.
It also needs to support new lines \n in previews.

I know. I haven't had anytime to work on it. Been busy with classes. I already have it done and now I'm just waiting on Jesse to get back to me. I hadn't seen any problem with newlines. Isn't us.o supposed to take care of that? I'm using POST so I'm just showing what I get back from the server. Could you give me an example?
Marti wrote:
Please rename your button to Inline preview or the like (Tooltip with that text?)

Yeah I'll put it in as a tooltip in my next release.

 
JoeSimmons Scriptwright

sizzlemctwizzle wrote:
Could you give me an example?

Your script doesn't do line breaks. Replace \n with <br> in the responseText to simulate how it would appear on the page.

 
sizzlemctwizzle Script's Author

Confirmed and fixed. Just uploaded my latest version. Made a bunch of changes. Works with new topics, editing post, and of course new replies. It's still not completely compatible with my comment fixer script, but it works nicely on its own.

 
Marti Scriptwright

sizzlemctwizzle wrote:
It's still not completely compatible with my comment fixer script,
UGGH! ;) *reverts*

 
sizzlemctwizzle Script's Author

Marti wrote:
sizzlemctwizzle wrote:
It's still not completely compatible with my comment fixer script,
UGGH! ;) *reverts*

It's a very minor incompatibility (if you are editing a post and hit cancel you will have to click "Edit post" twice to make the preview button show up), and it doesn't really matter because I'm going to have to incorporate this script into my other to make it work with escaping anyway. You should use this version. Its a HUGE improvement over the last.

 
Marti Scriptwright

sizzlemctwizzle wrote:
It's a very minor incompatibility
I'll retry it momentarily... I'm modifying GM for a future ticket and the mod didn't do well... so back to previous GM ;)


WOOT WOOT! :) Can preview edits thanks.

 
sizzlemctwizzle Script's Author

Marti wrote:
sizzlemctwizzle wrote:
It's a very minor incompatibility
I'll retry it momentarily... I'm modifying GM for a future ticket and the mod didn't do well... so back to previous GM ;)

I highly recommend you try out previewing on the new topic page. It's real cool with all that space. Btw could you take a look at this error I found in Joe's preview script?

 
Marti Scriptwright

sizzlemctwizzle wrote:
try out previewing
Kewl... great to see you expanding ;)... although when I typed the title in the first time, it didn't show up above "by Marti".


Now it's doing it... weird.

Now it's not...
Typed "test" into title and then mouse clicked or tabbed into the body.

But if I type "testing" into title, works fine... will try without GM

Something weird is going on with uso right now... not your script.

 
sizzlemctwizzle Script's Author

Edited my script for the change to the site (previously I was correcting the error myself so I actually remove code in this update yay!)

 
JoeSimmons Scriptwright

Hey Mike, check out the create() function in my Preview Posts script. You can add listeners and append children right in the function. It can handle textContent and innerHTML inside the function too, unlike you one you're using from Greasespot. Check my script for an example on how to do that.

 
sizzlemctwizzle Script's Author

JoeSimmons wrote:
Hey Mike, check out the create() function in my Preview Posts script. You can add listeners and append children right in the function. It can handle textContent and innerHTML inside the function too, unlike you one you're using from Greasespot. Check my script for an example on how to do that.

Just uploaded my script the create() function implemented. Basically I took my element creating code and reduced to one massive line lol. I really like the listener part.
Marti wrote:
  • PENDING Work with editing a post
Can you update this Marti?

 
Marti Scriptwright

sizzlemctwizzle wrote:
Just uploaded my script
Now your script is fighting with Joes for Preview button. New request too.

sizzlemctwizzle wrote:
Can you update this Marti?
See this replies prior message... you've already discussed when the preview button doesn't show up when clicking edit on the first round... but now you have above problem too.

 
sizzlemctwizzle Script's Author

Marti wrote:
I don't understand what my script's metadata has to do with my script failing to add the preview button.

 
Marti Scriptwright

sizzlemctwizzle wrote:
I don't understand
You have a silent error, that you already know about... See Joe's topic on how he's handling it by currently notifying the user. I know you will both eventually figure out how to fix this, but in the interim it would be nice to know.

 
sizzlemctwizzle Script's Author

Marti wrote:
sizzlemctwizzle wrote:
I don't understand
You have a silent error, that you already know about... See Joe's topic on how he's handling it by currently notifying the user. I know you will both eventually figure out how to fix this, but in the interim it would be nice to know.

I found the error in my script that was preventing the preview link from showing up while editing.

 
Marti Scriptwright

I'm SUPER GLAD that you both put tooltips on which Preview button is which... they move around on me even when I'm not updating either one of your scripts. LOL Thanks.

 
sizzlemctwizzle Script's Author

Okay, both our preview scripts are now compatible with my comment fixer script. Both the preview buttons show up when all three scripts are enabled.

 
Marti Scriptwright

sizzlemctwizzle wrote:
Okay, both our preview scripts are now compatible with my comment fixer script. Both the preview buttons show up when all three scripts are enabled.
WOOT WOOT! Shall we shoot for four script compatibility... somewhere along the line, the uso comment helper script is getting hosed. (a scum's)

 
sizzlemctwizzle Script's Author

Oops just realized the Quoting is not working lol. Give me a moment.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel