Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/694f5245-1110-800b-b182-7c2accd50046
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Assistant: 啊~老闆你看到這個很正常 😭 === 啊~老闆你看到這個很正常 😭 那個 shim.html 就是「外殼」:它本身不放遊戲碼,只負責接收 Gemini 透過 postMessage 丟進來的真正內容(HTML + JS)。所以你只看到 <iframe ... shim.html>,但遊戲本體其實是「後來被灌進 iframe 裡」的。 下面給你兩條最穩的採收路線(不用猜,照做就能把真正腳本抓出來)🛠️✨ ==== 1. 讓遊戲畫面跑起來(進到你看到房間/角色那一刻最好)。 ==== # 在遊戲畫面上 右鍵 → 檢查 (Inspect),DevTools 會跳出來。 # DevTools 右上角有時會顯示目前在 iframe(如果沒在 iframe): - DevTools 左上角「元素選取箭頭」點一下,再點遊戲畫面任意地方 - 或在 Console 旁邊的下拉選單選到那個 frame(通常會寫 shim.html) # 切到 Console,貼上這段(會把 iframe 目前頁面裡所有 script 全抓出來並複製到剪貼簿): <syntaxhighlight lang="js">copy( [...document.scripts].map((s,i)=> { const head = <code>\n\n/'' ===== script #${i} ===== src: ${s.src || "(inline)"} ===== ''/\n</code>; return head + (s.src ? <code>/'' external src only: ${s.src} ''/</code> : s.textContent); }).join("") ); </syntaxhighlight> # 回到記事本貼上,存成 game_dump.txt,丟回來給我 ✅ : ==== 1. DevTools → Sources ==== # 左邊檔案樹找: - blob: 開頭的檔 - 或 scf.usercontent.goog 網域底下的大檔 # 直接按 Ctrl+Shift+F(全域搜尋),搜你們一定有的關鍵字,例如: - generateRoom - RARE_WEAPONS - firePlayerWeapon - getWeaponStats - SECTOR # 一搜到命中,就點開那支檔案 → 全選 → 複製 → 貼給我 ✅ ==== 因為 shim 裡面會做這件事(概念上): ==== * 先載入一個空白/安全容器 * 等 Gemini 把真正的 HTML/JS 用訊息串流塞進來 * 所以「檢視原始碼」通常只會看到 shim,不會看到遊戲碼 ==== 在 Console 你也可以先列出有哪些 script: ==== <syntaxhighlight lang="js">[...document.scripts].map((s,i)=>({i, src:s.src, inline:!s.src, len:(s.textContent||"").length})) </syntaxhighlight> 找 len 最大的那個 i,再只 copy 那個: <syntaxhighlight lang="js">const i = 3; // 你剛剛看到最大的那個 index copy(document.scripts[i].textContent); </syntaxhighlight> 老闆你先用 路線A 試一次,通常一分鐘就採收成功🍓 你把 game_dump.txt(或直接貼一小段也行)丟回來,我就能幫你把被 ... 省略的全部還原、重新整理成「分頁腳本總表」那種可移植版本。
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)