[personal profile] qvb posting in [community profile] style_system
Hi guys,

  I'm new to DW, moving from LJ. I would like to make some enhancements/tweaks to the system, to add some of the LJ features/tweaks.

I just started learning S2 and style system in DW, and I have a quick question - what is the best mechanism for adding some custom JavaScript to the DW pages?
I'm looking into options of using JavaScript to implement Repost feature, also maybe rework some of the pages to make them more modern and interactive.

Would appreciate any suggestions and info pointers.

Date: 2016-12-26 05:32 pm (UTC)
momijizukamori: A sleeping dreamsheep with a '<3' sign. It says 'Momiji' above it, and 'Styles' below it. (dreamsheep volunteer)
From: [personal profile] momijizukamori
You'll have to do it in a custom layout layer, I believe - I know for sure Javascript gets stripped out in wizard and theme layers as a security measure, but it may be allowed in layout layers? I don't really do much with Javascript so I may be wrong on that last point.

Date: 2016-12-26 06:12 pm (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
From: [personal profile] momijizukamori

You can do it here: http://www.dreamwidth.org/customize/advanced/layers down at the bottom of the page.

Date: 2016-12-27 07:24 am (UTC)
foxfirefey: A guy looking ridiculous by doing a fashionable posing with a mouse, slinging the cord over his shoulders. (geek)
From: [personal profile] foxfirefey
I'm pretty sure JS gets stripped out of anything that isn't a core layer or a layout layer that's been blessed by the system, for security reasons, though the HTML can be changed entirely.

Date: 2016-12-27 06:55 pm (UTC)
foxfirefey: A guy looking ridiculous by doing a fashionable posing with a mouse, slinging the cord over his shoulders. (geek)
From: [personal profile] foxfirefey
If it's adding features for yourself, then the easiest thing to do is to make a browser addon using Greasemonkey or whatnot, I think.

Date: 2016-12-27 08:57 pm (UTC)
From: [personal profile] casimirian
JSON is supported in other open source projects. I suggest looking into how you could contribute the feature on DW yourself.

Date: 2016-12-31 12:16 am (UTC)
From: [personal profile] casimirian
I don't know. I recommend saying hello on Freenode. Get signed up as a developer. Get a key to a hackspace. And then just start playing with the source.

Date: 2017-01-02 04:09 pm (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
From: [personal profile] momijizukamori
I believe [personal profile] allen has been working on an API rewrite, but I haven't checked in with him in a while to see where that's at. It's on my list of things I'd like to help get done, too, once I get finished with my current over-ambitious project.

You could make a post in [site community profile] dw_dev introducing yourself and asking about it, if you're interested in helping!

Date: 2017-01-09 04:21 pm (UTC)
ninetydegrees: Art: self-portrait (Default)
From: [personal profile] ninetydegrees
And here are the basics steps for getting started in development: http://wiki.dreamwidth.net/wiki/index.php/Dev_Getting_Started I think it'll give you an idea of how it works and let you see if you want to get involved, as well as some stuff to look at maybe. :)

https://dw-suggestions.dreamwidth.org might also tell you what features the community would like (and which ones have been rejected) that are also ones you want to develop.

Profile

Dreamwidth style system discussion

October 2025

S M T W T F S
   1 234
567891011
12131415161718
19202122232425
262728293031 

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 7th, 2026 10:00 pm
Powered by Dreamwidth Studios