https://pvzm.net/ to play [Read-only GitHub mirror] pvzm.net
modded vs pvz plants-vs-zombies plantsvszombies javascript online zombie noads jspvz pvzm game plants plant
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #29 from Plants-vs-Zombies-MODDED/copilot/update-game-opening-method

authored by

Clay and committed by
GitHub
da19b338 8959b10e

+7 -14
+3
background.js
··· 1 + chrome.action.onClicked.addListener(() => { 2 + chrome.tabs.create({ url: "game/index.html" }); 3 + });
-12
game/index.html
··· 4 4 <meta http-equiv="X-Frame-Options" content="DENY" /> 5 5 <title>Plants vs. Zombies - MODDED Official</title> 6 6 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 7 - <script> 8 - // Scale document to 0.9 if running in an extension (localStorage is unavailable) 9 - try { 10 - localStorage.setItem("__test__", "1"); 11 - localStorage.removeItem("__test__"); 12 - console.log("Not running in an extension, no scaling applied"); 13 - } catch (e) { 14 - console.log("Running in an extension, scaling down to 90%"); 15 - document.documentElement.style.transform = "scale(0.9)"; 16 - document.documentElement.style.transformOrigin = "top center"; 17 - } 18 - </script> 19 7 <link rel="icon" href="https://pvzm.net/game/images/gameicon2.png" type="image/png" /> 20 8 <script> 21 9 window.addEventListener("beforeunload", function (e) {
+4 -2
manifest.json
··· 13 13 "256": "img/256x256.png", 14 14 "512": "img/512x512.png" 15 15 }, 16 - "default_title": "Click to open the popup", 17 - "default_popup": "game/index.html" 16 + "default_title": "Click to play" 17 + }, 18 + "background": { 19 + "service_worker": "background.js" 18 20 }, 19 21 "offline_enabled": true, 20 22 "description": "Play Plant vs. Zombies MODDED Official as a Chrome extension - Also can Play without Internet, try it now!",