Bugs

in
Subscribe to Bugs 6 posts, 2 voices



JoeSimmons Scriptwright

This thread for bugs only

  • DONE When you quote someone else's quote, there is an error. The fix for this is changing the regex in line 84 to /http:\/\/userscripts\.org\/users\/[^\/]+/
  • REPEALED On selected text quotes, there is a blank line ater wrote:. See how to fix it below.

 
sizzlemctwizzle Script's Author

Thanks Joe. Forgot to update this when vanity urls were released.

 
JoeSimmons Scriptwright

New bug.
To fix it, remove the empty <p> tag, spaces, and new lines at the beginning of the quoted text.
You can fix it like this:

quoted = selectHTML(select, body.id).replace(/^(<p>\s*<\/p>)/g,'').replace(/^(\s*<br>\s*)*\s*/,'').replace(/^\s*/,'');

 
sizzlemctwizzle Script's Author
JoeSimmons wrote:
  • NEW On selected text quotes, there is a blank line ater wrote:. See how to fix it below.
That's actually intended. I like to start the quote on a new line.

Thanks for the code. I'll put it in with all my other replaces.
 
JoeSimmons Scriptwright

Why did you revert to using \d+ to check nested quotes?

 
sizzlemctwizzle Script's Author

JoeSimmons wrote:
Why did you revert to using \d+ to check nested quotes?

Weird...probably due to a version mix up. Fixed now.

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