How to remove the URL? M = 1 on the mobile display

How to remove the code m = 1 on the Blogspot URL

BloggerByte - How to remove the URL? M = 1 on the mobile display - When you visit a website (blogger platform) on a cellphone, try to pay attention to the address bar that has paragraphs? M = 1, do you think you want to delete the text? Therefore the BloggerByte admin sharing tips on removing? M = 1 in the Blogspot address bar and help your blog be more professional without affecting SEO.

How to Know the Number of Articles or Blog Posts for Others

How to remove the code m = 1 on the Blogspot URL

Step 1: First You have to go to the Blogger admin page > Themes> Edit HTML
Step 2
: Ctrl + F and look for the
 </head>
tag, then Paste the Script code below before the
</head>
tag
<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: Click " Save " and see the results
If you have a problem with saving template go to Parse HTML  and put the above code in the box, then follow steps 1 to 3 again.
Here is the Example of BloggerByte Blog
How to remove the URL? M = 1 on the mobile display

Update -

Recently We have Seen The script used by jagodesign blog, it can Reduce Javascript Length, so here is the script -

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);}
That's all about  How to remove the URL? M = 1 on the mobile display, Hopefully, the above article is useful to you.
thank you and good luck.

About the Author

“Hustle in silence and let your success make the noise.”

Post a Comment

Check the "Notify me" box to get an email notification if someone replies to a comment.
Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.