Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by LanX (Saint)
on Sep 24, 2020 at 10:19 UTC ( [id://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.id == "" ) { 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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-25 05:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found