how to remove ?m=1 and ?m=0 in the blogger

    When you visit a website (blogger platform) on mobile, notice the address bar will have the paragraph ?m=1, have you ever thought in your mind how to delete this text? Today Blog Share Tips will share with you the procedure replace ?m=1 on Blogspot mobile address bar, help your blog display in a more professional way without affecting SEO,
    how to remove m 1 and m 0 in the blogger
    how to remove m 1 and m 0 in the blogger
    how to remove ?m=1 and ?m=0 in the blogger
    Implementation Steps

    Step 1: First go to the blogger admin page - Subject - edit HTML.

    Step 2: Ctrl + F find the

    </head> tag and paste the code below it.

    <script>/*<![CDATA[*/ var uri = window.location.toString(); if (uri.indexOf("%3D","%3D") > 0) { var clean_uri = uri.substring(0, uri.indexOf("%3D")); window.history.replaceState({}, document.title, clean_uri);} var uri = window.location.toString(); if (uri.indexOf("%3D%3D","%3D%3D") > 0) { var clean_uri = uri.substring(0, uri.indexOf("%3D%3D")); window.history.replaceState({}, document.title, clean_uri);} var uri = window.location.toString(); if (uri.indexOf("&m=1","&m=1") > 0) { var clean_uri = uri.substring(0, uri.indexOf("&m=1")); window.history.replaceState({}, document.title, clean_uri); } var uri = window.location.toString(); if (uri.indexOf("?m=1","?m=1") > 0) { var clean_uri = uri.substring(0, uri.indexOf("?m=1"));window.history.replaceState({}, document.title, clean_uri);}; var protocol=window.location.protocol.replace(/\:/g,''); if(protocol=='http'){ var url=window.location.href.replace('http','https'); window.location.replace(url);} /*]]>*/</script>
    Step 3: Save the topic and enjoy the results.

    The trick is that simple. Hope with this small trick will help your blog more professional, if you encounter any errors do not hesitate to comment below so everyone can help.

    9 comments:

    1. This comment has been removed by the author.

      ReplyDelete
    2. It says error parsing xml
      I think there is some mistake in code.

      ReplyDelete
    3. ok here's the result.
      It worked on android phone i.e google pixel in the following browsers: chrome, opera and firefox.

      It didn't work on iphone for chrome browser, but worked on iphone safari browser.

      ReplyDelete
    4. Grate !!!

      Thanks Dear Its Work

      ReplyDelete
    5. This comment has been removed by the author.

      ReplyDelete
    6. Please the when I entered it after trying to save they said error can u please give me the code again

      ReplyDelete
    7. Thank you for this great post. I hope your readers also going to like my technology and seo related blog proseotech.xyz

      ReplyDelete