Gaming JavaScript auto-submit

LittleBigMods

Well-Known Member
OP
Member
Joined
Dec 28, 2009
Messages
175
Trophies
0
Website
www.littlebigmods.net
XP
67
Country
United States
I'm trying to add a small query to the end of the url: "http://www.easypolls...634b0e4414d107e" to automatically check and submit "Option 5" (value="4").

I've tried editing the source html, but I know that's only local, and that I would need to upload an edited page to a host for others to see the changes.

When I do that, however, I lose references to the root of the website, "www.easypolls.net".

Here's what I came up with after editing the source:
Code:
    Poll - EasyPolls.net var jQueryTags="%3Cscript type='text/javascript' src='http"+(location.protocol==='https:'?'s':'')+"://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js\'>%3C/script%3E"+"%3Cscript type='text/javascript' src='http"+(location.protocol==='https:'?'s':'')+"://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js\'>%3C/script%3E";document.write(unescape(jQueryTags));  var $opj=window.jQuery;function ZOPP(name){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(window.location.href);if(results==null)return "";else return results[1];};$(function(){var OPP_BASEURL=window.location.href;var OPP_pollId=ZOPP("p");OPP_BASEURL=OPP_BASEURL.substring(0,OPP_BASEURL.indexOf(".html"))+"?jsoncallback=?";var params={command:"getPoll",pollId:OPP_pollId};$.getJSON(OPP_BASEURL,params,function(data){if(data.resultCode=="0"){if(data.rtlEnabled)$("html").attr("dir","rtl");eval("data.style = "+data.styleString);$(".OPP-poll-content").attr("id","OPP-poll-id-"+data.pollId).data("OPP_BASEURL",OPP_BASEURL).pollOPP('init',{poll:data});}else{$(".OPP-poll-content").html("Poll is not available.");}});});   	   Thanks for VotingVotevote
You need to edit the html of the original page "http://www.easypolls...634b0e4414d107e" using your web browser to see it.
Clicking the vote button will vote for "Option 5"

How can I add a JavaScript query to the address to automatically vote for Option 5 when the original page loads, or edit the page to allow the submit button to work when hosted on a different server?

Thanks,
-LBM
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Psionic Roshambo @ Psionic Roshambo:
    That Dell data breach is worse than people probably realize....
  • Psionic Roshambo @ Psionic Roshambo:
    When I worked for Dell we had access to data about military contracts and addresses for high ranking people.
  • Psionic Roshambo @ Psionic Roshambo:
    I personally handled a call from the second highest person at Raytheon. That call bothered me a lot... The guy was nice and smart what bothered me was the way management basically just blew him off instead of going the extra mile to help him.
  • Psionic Roshambo @ Psionic Roshambo:
    In the end that call ended up costing Dell millions in lost contracts with Raytheon, and really the issue could have been solved for like 450 bucks lol
  • NinStar @ NinStar:
    sometimes I wonder why anyone would ever buy mega man x legacy collection 2
  • NinStar @ NinStar:
    I always thought that capcom shuffled the games in these collection, but apparently they are all in chronological order, which makes legacy collection 2 worthless
  • BakerMan @ BakerMan:
    guys, i want to start singing pirate metal songs and sea shanties if i play sea of thieves
  • The Real Jdbye @ The Real Jdbye:
    find a pirate metal playlist
    +2
  • The Real Jdbye @ The Real Jdbye:
    and sing along
  • BakerMan @ BakerMan:
    nevermind i just learned swearing is against the rules in sea of thieves

    i was about to start singing the song i last put in "what song are you currently listening to" yesterday
  • BakerMan @ BakerMan:
    but yeah ig so
  • The Real Jdbye @ The Real Jdbye:
    swearing not allowed in a pirate game? what has the world come to
  • BakerMan @ BakerMan:
    (here's the song for context)
  • BigOnYa @ BigOnYa:
    Just add -izle to the end of every curse word, you will be fine.
    +2
  • The Real Jdbye @ The Real Jdbye:
    i like alestorm
    +1
  • The Real Jdbye @ The Real Jdbye:
    @BigOnYa too many syllables
    +1
  • BakerMan @ BakerMan:
    same lmao
  • BigOnYa @ BigOnYa:
    hi, welcome to the Temp!
    +1
  • BakerMan @ BakerMan:
    Welcome to the Underground!
    +1
  • BakerMan @ BakerMan:
    the booty boogie from (once again) the donkey kong country cartoon could also be a good song to sing while playing sea of thieves
  • BigOnYa @ BigOnYa:
    Please insert 25 cents for an additional 30 minutes of talk time.
    +2
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/watch?v=tG7fk_DUz5g +1