Download inject-fix.js from bep40/V.AISTUDIO: direct link, hf CLI and curl.
- Browser
- Download file 952 Bytes
-
https://huggingface.co/bep40/V.AISTUDIO/resolve/refs%2Fpr%2F21/inject-fix.js
- Command line
-
hf download hf://bep40/V.AISTUDIO@refs/pr/21/inject-fix.js
-
curl -L -o inject-fix.js https://huggingface.co/bep40/V.AISTUDIO/resolve/refs%2Fpr%2F21/inject-fix.js
952 Bytes
| /** | |
| * V.AI STUDIO - Excel Fix Injector | |
| * Tự động inject fix script khi trang load | |
| * | |
| * Cách dùng: Thêm <script src="inject-fix.js"></script> vào index.html | |
| */ | |
| (function(){ | |
| var f='vai-excel-fix-v2.js',l='vai-quote-excel-order-fix-v1050.js'; | |
| function chk(){return(typeof window.VAI_EXCEL_FIX!=='undefined')||document.querySelector('script[src*="vai-excel-fix"]');} | |
| function inj(){ | |
| if(chk()){console.log('[Injector] Fix loaded');return;} | |
| var s=document.createElement('script'); | |
| s.src='/'+f+'?v='+Date.now(); | |
| s.onload=function(){console.log('[Injector] Excel fix v2 active');}; | |
| s.onerror=function(){ | |
| console.warn('[Injector] v2 failed, fallback to legacy'); | |
| var ls=document.createElement('script'); | |
| ls.src='/'+l+'?v='+Date.now(); | |
| document.head.appendChild(ls); | |
| }; | |
| document.head.appendChild(s); | |
| } | |
| if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',inj);}else{inj();} | |
| setTimeout(inj,2e3);setTimeout(inj,5e3); | |
| })(); |