🌚

Davis' Notes

JavaScript Snippet: Open in New Window

<script type='text/javascript'>
    $('a').each(function() {
        var a = new RegExp('/' + window.location.host + '/');
        if(!a.test(this.href)) {
            $(this).attr("target", "_blank");
        }
    });
</script>

, — Aug 4, 2020

Logged by Davis with Hexo.js . Themed by Adi.