kg88987 Posted August 9, 2017 Share Posted August 9, 2017 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? Link to comment https://gtaforums.com/topic/893912-make-the-jump-to-page-easily-accessible/ Share on other sites More sharing options...
Parik Posted August 10, 2017 Share Posted August 10, 2017 (edited) If you don't like it ,change it. I've created a script to make it appear like thisUse 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); Edited August 12, 2017 by Parik RedDagger 1 Link to comment https://gtaforums.com/topic/893912-make-the-jump-to-page-easily-accessible/?do=findComment&comment=1069770203 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now