Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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 ( #1132142=note: print w/replies, xml ) Need Help??


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

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.

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

Replies are listed 'Best First'.
Re^4: Can I please have multiple downvotes per (certain monk's) posts.
by jdporter (Canon) on Jun 26, 2015 at 20:02 UTC

    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.

Re^4: Can I please have multiple downvotes per (certain monk's) posts.
by chacham (Prior) on Jun 26, 2015 at 13:22 UTC

    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
Node Status?
node history
Node Type: note [id://1132142]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2020-05-29 17:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (170 votes). Check out past polls.

    Notices?