YouTube spf remove fix
This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/13740/85750/Youtube%20Link%20Fix%20for%20addonsscripts.js
window.addEventListener("load", convertMyLinks($('a[class*="spf-link"]')), false); if(document.readyState == "complete"){ convertMyLinks($('a[class*="spf-link"]')); } function convertMyLinks(elemArray) { for (i = 0; i < elemArray.length; i += 1) { $(elemArray[i]).attr("href", elemArray[i].href).removeAttr('data-sessionlink').removeAttr('rel').attr('class', $(elemArray[i]).attr('class').split(" spf-link ")[0]); } }