Coder Social home page Coder Social logo

supervoter's Introduction

SuperVoter

Notices

How to open a terminal

  1. Use "WINDOWS + R" to open execute prompt

  2. Run "cmd" command to open a new terminal

How to change to a directory in the console

  1. Open a terminal

  2. Change to folder

cd C:\Folder

Prerequisites

Firefox

You need firefox to use this script.

Download the SuperVoter repository

Download SuperVoter and unzip.

Node.js

Download from Node.js and install.

NPM

  1. Open a new terminal

  2. Change to folder that contains the SuperVoter repository

cd C:\SuperVoter
  1. Execute npm install routine:
npm install

Protractor

Open terminal (or use the previous one) and execute:

npm install -g protractor
webdriver-manager update

Configure target url

  1. Open config.js (located in the SuperVoter repository) with a text editor

  2. Set url parameter (line 22)

From ...

params: {
  url: '',
  autoSubmit: false
}

... to:

params: {
  url: 'http://www.url.com',
  autoSubmit: false
}

Configure auto submit

The auto submit option is deactivated by default. To activate this option, you have to set the autoSubmit parameter to "true".

  1. Open config.js (located in the SuperVoter repository) with a text editor

  2. Set autoSubmit parameter (line 23)

auto submit deactivated (default):

params: {
  url: '...',
  autoSubmit: false
}

auto submit activated:

params: {
  url: '...',
  autoSubmit: true
}

Run

Create two terminals

You'll need two terminals, you can create them as described in the notices.

First terminal

  1. Run webdriver manager
webdriver-manager start

Second terminal

  1. Change to folder that contains the SuperVoter repository
cd C:\SuperVoter
  1. Run script
protractor config.js

To be reminded if you can run the script again add the reminder:

protractor config.js & node reminder.js
  1. Wait for captcha code popup

  2. Insert captcha code to text input field immediately

  3. [autoSubmit==false] Wait until "attributes set" / "submit form now" is written in the terminal console and submit the form manually

  4. [autoSubmit==true] Do nothing and relax ;-)

Notices:

  • You can repeat step 2 to 6 every ~5-8 minutes
  • You can use the arrow up/down keys to get the last called command (so you don't have to type the call of the script every time)

supervoter's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.