Save the Address bar file name a small tool with sequential pictures or web pages

Source: Internet
Author: User

How to use:

Paste the code into the console, then enter, and a button will appear in the upper-left corner to switch to the next page by clicking the button. Although the method may be low, but I really do not want to change the address bar that number, too bad choice.

function last () {    var href=window.location.href;    var line=href.lastindexof ('/');    var dot=href.lastindexof ('. ');    var con=href.slice (0,line+1);    var last=href.slice (dot);    var num=href.slice (Line+1,dot)/1+1;    Console.log (con+num+last);    Window.location.href=con+num+last;} function Appchild () {    var btn = document.createelement ("input");//js new element    Btn.onclick = last;//Add a click event to an element    btn.setattribute ("type", "button");//element plus attribute    btn.setattribute ("value", "next");//Add attribute    to Element btn.style.position = "fixed";//js set style    btn.style.top = "20px";//js set style    Btn.style.left = "20px";//js set style    btn.style.width= "100px";//js set style    btn.style.height = "30px";//js set style    btn.style.fontSize = "20px";// JS Set style    Btn.style.color = "Red";//js set style    btn.style.fontWeight = "bold";//js set style    Document.body.appendChild (BTN);//Put the element into the body tag inside the}appchild ();

Save the Address bar file name a small tool with sequential pictures or web pages

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.