Skip to content

Instantly share code, notes, and snippets.

@akaydev-coder
Forked from r14c/README.md
Created December 31, 2022 10:33
Show Gist options
  • Save akaydev-coder/99277fe655c0bc6ec6f6259a1dbf9602 to your computer and use it in GitHub Desktop.
Save akaydev-coder/99277fe655c0bc6ec6f6259a1dbf9602 to your computer and use it in GitHub Desktop.

Revisions

  1. Romina Killpack revised this gist Aug 28, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    ## autoscroll

    This script requires a user script manager like [Greasemonkey] or [Tampermonkey].
    This script requires a userscript manager like [Greasemonkey] or [Tampermonkey].

    Click "Raw" to install.

  2. Romina Killpack revised this gist Aug 28, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    ## autoscroll

    This script requires a user script manager like [Greasemokey] or [Tampermonkey].
    This script requires a user script manager like [Greasemonkey] or [Tampermonkey].

    Click "Raw" to install.

  3. Romina Killpack revised this gist Aug 28, 2016. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    ## autoscroll

    This script requires a user script manager like [Greasemokey] or [Tampermonkey].

    Click "Raw" to install.

    [Greasemonkey]: https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/
    [Tampermonkey]: https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo
  4. Romina Killpack revised this gist Aug 28, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion autoscroll.user.js
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    // @namespace https://github.com/tokyo-jesus/
    // @description Scrolls the page automatically
    // @include http*://*
    // @version 2.0
    // @version 2.0.1
    // @grant GM_registerMenuCommand
    // ==/UserScript==

  5. Romina Killpack revised this gist Aug 28, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion autoscroll.user.js
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@
    // @grant GM_registerMenuCommand
    // ==/UserScript==

    GM_registerMenuCommand("Enable Autoscroll", function () {
    GM_registerMenuCommand("Autoscroll", function () {
    var speed = Number(prompt("Select speed (10 fast, 2000 slow; -1 to cancel)", "100"));
    var scroll = function () {
    if (speed > -1) {
  6. Romina Killpack revised this gist Aug 28, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions autoscroll.user.js
    Original file line number Diff line number Diff line change
    @@ -8,9 +8,9 @@
    // ==/UserScript==

    GM_registerMenuCommand("Enable Autoscroll", function () {
    var speed = prompt("Select speed (10 fast, 2000 slow; -1 to cancel)", "100");
    var speed = Number(prompt("Select speed (10 fast, 2000 slow; -1 to cancel)", "100"));
    var scroll = function () {
    if speed > -1 {
    if (speed > -1) {
    window.scrollBy(0 , 1);
    setTimeout(scroll, speed);
    }
  7. Romina Killpack revised this gist Aug 28, 2016. 1 changed file with 9 additions and 13 deletions.
    22 changes: 9 additions & 13 deletions autoscroll.user.js
    Original file line number Diff line number Diff line change
    @@ -3,21 +3,17 @@
    // @namespace https://github.com/tokyo-jesus/
    // @description Scrolls the page automatically
    // @include http*://*
    // @version 1.0
    // @version 2.0
    // @grant GM_registerMenuCommand
    // ==/UserScript==

    var interval;

    GM_registerMenuCommand("Enable Autoscroll", function () {
    var speed = prompt("Select speed (10 fast, 2000 slow)", "100");
    interval = setInterval(function () {
    window.scrollBy(0 , 1);
    }, speed);
    });

    GM_registerMenuCommand("Disable Autoscroll", function () {
    try {
    clearInterval(interval);
    } catch () {}
    var speed = prompt("Select speed (10 fast, 2000 slow; -1 to cancel)", "100");
    var scroll = function () {
    if speed > -1 {
    window.scrollBy(0 , 1);
    setTimeout(scroll, speed);
    }
    };
    setTimeout(scroll, speed);
    });
  8. Romina Killpack revised this gist Aug 28, 2016. 1 changed file with 10 additions and 4 deletions.
    14 changes: 10 additions & 4 deletions autoscroll.user.js
    Original file line number Diff line number Diff line change
    @@ -7,11 +7,17 @@
    // @grant GM_registerMenuCommand
    // ==/UserScript==

    var interval;

    GM_registerMenuCommand("Enable Autoscroll", function () {
    var speed = prompt("Select speed (10 fast, 2000 slow)", "100");
    var scroll = function () {
    interval = setInterval(function () {
    window.scrollBy(0 , 1);
    setTimeout(scroll, speed);
    };
    setTimeout(scroll, speed);
    }, speed);
    });

    GM_registerMenuCommand("Disable Autoscroll", function () {
    try {
    clearInterval(interval);
    } catch () {}
    });
  9. Romina Killpack revised this gist Aug 28, 2016. 1 changed file with 6 additions and 5 deletions.
    11 changes: 6 additions & 5 deletions autoscroll.user.js
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,10 @@
    // ==UserScript==
    // @name Autoscroll
    // @namespace https://github.com/tokyo-jesus/
    // @description Scrolls the page automatically
    // @include http*://*
    // @version 1.0
    // @name Autoscroll
    // @namespace https://github.com/tokyo-jesus/
    // @description Scrolls the page automatically
    // @include http*://*
    // @version 1.0
    // @grant GM_registerMenuCommand
    // ==/UserScript==

    GM_registerMenuCommand("Enable Autoscroll", function () {
  10. Romina Killpack revised this gist Aug 28, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion autoscroll.user.js
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@
    // @version 1.0
    // ==/UserScript==

    GM_registerMenuCommand("Autoscroll", function () {
    GM_registerMenuCommand("Enable Autoscroll", function () {
    var speed = prompt("Select speed (10 fast, 2000 slow)", "100");
    var scroll = function () {
    window.scrollBy(0 , 1);
  11. Romina Killpack revised this gist Aug 28, 2016. 1 changed file with 6 additions and 12 deletions.
    18 changes: 6 additions & 12 deletions autoscroll.user.js
    Original file line number Diff line number Diff line change
    @@ -6,17 +6,11 @@
    // @version 1.0
    // ==/UserScript==

    var interval;

    GM_registerMenuCommand("Start Autoscroll", function () {
    GM_registerMenuCommand("Autoscroll", function () {
    var speed = prompt("Select speed (10 fast, 2000 slow)", "100");
    interval = setInterval(function () {
    window.scrollBy(0, 1);
    }, speed);
    });

    GM_registerMenuCommand("Stop Autoscroll", function () {
    try {
    clearInterval(interval);
    } catch () {}
    var scroll = function () {
    window.scrollBy(0 , 1);
    setTimeout(scroll, speed);
    };
    setTimeout(scroll, speed);
    });
  12. Romina Killpack revised this gist Aug 28, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion autoscroll.user.js
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@
    var interval;

    GM_registerMenuCommand("Start Autoscroll", function () {
    var speed = prompt("Select speed (10 fast, 2000 slow)", "100");
    var speed = prompt("Select speed (10 fast, 2000 slow)", "100");
    interval = setInterval(function () {
    window.scrollBy(0, 1);
    }, speed);
  13. Romina Killpack revised this gist Aug 28, 2016. No changes.
  14. Romina Killpack revised this gist Aug 28, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion autoscroll.user.js
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    // ==UserScript==
    // @name Autoscroll
    // @namespace https://gist.github.com/
    // @namespace https://github.com/tokyo-jesus/
    // @description Scrolls the page automatically
    // @include http*://*
    // @version 1.0
  15. Romina Killpack created this gist Aug 28, 2016.
    22 changes: 22 additions & 0 deletions autoscroll.user.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    // ==UserScript==
    // @name Autoscroll
    // @namespace https://gist.github.com/
    // @description Scrolls the page automatically
    // @include http*://*
    // @version 1.0
    // ==/UserScript==

    var interval;

    GM_registerMenuCommand("Start Autoscroll", function () {
    var speed = prompt("Select speed (10 fast, 2000 slow)", "100");
    interval = setInterval(function () {
    window.scrollBy(0, 1);
    }, speed);
    });

    GM_registerMenuCommand("Stop Autoscroll", function () {
    try {
    clearInterval(interval);
    } catch () {}
    });