Mc Tech Solutions

Detected Ad-Blocker

Please Turn off your adblocker to access Mc Tech Solutions.

Mc Tech Solutions
Join Us On Telegram To Get Latest Updates. Join now!

How to remove the URL? M = 1 on Blogger - Mc Tech Solutions

How to remove the URL? M = 1 on Blogger 

 How to eliminate the URL? M = 1 on the versatile showcase - When you visit a site (blogger stage) on a cellphone, attempt to focus on the location bar that has sections? M = 1, do you think you need to erase the content? Thusly the BloggerByte administrator sharing tips on eliminating? M = 1 in the Blogspot address bar and assist your blog with being proficient without influencing SEO.

Method 1

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

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);}

Method 2

1.Login into Blogger 
2.Slect Theme 
 3.Edit Html
 4.Find </body>
5. paste the give code  above </body>  tag
<script type='text/javascript'>
//<![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);
}
//]]>
</script>
Then Save the Theme

Thanks For Visiting , Have A Nice Day
 


إرسال تعليق

Copyrights © Mc Tech Solutions. All Rights Reserved. Distributed by Mc Tech Solutions