// ==UserScript==
// @name         Views Group Control
// @namespace    http://vern.com/
// @version      0.1
// @description  Quickly move back and forth between View groups
// @author       Vern Hart
// @match        https://www.flickr.com/groups/views*
// @grant        none
// ==/UserScript==


function parseLocation(url, inc) {
    var counts = [
        25, 50, 75, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000,
        1250, 1500, 1750, 2000, 3000, 4000, 5000, 10000, 25000, 50000,
        100000, 200000, 300000, 400000, 500000, 750000, 1000000,
        2000000, 3000000, 4000000, 5000000, 6000000, 7000000
    ];

    numstart = url.indexOf('views') + 5;
    numend = url.indexOf('/', numstart);
    endofurl = url.substring(numend, url.length);
    if (numend < 0) {
        numend = url.length;
        endofurl = '';
    }
    count = parseInt(url.substring(numstart, numend));
    newindex = counts.indexOf(count) + inc;
    if ((newindex < 0) || (newindex >= counts.length)) {
        return '';
    }
    return url.substring(0,numstart) + counts[newindex] + endofurl;
}

function setPrevNext() {
    var prev = parseLocation(location.href,-1);
    var next = parseLocation(location.href,1);

    var menu = document.getElementsByClassName('nav-menu');
    if (menu.length <= 0) {
        menu = document.getElementsByClassName('top-nav');
    }

    var li = document.createElement('li');

    var a;
    if (prev.length > 0) {
        a = document.createElement('a');
        a.appendChild(document.createTextNode('<<< '));
        a.href = prev;
        a.onclick = function() { setTimeout(function(){ checkPrevNext(); }, 1000);};
        a.setAttribute('class', 'gn-title gn-link');
    } else {
        a = document.createTextNode('<<< ');
    }
    a.id = "myPrevLink";
    li.appendChild(a);
    if (next.length > 0) {
        a = document.createElement('a');
        a.appendChild(document.createTextNode(' >>>'));
        a.href = next;
        a.onclick = function() { setTimeout(function(){ checkPrevNext(); }, 1000);};
        a.setAttribute('class', 'gn-title gn-link');
    } else {
        a = document.createTextNode(' >>>');
    }
    a.id = "myNextLink";
    li.appendChild(a);
    menu[0].appendChild(li);
}

function checkPrevNext() {
    if ((document.getElementById("myPrevLink") === null) && (document.getElementById("myNextLink") === null)) {
        setPrevNext();
    }
    setTimeout(function(){ checkPrevNext(); }, 5000);
}

(function() {
    'use strict';

    window.onload = checkPrevNext();
})();

@@ -613,16 +613,25 @@
  7000000
+, 8000000
 %0A    %5D;%0A

add 8 million views group to greasemonkey script