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

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2021-04-10 20:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?