Why do used to?

Momenul Ahmad - Aug 26 - - Dev Community
<script type='text/javascript'>
//<![CDATA[
var uri = window.location.toString();
if (uri.indexOf("/" + new Date().getFullYear() + "/", "/")) {
    var clean_uri = uri.replace("/" + new Date().getFullYear() + "/", "/");
    window.history.replaceState({}, document.title, clean_uri);
}
if (uri.indexOf("/" + new Date().getFullYear() + "/1/", "/")) {
    var clean_uri = uri.replace("/" + new Date().getFullYear() + "/1/", "/");
    window.history.replaceState({}, document.title, clean_uri);
}
if (uri.indexOf("/" + new Date().getFullYear() + "/12/", "/")) {
    var clean_uri = uri.replace("/" + new Date().getFullYear() + "/12/", "/");
    window.history.replaceState({}, document.title, clean_uri);
}
if (uri.indexOf("/" + new Date().getFullYear() + "/11/", "/")) {
    var clean_uri = uri.replace("/" + new Date().getFullYear() + "/11/", "/");
    window.history.replaceState({}, document.title, clean_uri);
}
if (uri.indexOf("/" + new Date().getFullYear() + "/10/", "/")) {
    var clean_uri = uri.replace("/" + new Date().getFullYear() + "/10/", "/");
    window.history.replaceState({}, document.title, clean_uri);
}
if (uri.indexOf("/" + new Date().getFullYear() + "/9/", "/")) {
    var clean_uri = uri.replace("/" + new Date().getFullYear() + "/9/", "/");
    window.history.replaceState({}, document.title, clean_uri);
}
if (uri.indexOf("/" + new Date().getFullYear() + "/8/", "/")) {
    var clean_uri = uri.replace("/" + new Date().getFullYear() + "/8/", "/");
    window.history.replaceState({}, document.title, clean_uri);
}
if (uri.indexOf("/" + new Date().getFullYear() + "/7/", "/")) {
    var clean_uri = uri.replace("/" + new Date().getFullYear() + "/7/", "/");
    window.history.replaceState({}, document.title, clean_uri);
}
if (uri.indexOf("/" + new Date().getFullYear() + "/6/", "/")) {
    var clean_uri = uri.replace("/" + new Date().getFullYear() + "/6/", "/");
    window.history.replaceState({}, document.title, clean_uri);
}
if (uri.indexOf("/" + new Date().getFullYear() + "/5/", "/")) {
    var clean_uri = uri.replace("/" + new Date().getFullYear() + "/5/", "/");
    window.history.replaceState({}, document.title, clean_uri);
}
if (uri.indexOf("/" + new Date().getFullYear() + "/4/", "/")) {
    var clean_uri = uri.replace("/" + new Date().getFullYear() + "/4/", "/");
    window.history.replaceState({}, document.title, clean_uri);
}
if (uri.indexOf("/" + new Date().getFullYear() + "/3/", "/")) {
    var clean_uri = uri.replace("/" + new Date().getFullYear() + "/3/", "/");
    window.history.replaceState({}, document.title, clean_uri);
}
if (uri.indexOf("/" + new Date().getFullYear() + "/2/", "/")) {
    var clean_uri = uri.replace("/" + new Date().getFullYear() + "/2/", "/");
    window.history.replaceState({}, document.title, clean_uri);
}

//]]>
</script>
Enter fullscreen mode Exit fullscreen mode
. . . . . . . . . . . . . . . . . . . . .
Terabox Video Player