How To Remove ?m=1 From Blogger Blog By HTML Code
- Log In to blogger.
- After that click on Layout from the blog dashboard.
- Then click on + add a gadget.
- Now click on HTML/JavaScript in the page that opens.
- Now copy and paste the given html code in it, ?m=1 will be removed from your blog URL
<script>
document.addEventListener("DOMContentLoaded", function() {
var url = window.location.href;
if (url.indexOf('?m=1') > -1) {
var cleanUrl = url.replace('?m=1', '');
window.history.replaceState(null, '', cleanUrl);
} else if (url.indexOf('&m=1') > -1) {
var cleanUrl = url.replace('&m=1', '');
window.history.replaceState(null, '', cleanUrl);
}
});
</script>
- Now save the HTML/JavaScript gadget.
- Now lastly Save the Layout settings.
Comments
Post a Comment