Skip to content

Instantly share code, notes, and snippets.

@peter-hank
Created January 10, 2018 08:26
Show Gist options
  • Select an option

  • Save peter-hank/4049962c8ccd3abefa42e58bdd4a5266 to your computer and use it in GitHub Desktop.

Select an option

Save peter-hank/4049962c8ccd3abefa42e58bdd4a5266 to your computer and use it in GitHub Desktop.

Revisions

  1. peter-hank revised this gist Jan 10, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@
    // ==/UserScript==

    // submissions only
    //var divs = document.querySelectorAll('.thing .arrow.up.login-required');
    // var divs = document.querySelectorAll('.thing .arrow.up.login-required');

    var divs = document.querySelectorAll('.arrow.up.login-required');

  2. peter-hank created this gist Jan 10, 2018.
    17 changes: 17 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    // ==UserScript==
    // @name Reddit multi-upvote
    // @description Upvotes submissions and comments
    // @include https://www.reddit.com/r/url1*
    // @include https://www.reddit.com/r/url2*
    // @version 1
    // @grant none
    // ==/UserScript==

    // submissions only
    //var divs = document.querySelectorAll('.thing .arrow.up.login-required');

    var divs = document.querySelectorAll('.arrow.up.login-required');

    [].forEach.call(divs, function(div) {
    div.click();
    });