Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Can I please have multiple downvotes per (certain monk's) posts.

by chacham (Prior)
on Jun 26, 2015 at 11:43 UTC ( [id://1132131]=note: print w/replies, xml ) Need Help??


in reply to Re: Can I please have multiple downvotes per (certain monk's) posts.
in thread Can I please have multiple downvotes per (certain monk's) posts.

Examine what is said, not who speaks

If that were the case, why aren't the voting option on bottom of the node? You know, so you click them after you read them. The score does indeed belong on top though; Score on top, votes on bottom.

  • Comment on Re^2: Can I please have multiple downvotes per (certain monk's) posts.

Replies are listed 'Best First'.
Re^3: Can I please have multiple downvotes per (certain monk's) posts.
by aaron_baugher (Curate) on Jun 26, 2015 at 12:31 UTC

    UPDATE: I've posted this, with changes and additions, as a meditation, so please see it there.

    If that were the case, why aren't the voting option on bottom of the node? You know, so you click them after you read them.

    They are in my browser, thanks to this bit of jQuery code that I insert into PM pages with a browser extension (you also need to insert a line of HTML to load jQuery itself). It's probably not the best code, as I understood very little Javascript when I wrote it; I've been meaning to clean it up and add a couple things, but it does work. (Note how I put sigils on my variables to make it feel more perl-y). It moves each reply's vote buttons to the bottom of that reply, and also sticks a Vote button next each set of +/- radio buttons, so I don't have to scroll to the bottom to find it. It doesn't move the buttons for the original post at the top; I guess that's one thing I should add.

    $(document).ready(function(){ jQuery('div.reputation center').append('<input style="margin-left:20 +px" type="submit" name="sexisgreat" value="vote!" />'); jQuery('td.reply-body').each(function(){ var $m = $(this).children().first(); var $t = $m.html(); if( $t.match(/reply/)){ return; } $m.remove(); $(this).append('<div class="reputation">'+$t+'</div>'); }); });

    Aaron B.
    Available for small or large Perl jobs and *nix system administration; see my home node.

      Cool. Which plugin do you use?

      But merely adding js code to each page is not something you need a plugin for; simply stick it in your Free Nodelet Settings (appropriately wrapped in HTML, of course). (And make sure your Free Nodelet is enabled.)

      I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.

        I'm using one for Chromium called Personalized Web. Good point about being able to put it in the Free Nodelet and not needing a browser extension. In my case, I was already using it to insert code (JS, HTML, or CSS) on several different sites, so it was a natural place to put it.

        I think this weekend I'll add a few more features I've had in mind, clean it up a bit, and post it as a meditation.

        Aaron B.
        Available for small or large Perl jobs and *nix system administration; see my home node.

      Interesting button name....

      I wonder if this can be turned into a Greasemonkey script. It'd also be a good Perl Monks Discussion.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1132131]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-19 18:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found