Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^2: Lightweight interface to cast votes? (Free Nodelet Hack)

by LanX (Cardinal)
on Sep 24, 2020 at 10:19 UTC ( #11122154=note: print w/replies, xml ) Need Help??

in reply to Re: Lightweight interface to cast votes? (Free Nodelet Hack)
in thread Lightweight interface to cast votes?

The DOM around the vote-radios and buttons changed recently, you'll need to update the JS to make it work again.

<script> //<!-- ( function (){ var button = document.getElementsByClassName('voteit')[0].firstChi +ld; var votes = document.getElementsByClassName('reputation'); for ( i in votes ) { el= votes[i]; if ( == "" ) { el.appendChild( button.cloneNode() ) } } })() // --> </script>

This nodelet hack is very handy trying to vote on longer (sub)threads - especially when visiting with a mobile browser°. No need to scroll to the button now.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

°) with a desktop browser you can still type RETURN to submit the form.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2021-05-12 23:44 GMT
Find Nodes?
    Voting Booth?
    Perl 7 will be out ...

    Results (134 votes). Check out past polls.