1// SNS ã·ã§ã¢ãªã³ã¯ã®ãããã¢ãã表示 2// CSP enforce ã®ãã footer ã® onclick 屿§ããå¤é¨ãã¡ã¤ã«åã 3// 対象㯠.sns-link å ã®ãªã³ã¯ã§ãdata-share-window ã«ã¦ã£ã³ãã¦åãæã¤ãã®ã 4document.addEventListener('DOMContentLoaded', function () { 5 var links = document.querySelectorAll('.sns-link a[data-share-window]'); 6 Array.prototype.forEach.call(links, function (link) { 7 link.addEventListener('click', function (event) { 8 event.preventDefault(); 9 var url = encodeURI(decodeURI(this.href)); 10 var name = this.getAttribute('data-share-window'); 11 window.open(url, name, 'width=650,height=450,menubar=no,toolbar=no,personalbar=no,scrollbars=yes,resizable=yes'); 12 }); 13 }); 14});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.