refactor: migrate the extension to MV3

MV2 is going to be deprecated in June 2024.

Change-Id: I03cfc768d9db432553de70f0e6ef31cf239b9705
diff --git a/pageevent.js b/pageevent.js
index 587862c..76e51b6 100644
--- a/pageevent.js
+++ b/pageevent.js
@@ -1,4 +1,5 @@
 chrome.runtime.onInstalled.addListener(function () {
+  chrome.action.disable();
   chrome.declarativeContent.onPageChanged.removeRules(undefined, function () {
     chrome.declarativeContent.onPageChanged.addRules([
       {
@@ -7,7 +8,7 @@
             pageUrl: { schemes: ["http", "https"] },
           }),
         ],
-        actions: [new chrome.declarativeContent.ShowPageAction()],
+        actions: [new chrome.declarativeContent.ShowAction()],
       },
     ]);
   });