The Revolution Will Be Browser-Based: Introducing the WebCommunist Firefox Add-on / A Forradalom Nem Vár: Bemutatkozik a WebCommunist Firefox Kiegészítő
The Revolution Will Be Browser-Based: Introducing the WebCommunist Firefox Add-on
Have
you ever forgotten a key date in revolutionary history? In the hustle
and bustle of daily life, even the most dedicated among us can lose
track of the pivotal moments of the workers' movement. But now,
technology is here to help keep the revolutionary spirit alive!
We
are proud to introduce the **WebCommunist** Firefox add-on, a small yet
powerful tool that ensures you'll never miss an important commemoration
again.
**Install with one click:**
[https://addons.mozilla.org/en-US/firefox/addon/webcommunist/](https://addons.mozilla.org/en-US/firefox/addon/webcommunist/)
#### What Does WebCommunist Do? The Features
The
add-on’s logic is simple but effective. On over 40 key dates from the
history of communist and workers' movements worldwide, precisely at
**15:15 (3:15 PM)**, the following happens:
1. **The
Internationale Plays:** The revolutionary anthem automatically starts
playing in your browser, signaling that today is no ordinary day.
2.
**Context is Provided:** Simultaneously, the add-on opens a new browser
tab with the Wikipedia page for the specific event or figure. This way,
you not only remember but also get to refresh your knowledge about
Marx's birthday, the Paris Commune, or the triumph of the Cuban
Revolution.
The list is truly global, covering everything from
classic European events to important dates in the movements of Vietnam,
Cuba, Chile, and Africa.
#### The Code of Revolution: A Look at How It's Made
Creating
a browser add-on might seem like a mystical art to some, but the
fundamentals are surprisingly straightforward. WebCommunist is built on
three core components:
1. **`manifest.json` (The ID Card):**
This file tells Firefox the add-on's name, what permissions it needs (in
our case, managing alarms and opening new tabs), and which icon to use.
It also declares that the add-on collects no user data, ensuring your
privacy.
2. **`background.js` (The Brain):** This JavaScript file runs in the background and contains all the logic.
* **The Event List:** The list of over 40 anniversaries is stored
in a simple data array, where each date is associated with a name and a
URL.
* **The Timer:** Using Firefox's `browser.alarms` API, the
add-on checks once a day if the current date is on the list. If it
finds a match, it sets a precise "alarm" for 15:15.
* **The
Action:** When the alarm goes off, the script triggers The
Internationale (`new Audio()`) and opens the corresponding page
(`browser.tabs.create()`).
3. **The Assets:** Finally, the project
required a red hammer and sickle icon and an `internationale.mp3` audio
file, which are bundled with the add-on.
This project is a
perfect example of how simple web technologies (HTML, CSS, JavaScript)
can be used to create unique and useful tools that bring a bit of color
and historical consciousness to your daily browsing.
**Install the WebCommunist add-on today and stay in sync with history!**
We welcome your feedback and ideas on the [Firefox Add-on Store page]
Elfelejtetted már valaha egy fontos történelmi évfordulóról megemlékezni? A rohanó hétköznapokban néha még a legelkötelezettebbek is megfeledkeznek a munkásmozgalom kulcsfontosságú dátumairól. De mostantól a technológia segít ébren tartani a forradalmi szellemet!
Büszkén mutatjuk be a **WebCommunist** Firefox kiegészítőt, egy apró, de annál hasznosabb eszközt, amely gondoskodik róla, hogy soha ne maradj le egyetlen fontos megemlékezésről sem.
**Telepítés egy kattintással:**
[https://addons.mozilla.org/hu/firefox/addon/webcommunist/](https://addons.mozilla.org/hu/firefox/addon/webcommunist/)
#### Mit tud a WebCommunist? A Funkciók
A kiegészítő logikája egyszerű, de hatásos. A világ kommunista és munkásmozgalmi történelmének több mint 40 kulcsfontosságú napján, pontosan **15 óra 15 perckor** a következő történik:
1. **Felcsendül az Internacionálé:** A böngésződben automatikusan elindul a forradalmi himnusz, hogy jelezze, a mai nap nem akármilyen nap.
2. **Kontextust ad:** Ezzel egy időben a kiegészítő megnyit egy új böngészőlapot az adott eseményhez vagy személyhez tartozó Wikipédia-oldallal. Így nemcsak emlékezel, de a tudásodat is felfrissítheted Marx születésnapjáról, a Párizsi Kommünről vagy épp a kubai forradalom győzelméről.
A lista globális: a klasszikus európai eseményektől kezdve a vietnámi, kubai, chilei és afrikai mozgalmak fontos dátumaiig mindent lefed.
#### A Forradalom Kódja: Betekintés a Készítés Folyamatába
Sokan talán misztikus dolognak tartják egy böngészőkiegészítő létrehozását, pedig az alapok meglepően egyszerűek. A WebCommunist három fő elemből áll:
1. **`manifest.json` (A személyi igazolvány):** Ez a fájl mondja meg a Firefoxnak, hogy mi a kiegészítő neve, milyen engedélyekre van szüksége (esetünkben időzítők kezelése és új lapok megnyitása), és melyik ikont használja. Itt nyilatkozunk arról is, hogy a kiegészítő nem gyűjt semmilyen felhasználói adatot.
2. **`background.js` (Az agy):** Ez a háttérben futó JavaScript fájl tartalmazza a teljes logikát.
* **Az eseménylista:** A több mint 40 évfordulót tartalmazó lista egy egyszerű adattömbben van tárolva, ahol minden dátumhoz hozzá van rendelve egy név és egy URL.
* **Az időzítő:** A Firefox `browser.alarms` API-ját használva a kiegészítő naponta egyszer ellenőrzi, hogy az aktuális nap szerepel-e a listán. Ha igen, beállít egy tűpontos "ébresztőt" 15:15-re.
* **A végrehajtás:** Amikor az ébresztő megszólal, a szkript elindítja az Internacionálét (`new Audio()`) és megnyitja a megfelelő oldalt (`browser.tabs.create()`).
3. **A kellékek:** Végül szükség volt egy piros sarló-kalapács ikonra és egy `internationale.mp3` hangfájlra, amelyek a kiegészítő csomagjában kaptak helyet.
Ez a projekt egy tökéletes példa arra, hogyan lehet egyszerű webes technológiákkal (HTML, CSS, JavaScript) egyedi és hasznos eszközöket létrehozni, amelyek egy kis színt és történelmi tudatosságot csempésznek a mindennapi böngészésbe.
**Telepítsd a WebCommunist kiegészítőt még ma, és maradj naprakész a történelemmel!**
Várjuk a visszajelzéseket és az ötleteket a [Firefox Add-on Store page]
---
Megjegyzések
Megjegyzés küldése