How to remove the code M=1 and M=0 at the Blog URL

1 min read
How to remove the code M=1 and M=0 At the Blog URL suffix. 
Hello friend, on this occasion TopBlog Pk will share a blogger tutorial that focuses on removing m = 1 and m = 0 at the end of the blog url, for example like this.

https://topblogpk.blogspot.com/?m=1

https://tooblogpk.blogspot.com/?m=0


Remove m=1 & m=0 from Blog URL

🔹Code m = 1 appears, indicating that you are opening a website or blog using a mobile device (Android / iOS).
🔹Conversely, the code m = 0 appears when we use a computer or laptop. However, this rarely happens.

Interested in removing the two codes? If interested, just refer to the tutorial below.

How to remove codes M = 1 and M = 0

1. Enter into your Blogger Dashboard.
2. Enter the menu Go to Layout and add Widget.
3. Select the HTML / JavaScript Widget, then copy the code below in it.
<script type='text/javascript'> 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); } </script>

4. Finall,  Save. 

Closing ❗ Thank you for taking the time to read the article entitled How to Eliminate Code M = 1 and M = 0 at the Blog URL suffix , and hopefully this article is useful for all of you.

You may like these posts

Post a Comment