Update code Simple SafeLink v3

First post : Cara Simple Membuat Blogger Safelink Converter 2017 100% Work
Cara Simple Membuat Blogger Safelink Converter 2017 100% Work


function safelink(){
var safelinkpage = ['https://web-manajemen.blogspot.com/p/redirect.html?u=','https://web-manajemen.blogspot.com/p/a.html?u='];
var safelink = safelinkpage[Math.floor(Math.random() * safelinkpage.length)] + encodeURIComponent( 'http://linkshrink.net/zslz=' );
var protectedLinks = '/(web-manajemen.blogspot.com|facebook.com|fb.me|bing.com|www.google.com|plus.google.com)/';
var anchors = document.getElementsByTagName("a");
for (var i = 0; i < anchors.length; i++) {
var intl = anchors[i];
if ( !intl.href.match( protectedLinks ) ) {
intl.href = safelink + encodeURIComponent( intl.href );
if (intl.hasAttribute("target")){
intl.removeAttribute("target");
}
intl.setAttribute("target", "_blank");
}
}
}
document.onreadystatechange = () => {
if (document.readyState === 'interactive') {
safelink();
}
};