Smash
any webpage.هر صفحهای
را خرد کنید.
Click the toolbar icon and a little jetpack pilot drops onto your tab. Fly with WASD, aim with the mouse, and blow the page's words and images apart with five physics weapons.روی آیکون افزونه بزنید تا یک خلبان جتپک کوچک روی تب فرود بیاید. با WASD پرواز کنید، با ماوس نشانه بگیرید و کلمهها و تصویرهای صفحه را با پنج سلاح فیزیکی از هم بپاشید.
🖱️ Smashing needs a keyboard and mouse. Open this page on a computer to try it live.🖱️ برای خرد کردن کیبورد و ماوس لازم است. این صفحه را روی کامپیوتر باز کنید تا زنده امتحانش کنید.
Five weapons.
Two modes each.پنج سلاح.
هرکدام دو حالت.
Press 1 to 5 to switch weapons. Left click fires the main mode and right click the alternate. Try the number keys now: the cards respond.با کلیدهای ۱ تا ۵ سلاح را عوض کنید. کلیک چپ حالت اصلی و کلیک راست حالت دوم است. همین حالا کلیدهای عددی را بزنید؛ کارتها واکنش نشان میدهند.
Machine gunمسلسل
- Leftچپ
- Rapid fire of small roundsرگبار گلولههای کوچک
- Rightراست
- Slower, heavy slugs with double damageگلولهٔ سنگینتر و کندتر با آسیب دوبرابر
Gravityگرانش
- Leftچپ
- Pulls nearby pieces toward youتکههای نزدیک را به سمت شما میکشد
- Rightراست
- Pushes them awayآنها را دور میکند
Flamethrowerشعلهافکن
- Leftچپ
- Short-range stream of embersجریان کوتاهبرد اخگر
- Rightراست
- Fatter flamesشعلههای درشتتر
Laserلیزر
- Leftچپ
- Burns the first piece in its pathاولین تکهٔ مسیر را میسوزاند
- Rightراست
- Pierces every piece in the lineاز همهٔ تکههای خط عبور میکند
Black holeسیاهچاله
- Leftچپ
- Sucks everything in, then burstsهمهچیز را میبلعد و بعد میترکد
- Rightراست
- A smaller hole that repelsچالهای کوچکتر که پس میزند
Fly. Aim.
Wreck.پرواز. نشانه.
ویرانی.
- WASD / ←↑↓→Fly the jetpackپرواز با جتپک
- MouseAim; left/right click to fireنشانهگیری؛ کلیک چپ/راست برای شلیک
- 1 – 5Switch weaponتعویض سلاح
- SpaceDash toward the crosshairدش به سمت نشانه
- Shift + RRestart this pageشروع دوبارهٔ همین صفحه
- Shift + NJump to a random Wikipedia pageرفتن به یک صفحهٔ تصادفی ویکیپدیا
Real physics,
real page.فیزیک واقعی،
صفحهٔ واقعی.
Chopتکهتکه
Headings, paragraphs, links, list items, table cells and images on screen are cut into word-sized pieces that keep their font, colour and background, up to 320 of them.تیترها، پاراگرافها، لینکها، آیتمهای فهرست، خانههای جدول و تصویرهای روی صفحه به تکههایی به اندازهٔ کلمه بریده میشوند و فونت، رنگ و پسزمینهشان را نگه میدارند؛ تا ۳۲۰ تکه.
Simulateشبیهسازی
Each piece becomes a rigid body in matter.js with gravity, bounce and friction. Pieces take a few hits before breaking, and images are tougher.هر تکه در matter.js یک جسم صلب با گرانش، جهش و اصطکاک میشود. تکهها پیش از شکستن چند ضربه میخورند و تصویرها مقاومترند.
Resetبازگشت
Smash most of the page and a banner offers Restart or Keep going. It's purely visual: reload and the page is back. CSS background images aren't smashed.وقتی بیشتر صفحه خرد شد، بنری «شروع دوباره» یا «ادامه» پیشنهاد میدهد. همهچیز فقط ظاهری است: با بارگذاری دوباره صفحه برمیگردد. تصویرهای پسزمینهٔ CSS خرد نمیشوند.
Load it up.بارش کنید.
Not in the stores yet, so install from source. It takes about a minute.هنوز در فروشگاهها نیست؛ از سورس نصبش کنید. حدود یک دقیقه طول میکشد.
Chrome / Edge MV3
- Clone or download the repo.مخزن را کلون یا دانلود کنید.
- Open
chrome://extensionsoredge://extensions.chrome://extensionsیاedge://extensionsرا باز کنید. - Turn on Developer mode.Developer mode را روشن کنید.
- Load unpacked → pick the repo folder (its
manifest.jsonis the Chrome/Edge one) ordist/chrome.Load unpacked ← پوشهٔ مخزن (کهmanifest.jsonِ کروم/اج را دارد) یاdist/chromeرا انتخاب کنید.
git clone https://github.com/mrzroot/page-smash.gitFirefox 128+
- Build both packages:
bash scripts/pack.sh(needs Python 3).هر دو بسته را بسازید:bash scripts/pack.sh(پایتون ۳ لازم است). - Open
about:debugging#/runtime/this-firefox.about:debugging#/runtime/this-firefoxرا باز کنید. - Load Temporary Add-on →
dist/firefox/manifest.json.Load Temporary Add-on ←dist/firefox/manifest.json.
cd page-smash && bash scripts/pack.shThe script also writes ready-to-share page-smash-chrome.zip and page-smash-firefox.zip.اسکریپت فایلهای page-smash-chrome.zip و page-smash-firefox.zip را هم برای اشتراک میسازد.
Questions,
before impact.پرسشها،
پیش از برخورد.
Does it break the website?سایت را خراب میکند؟
No. It only rearranges what's drawn in your own tab. Nothing is sent or changed on the server, and a reload brings the page back.نه. فقط چیزی را که در تب خودتان کشیده شده جابهجا میکند. چیزی به سرور فرستاده یا در آن تغییر داده نمیشود و با بارگذاری دوباره صفحه برمیگردد.
Which pages can I smash?کدام صفحهها را میشود خرد کرد؟
Regular http and https pages. Browsers don't let extensions touch internal pages such as chrome:// or the extension stores.صفحههای معمولی http و https. مرورگرها اجازه نمیدهند افزونهها به صفحههای داخلی مثل chrome:// یا فروشگاه افزونه دست بزنند.
What permissions does it use?چه دسترسیهایی میگیرد؟
activeTab and scripting to start on the tab you click, and storage to remember a pending smash when you jump to a random page. No analytics and no network calls.activeTab و scripting برای شروع روی تبی که کلیک میکنید و storage برای به خاطر سپردن خرد کردنِ در انتظار هنگام رفتن به صفحهٔ تصادفی. بدون آنالیتیکس و بدون درخواست شبکه.
Why does Firefox forget it after a restart?چرا فایرفاکس بعد از ریاستارت فراموشش میکند؟
Unsigned add-ons load as temporary add-ons in release Firefox. Load it again from about:debugging after restarting.افزونههای امضانشده در نسخهٔ عادی فایرفاکس موقت بارگذاری میشوند. بعد از ریاستارت دوباره از about:debugging بارش کنید.
Is this Page Rage?این همان Page Rage است؟
No. The idea comes from "smash the page" toys, but Page Smash is original. It doesn't copy Page Rage's code, art or name and isn't affiliated with its maker.نه. ایده از بازیهای «خرد کردن صفحه» آمده، اما Page Smash اثر مستقلی است؛ کد، نقاشی و اسم Page Rage را کپی نمیکند و به سازندهاش وابسته نیست.
The “Smash this page” button runs the extension's real game.js and bundled matter.js 0.20 (MIT) right here. Press Esc or the red button to stop.دکمهٔ «همین صفحه را خرد کن» همان game.jsِ واقعی افزونه و matter.js نسخهٔ ۰٫۲۰ (MIT) را همینجا اجرا میکند. برای توقف Esc یا دکمهٔ قرمز را بزنید.