HOME | DD

NekoDramon — deviantLIT - Friendly Format

Published: 2005-07-15 21:11:49 +0000 UTC; Views: 4726; Favourites: 22; Downloads: 1789
Redirect to original
Description NOW v5 COMPATIBLE!

deviantLIT - Friendly Format is a Firefox/Greasemonkey script that adds formatting options to literature deviations.

Requires: Firefox and Greasemonkey

How to install it:
1) Install the Greasemonkey Extension and restart Firefox
2) Right-click the link below and choose "Install User Script" in the context menu. Alternatively, click the link and select "Tools -> Install User Script" in the menu bar.
3) Go to any Literature (Poetry or Prose) deviation. You should see the script's menu items (see below) in the upper right corner of the deviation.

DOWNLOAD VERSION 1.2: [deviantLIT - Friendly Format ]

How to use it:
The controls should be fairly simple:
[Save] lets you save the current viewing options
[Load] simply loads the saved options (Note: When you open a Lit Deviation, the saved settings are loaded automatically)
[Default] restores the default dA viewing options
[+] and [-] control the font size
[Spacing] toggles the line spacing: "Single -> 1.5x -> Double -> Single -> ..."
[Serif] toggles between Serif Font (like Times New Roman) and Sans Serif Font (like Arial)
[Indent] switches the Indentation on and off
[Color] cycles between the default dA colors, "Black on White" and "White on Black". Yes, the difference between v5 and "BoW" is marginal, but eh.

Version History:
v1.2 [Aug 8, 2006] - Now v5-compatible, added sets for foreground/background colors
v1.1 [Jul 17, 2005] - Added Load/Save/Default functions, major code revamp (Still available )
v1.0 [Jul 15, 2005] - Release (Still available )

Known Issues:
Increasing the font size sometimes leads to situations where text "breaks out" of the box (instead of automatically doing a linebreak). This apparently isn't strictly script-specific and also occasionally happens when you increase the font size with "View -> Text Size -> Increase". If it happens, try toggling the Indent on and off. It seems to fix things usually. I'm currently working on a good way to prevent this from happening. (Not sure if this still happens in dAv5...)

Misc. Stuff:
The preview image is based on one of my Scraps, which in turn is based on one of my old Journals.
Please tell me if you notice anything odd or unusual while using this script. Comments or Feature Requests are very welcome!
The color sets are defined in the first part of the script. If you want to use other colors, just edit the values of one of the three sets.

Credits:
I wrote this script after reading through a few suggestions on the dA Literature Board. Here are the ones that caught my eye:
=PinkyMcCoversong - Serif Fonts
~magicalgirl - Line Spacing
`Bringa - Font Size, Indentation, Colors
~a-g-z - The final name of this script. Trust me, you don't want to know my WiP name
~timothyd - Save/Load

[ marks new/updated items]
Related content
Comments: 35

BoffinBrain [2007-09-16 02:42:43 +0000 UTC]

As =Mozilla said, I believe this extension is now obsolete, unless you can think of any new features to add.

👍: 0 ⏩: 0

Mozilla [2007-06-27 19:56:45 +0000 UTC]

They've added most these features now...could you update this with anything the site is missing now?

👍: 0 ⏩: 0

thejuliatheory [2007-05-12 16:43:40 +0000 UTC]

okay so apparently i'm an html noob and i have no idea what i'm doing
can you.. help me?

all i want to do is change fonts and add indentations at the beginning of my paragraphs.

👍: 0 ⏩: 0

exSs [2006-11-24 07:25:12 +0000 UTC]

i could use this, can you pls mail it if not upload it? - 1.2 seems to be gone...

👍: 0 ⏩: 1

NekoDramon In reply to exSs [2006-11-25 14:20:40 +0000 UTC]

Works for me... it's at [link] from what I can see...

Maybe the server had just been inaccessible for a while...

👍: 0 ⏩: 1

exSs In reply to NekoDramon [2006-11-25 18:01:17 +0000 UTC]

yay thanks

hmm the link didn't work for me yesterday

👍: 0 ⏩: 0

jdskeleven [2006-10-27 22:53:43 +0000 UTC]

This is extremely handy! Thanks a lot!

👍: 0 ⏩: 0

danielzklein [2006-08-08 20:34:17 +0000 UTC]

Did you use the width adjustment thingie from `xork too? Can't live without those anymore!

👍: 0 ⏩: 1

NekoDramon In reply to danielzklein [2006-08-08 21:17:36 +0000 UTC]

No, because I only looked closer at `xork 's version after I was done with this and the Mark Recent script. That's also why my color control is radically different than his.
I might add it later (along with adding potential new features and improving the usability and design), but my current priority is to make my four scripts compatible.

Besides, `xork pretty much improved most of my current features in his script, so there is also the question how much sense it would make to just copy features back and forth since that would only lead to two basically identical scripts

So the bottom line is that, in order to get width control, you'll most likely want to stick to `xork 's version until I find a way to pull ahead (Hey, since when was this a race?) again

👍: 0 ⏩: 0

danielzklein [2006-07-23 23:14:46 +0000 UTC]

Man I came here to suggest font/background color only to find out I already had Anything happening on that front or should I sit down and tinker with the script myself?

👍: 0 ⏩: 0

Hallucinatedlight [2006-03-20 03:09:46 +0000 UTC]

Oh, this is wonderful! It really does make things easier to read. Thank you.

👍: 0 ⏩: 0

AngelicLawyer [2006-02-24 10:03:16 +0000 UTC]

This is just so clever! Makes reading prose and poetry on dA a lot more pleasant experience. Thank you for developing such a useful script!

👍: 0 ⏩: 0

danielzklein [2005-12-28 11:48:52 +0000 UTC]

This is still awesome and I'm still linking to it with every story I submit. It needs more exposure!

👍: 0 ⏩: 0

danielzklein [2005-12-20 17:27:17 +0000 UTC]

Hey,

I don't know if you're still working on this, but if you are... do you think you could add a quick option for font/background colour? I'd really prefer black on white / white on black over anything on pea-grey.

👍: 0 ⏩: 0

bonekhan123 [2005-10-16 03:50:44 +0000 UTC]

I shall recommend this to all of my watchers... A truly worthy Greasemonkey extension, nice job

👍: 0 ⏩: 0

balhaza [2005-10-12 22:33:17 +0000 UTC]

Beautiful! A little slow but I am always a little slow.

👍: 0 ⏩: 0

rafaelsantos [2005-08-21 22:43:51 +0000 UTC]

thank you! thank you! thank you!

👍: 0 ⏩: 0

danielzklein [2005-08-20 11:33:32 +0000 UTC]

I'm going to be linking to this in all prose devs I'll submit from now on. Finally, no more moronic adding of empty lines in between paragraphs!

👍: 0 ⏩: 1

NekoDramon In reply to danielzklein [2005-08-20 14:47:33 +0000 UTC]



Oh, and I can't test it right here and now, but chances are fairly good that the 1.0 version of the script (the one without Load/Save) also works with Opera (read THIS for more info) and/or IE (using Trixie ) since that version is pure Javascript and DOM-manipulation which should (my guess) work on other browsers, too.

I'll have to test it once I'm back on my PC. Maybe later tonight...

👍: 0 ⏩: 0

the-negative [2005-08-10 13:56:39 +0000 UTC]

Now, does it work with Greasemonkey 0.5? It's a beta.

👍: 0 ⏩: 1

NekoDramon In reply to the-negative [2005-08-10 22:16:19 +0000 UTC]

I don't see why it shouldn't work with it... *checks* Yep, version 1.1 works with Greasemonkey 0.5

👍: 0 ⏩: 0

yatsu [2005-07-25 15:04:19 +0000 UTC]

taht? is possibly the coolest thing i have ever seen. consider my socks rocked.

👍: 0 ⏩: 0

TheBadassDevil [2005-07-19 07:30:23 +0000 UTC]

You. Are. A. God.


That is all.

👍: 0 ⏩: 0

lonnietaylor [2005-07-18 21:16:42 +0000 UTC]

I'm not a LIT writter but I still think this is an extremely awesome idea. Juice by you man!

👍: 0 ⏩: 0

TheWritt [2005-07-17 02:08:25 +0000 UTC]

!good

👍: 0 ⏩: 0

danielzklein [2005-07-17 01:30:52 +0000 UTC]

This is quite wonderful and badly needed!

A few remarks: this first one might be undoable, or not without some trouble, but I'll try anyway: on dA, it's become common practise to put a linefeed between paragraphs to make paragraphs obvious in the absence of indentation. Once you give us indentation, these empty lines get in the way. Is there a way you could override them?

Secondly, and this should be easily feasible seeing how you've already wrapped the body of text in a div: an option to reduce the width to paper size would be awesome. Essentially, try to get the dimension of a page in a book by restricting width. The idea here is the require less eye-travelling; this makes reading a lot easier. You need to find the right ration here: you neither want the eyes to travel left-to-right too much, nor do you want them to have to find the next line too often. Our book pages happen to be about the right ratio. Typically it's a little less than half the screen on a PC screen. It also helps to have this page CENTRED on the screen.

The best thing, really, would be to pop up a new page with the proper dimensions (as we don't want anything--daily deviations, shoutbox, whatever) to also show up and distract the reader (assuming they're not in fullview mode).

This is a wonderful addition and one much needed in the literary community. I hope you won't mind if I'll go and spam a little for you now in our wonderful forums.

Thank you!

👍: 0 ⏩: 1

NekoDramon In reply to danielzklein [2005-07-17 11:28:17 +0000 UTC]

"Essentially, try to get the dimension of a page in a book by restricting width."

Very interesting suggestion... but what width value do you have in mind? For example, where would you like to see the new (soft) linebreaks in the first paragraphs of "The Importance of Being Frank"? That would give me a few base-values to work with.

"The best thing, really, would be to pop up a new page with the proper dimensions"

Might take a while, and I might actually do that in its own extension (that would give me better control over tabs and new windows... at the moment, Firefox would block any Javascript-popup window ). I'll definitely keep in mind, especially since my semester is going to end in a week, giving me some free time to code.

"on dA, it's become common practise to put a linefeed between paragraphs to make paragraphs obvious in the absence of indentation. Once you give us indentation, these empty lines get in the way."

You mean like the empty lines in our comments/replies right now? I guess I could do that, but (judging from my mental images) it would only make real sense in combination with the "limit width" feature. An additional issue would be that there won't be ANY empty lines left. I'll have to browse the Prose Section a bit to check out how most authors hint at a scene change so I can somehow keep those linefeeds.

Very good suggestions, though. I'll toy with them and see what happens

👍: 0 ⏩: 1

danielzklein In reply to NekoDramon [2005-07-17 12:39:03 +0000 UTC]

I'll cook you up a simple CSS of what I think good prose formatting online should look like

👍: 0 ⏩: 0

nerdyglam [2005-07-16 22:49:08 +0000 UTC]



You rock and I love you. These features are amazingly cool.

👍: 0 ⏩: 0

zc456 [2005-07-16 13:17:37 +0000 UTC]

Oh this soo useful. Will download.

👍: 0 ⏩: 0

fyoot [2005-07-16 08:23:34 +0000 UTC]

Great. Thanks.

👍: 0 ⏩: 0

Keeps [2005-07-16 06:34:22 +0000 UTC]

OK, love it, love it.... Suggestion for the next incarnation.... make the linespacing reversable... to un-space the lines...

👍: 0 ⏩: 2

NekoDramon In reply to Keeps [2005-07-16 10:08:45 +0000 UTC]

Linespacing should already be reversable since it goes from normal to 1.5, from 1.5 to double, and from double back to normal.
I might try to somehow change the link text in the next version, though (so it tells you "1x -> 1.5x" or "2x -> 1x", for example).

Or did you mean to remove linespacing that that's already in the original?

Either way, I'm glad you like it!

👍: 0 ⏩: 0

Keeps In reply to Keeps [2005-07-16 06:36:12 +0000 UTC]

sorry, ONE more click lol, gahhhh I totaly missed it was cyclic lol

👍: 0 ⏩: 1

NekoDramon In reply to Keeps [2005-07-16 10:12:24 +0000 UTC]

Ack, didn't see that the issue was resolved already (only saw your initial reply in my Message Centre)
Alright, glad things worked out

👍: 0 ⏩: 0