Files
manifest.json
popup.css
popup.html
popup.js
Code
4 851
popup.js
// ββ Data ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
const DEVIL_FRUITS = [
{
name: "Gomu Gomu no Mi",
meaning: "Rubber-Rubber Fruit",
type: "paramecia",
icon: "π ",
ability: "Transforms the user's body into rubber, granting immunity to blunt attacks and bullets while allowing extreme stretching of all limbs.",
user: "Monkey D. Luffy"
},
{
name: "Mera Mera no Mi",
meaning: "Flame-Flame Fruit",
type: "logia",
icon: "π₯",
ability: "Allows the user to create, control, and transform into fire at will. The user becomes a living flame who cannot be harmed by heat.",
user: "Portgas D. Ace"
},
{
name: "Hie Hie no Mi",
meaning: "Ice-Ice Fruit",
type: "logia",
icon: "π§",
ability: "Grants the power to create, control, and transform into ice. The user can freeze anything they touch, even the sea itself.",
user: "Kuzan (Aokiji)"
},
{
name: "Gura Gura no Mi",
meaning: "Tremor-Tremor Fruit",
type: "paramecia",
icon: "π₯",
ability: "Creates shockwaves and vibrations powerful enough to shatter the air, crack the seabed, and cause catastrophic earthquakes and tsunamis.",
user: "Whitebeard / Marshall D. Teach"
},
{
name: "Ope Ope no Mi",
meaning: "Op-Op Fruit",
type: "paramecia",
icon: "π",
ability: "Creates a spherical ROOM in which the user has absolute control over the positioning and orientation of everything and everyone inside.",
user: "Trafalgar D. Water Law"
},
{
name: "Yami Yami no Mi",
meaning: "Dark-Dark Fruit",
type: "logia",
icon: "π",
ability: "Controls darkness and gravity-like attraction. Uniquely nullifies other Devil Fruit powers on contact and can absorb anything into a black void.",
user: "Marshall D. Teach (Blackbeard)"
},
{
name: "Pika Pika no Mi",
meaning: "Glint-Glint Fruit",
type: "logia",
icon: "β‘",
ability: "Transforms the user into light itself, enabling travel at the speed of light and firing devastating laser beams.",
user: "Borsalino (Kizaru)"
},
{
name: "Magu Magu no Mi",
meaning: "Magma-Magma Fruit",
type: "logia",
icon: "π",
ability: "Transforms the user into magma β the most offensive Logia, capable of burning even fire and melting entire islands.",
user: "Sakazuki (Akainu)"
},
{
name: "Suna Suna no Mi",
meaning: "Sand-Sand Fruit",
type: "logia",
icon: "π",
ability: "Controls sand at will, capable of dehydrating anything touched and creating massive sandstorms that can consume entire cities.",
user: "Crocodile"
},
{
name: "Hana Hana no Mi",
meaning: "Flower-Flower Fruit",
type: "paramecia",
icon: "πΈ",
ability: "Sprouts copies of the user's body parts β especially hands β on any surface or person within range, allowing sensory and physical reach anywhere.",
user: "Nico Robin"
},
{
name: "Bara Bara no Mi",
meaning: "Chop-Chop Fruit",
type: "paramecia",
icon: "βοΈ",
ability: "Splits the user's body into independent flying pieces. The user is immune to all slashing attacks and can control each part separately.",
user: "Buggy the Clown"
},
{
name: "Tori Tori no Mi, Model: Phoenix",
meaning: "Bird-Bird Fruit, Phoenix Model",
type: "zoan",
icon: "π¦
",
ability: "Transforms the user into a phoenix. The blue healing flames regenerate the user and allies from any injury, making them near-immortal in battle.",
user: "Marco the Phoenix"
},
{
name: "Doku Doku no Mi",
meaning: "Venom-Venom Fruit",
type: "paramecia",
icon: "β οΈ",
ability: "Produces and controls a vast array of powerful poisons, from paralytic spray to the world-destroying Venom Demon transformation.",
user: "Magellan"
},
{
name: "Ito Ito no Mi",
meaning: "String-String Fruit",
type: "paramecia",
icon: "π§΅",
ability: "Generates razor-sharp strings capable of slicing cannonballs, controlling people like puppets, and even awakening to turn surroundings into strings.",
user: "Donquixote Doflamingo"
},
{
name: "Bari Bari no Mi",
meaning: "Barrier-Barrier Fruit",
type: "paramecia",
icon: "π‘",
ability: "Creates indestructible barriers of any shape or size. The barriers can be used offensively as projectiles or defensively to block any attack.",
user: "Bartolomeo"
},
{
name: "Noro Noro no Mi",
meaning: "Slow-Slow Fruit",
type: "paramecia",
icon: "π’",
ability: "Emits 'Noroma Photons' that slow anything they touch to a near-standstill for exactly 30 seconds, regardless of the target's power.",
user: "Foxy"
},
{
name: "Horo Horo no Mi",
meaning: "Hollow-Hollow Fruit",
type: "paramecia",
icon: "π»",
ability: "Creates ghosts that strip away the will to fight of anyone they pass through, leaving targets in a state of despair and hopelessness.",
user: "Perona"
},
{
name: "Bisu Bisu no Mi",
meaning: "Bis-Bis Fruit",
type: "paramecia",
icon: "πͺ",
ability: "Produces and manipulates biscuit soldiers of immense hardness. Soldiers can be replenished with moisture to make them as hard as iron.",
user: "Charlotte Cracker"
}
];
const QUOTES = [
{ text: "I've set myself to become the King of the Pirates⦠and if I die trying, then at least I tried!", author: "Monkey D. Luffy" },
{ text: "When do you think people die? When they are hit by a bullet? No. When they suffer a disease? No. When they eat a soup made from a poisonous mushroom? No! It's when they are forgotten!", author: "Dr. Hiluluk" },
{ text: "Inherited Will, the Destiny of the Age, and the Dreams of the People. These are things that will not be stopped. As long as people continue to pursue the meaning of Freedom, these things will never cease to be!", author: "Gol D. Roger" },
{ text: "I don't want to conquer anything. I just think the guy with the most freedom in this whole ocean⦠that's the King of the Pirates!", author: "Monkey D. Luffy" },
{ text: "Power isn't determined by your size, but by the size of your heart and dreams!", author: "Monkey D. Luffy" },
{ text: "Only those who have suffered long can see the light within the shadows.", author: "Roronoa Zoro" },
{ text: "There is someone that I must meet again. And until that day⦠not even Death itself could take my life away!", author: "Roronoa Zoro" },
{ text: "If you don't take risks, you can't create a future!", author: "Monkey D. Luffy" },
{ text: "Wealth, Fame, Power. The man who had acquired everything in this world, the Pirate King, Gold Roger. The final words that were said at his execution sent people to the seas.", author: "Narrator" },
{ text: "I will never retire and I will never die!", author: "Edward Newgate (Whitebeard)" },
{ text: "Fools who don't respect the past are likely to repeat it.", author: "Nico Robin" },
{ text: "There's no room for regret. I am who I am today because of the choices I've made.", author: "Roronoa Zoro" },
{ text: "Stop! Stop it! We don't need to know about the hardships you've had! Just know this: life is not a straight line!", author: "Nami" },
{ text: "Protection? Who said anything about protection? I need that map to protect my friends. There's nothing wrong with being soft.", author: "Monkey D. Luffy" },
{ text: "Set sail! Beyond the horizon lies the adventure that only you are destined to find.", author: "Shanks" },
{ text: "The sea is vast. There are countless sails on the ocean.", author: "Roronoa Zoro" },
{ text: "Forgetting is like a wound. The wound may heal, but it has already left a scar.", author: "Monkey D. Luffy" },
{ text: "I couldn't do anything back there. Not a damn thing. I'm going to become stronger. That's all there is to it.", author: "Monkey D. Luffy" },
{ text: "We are not enemies. We're just rivals. There's a difference.", author: "Trafalgar D. Water Law" },
{ text: "One piece of treasure for the taking β the world belongs to those who dare to dream.", author: "Gol D. Roger" }
];
// ββ Bounty values per goal βββββββββββββββββββββββββββββββββββββββββββββββββββ
const BOUNTY_PER_GOAL = 50000000;
// ββ State ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
let goals = [];
let currentFruitIndex = null;
let currentQuoteIndex = 0;
// ββ DOM helpers ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
const $ = id => document.getElementById(id);
function fadeIn(el) {
el.classList.remove('fade-in');
void el.offsetWidth;
el.classList.add('fade-in');
}
// ββ Tabs βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
document.querySelectorAll('.tab').forEach(tab => {
tab.addEventListener('click', () => {
document.querySelectorAll('.tab').forEach(t => t.classList.remove('active'));
document.querySelectorAll('.panel').forEach(p => p.classList.remove('active'));
tab.classList.add('active');
$('panel-' + tab.dataset.tab).classList.add('active');
});
});
// ββ Bounty / Goals ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ