How to remove the URL? M = 1 on the mobile display |
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 HTMLStep 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 a Blog
How to remove the URL? M = 1 on the mobile display |
thank you and good luck.
All Credit Bloggerbyte
0 Comments: