Dmitry Rubinstein

Vox-cut announcement

Comments

Interesting idea, but I can only see limited use to this script. In order for someone to see the post as having a cut, they have to have Greasemonkey and the script installed, otherwise it just appears to have the <cut> and </cut> tags around the text (which is probably confusing to someone who doesn't understand why they are there). It seems like it might be better to work off of existing html tags to develop the cut boundaries - for example, set the posting guidelines for someone to create a cut as:

Text

<hr>

Cut text

<hr>

And then have the script turn everything between the horizontal rules into a cut. That way, if someone has GM and the script installed, they see it as a cut. If they don't, they just see the separators, which isn't quite as ungainly as raw tags in a post.

The problem is that those who don't have GM installed, won't see it as a separator - rather, they'll see it as HTML, since Vox does a thorough job of sanitizing away any HTML (if you look at the script, you'll notice it is looking for an escaped &lt; character in the sequence denoting the beginning of the cut).

It's all a temp hack anyway, designed with the (relatively) tightly knit ex-ljers bunch in mind, so I don't see that much of a problem here :)
When I said separator, I meant the horizontal line created by Vox processing a <hr> tag (in the page source in Vox, this ends up being <hr />).

So if the script was doing a regular expression to place the text between two <hr> tags in a cut, it would show it as the cut. For anyone without the script installed, it would show the text between two horizontal rules.

For example, here's a sample page source from the div class="asset-body preview-links" in a test post I just made:

<p>This is text before the cut</p><hr /><p></p><p>Stuff here</p><p>Stuff</p><p>More Stuff</p><hr /><p><br /> </p>

You could then do a regular expression and take everything between the two <hr /> tags to put in the cut, much like you do with the vox-cut tag.

Probably not worth changing now - if I thought there was a bigger GM presence out there, I would put together something like this and urge readers to install it so I could enhance some of my blog posts. But you're right - this is probably meant more for those folks that know what they're doing and want to get back some functionality that's not available over here.

Post a comment

Already a Vox member? Sign in

Advertisement