Quantcast

Jump to content

» «
Photo

Make the jump to page easily accessible.

1 reply to this topic
korygiles
  • korygiles

    After 5 years on the East Coast, it was time to go home

  • Members
  • Joined: 29 Apr 2017
  • United-States

#1

Posted 09 August 2017 - 09:20 AM

I don't like how we have to click on the "Page 1 of 10" text to bring it up. Can we at least make it more accessible so it isn't too hard to remember about clicking the text?


Parik
  • Parik

    Transform

  • Members
  • Joined: 03 Dec 2012
  • Olympics

#2

Posted 10 August 2017 - 03:37 PM Edited by Parik, 12 August 2017 - 05:06 AM.

If you don't like it ,change it. I've created a script to make it appear like this
zMi5UEU.png
 
Use Greasemonkey to apply it, create a new script and paste this there.

// ==UserScript==
// @name        gtaforums_pages
// @namespace   parik27oc
// @include     http://gtaforums.com/*
// @version     1
// @grant       none
// ==/UserScript==

window.addEventListener('load', function() {

    var page_indicator_element = document.getElementById("anonymous_element_1").children[0];
    
    var totalPages  = parseInt(page_indicator_element.innerHTML.split(" ")[3]);
    var currentPage = parseInt(page_indicator_element.innerHTML.split(" ")[1]);
    
    var element = document.getElementById("anonymous_element_1").parentElement;

    //Getting the current page.
    var page = window.location.href + "page-";
    if(~window.location.href.indexOf("page")){
	page = window.location.href.substring(0,window.location.href.indexOf("page") + 5);
    }

    //Removing Current Pages.
    while(element.children.length != 1){
	element.removeChild(element.children[1]);
    }
    
    for(i = 1; i <= totalPages; ++i)
    {
	if(i != currentPage){
            element.innerHTML = element.innerHTML + '<li class="page"><a href="' + page + i + '" title="' + i + '">' + i + '</a></li>';
	}
	else{
            element.innerHTML = element.innerHTML + '<li class="page active">' + i + '</li>';
        }
    }
}, false);

  • RedDagger likes this




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users