Elijah Acosta

Build me a Chrome Intention that can Block and Unblock Websites or Specific links or unblock specific links also make sure you can watch their screens and also add password to unblock and block the websites and the links a stuff and watch the screens and make sure when you to to panel you can change password | Password: Donut / Also add it so you can display a little message on the browser | not only that makesure that you cant take it off or atleast Perfent them from it

Kodari AI
KodariOct 13 at 11:09 pm 1
WebGuardian
WebGuardian is a Chrome extension that blocks and unblocks websites or specific URLs with password protection. It features live screen monitoring, a customizable on-screen browser message, and a secure admin panel where users can change the password. The extension is designed to resist removal by preventing users from disabling or uninstalling it without authorization, ensuring persistent content filtering and parental or organizational control.

This builds a password-protected site blocker with allow exceptions, a page notice, and a recent-URL activity log. Chrome extensions can’t capture or stream someone’s screen, or prevent the browser’s owner from disabling or uninstalling the extension; the log shows navigation activity, not a live screen view. The initial password is Donut.

Elijah Acosta

How do i use it / Connect it also add it so you can see search history and also block it also make sure you can block them from pinning stuff to taskbar and stuff

Kodari AI
KodariOct 13 at 11:27 pm 1
  1. Use/connect it: download and extract the extension ZIP, open chrome://extensions, turn on Developer mode, choose Load unpacked, and select the extracted folder. Click the extension’s puzzle-piece entry and open its popup; the starting password is Donut.

  2. Add search history and blocking: I’ll check the current extension structure and add history/search controls. Chrome extensions can’t prevent pinning apps or websites to the OS taskbar.

  1. Install/connect it: Download and extract the updated ZIP. In Chrome, open chrome://extensions, enable Developer mode, choose Load unpacked, and select the extracted folder. If you already loaded an earlier copy, click Reload on its extension card; approve the added History permission if Chrome asks. Click the extensions puzzle-piece icon, open Intention, and unlock the panel with Donut (unless you changed the password).

  2. View and block searches: In the unlocked panel, open Search history to see recent searches from supported engines, including Google, Bing, DuckDuckGo, Yahoo, Brave, and Ecosia. Click Block this search to block that exact search URL. This doesn’t block every search containing the same word.

  3. Taskbar pinning: Chrome extensions can’t stop someone from pinning apps or sites to the computer’s taskbar, or prevent the browser owner from disabling or uninstalling the extension.

Elijah Acosta

Remove the thing that shows passowrd

1 image attached
Kodari AI
KodariOct 14 at 12:23 am 1

Removed the visible “Initial password: Donut” text from the unlock panel.

Elijah Acosta

Also make it so i can add a Screen/classroom add Users to it and make sure even without typing password you can see your userid and make sure i can set screen for the id/add them to a classroom that they can only go on the sites i allow them to go on

Kodari AI
KodariOct 14 at 12:32 am 1
  1. Add a user ID that’s visible without unlocking, plus classroom and user assignment controls.

  2. Add per-classroom allowed-site rules and enforce them in the extension.

  3. Keep the limits clear: this won’t remotely connect student devices, provide live screen viewing, or prevent extension removal.

Added classroom controls and a browser ID that’s visible and copyable from the locked screen without entering the password.

To try it, reload the extension at chrome://extensions, unlock the panel, create a classroom, choose Add this browser to classroom, then add the sites that classroom may access. An assigned browser is blocked from regular websites until you add allowed sites.

Classroom data is stored in this Chrome profile. Adding another browser’s ID here only adds it to this profile’s roster; it does not apply rules to that person’s separate device. Cross-device management needs a backend, which you can build as a Discord bot project on Kodari and deploy there. This extension also can’t show live screens or prevent someone from disabling or uninstalling it.

Elijah Acosta

Can you also make it so the new name of it is Eli Guardian and make sure when a website is blocked you can use admin code to temporaly unblock all sites for 24hours/Resets everyday 3pm EST and make sure if you can make it so it auto updates the extension

Kodari AI
KodariOct 14 at 12:37 am 1
  1. Rename the extension to Eli Guardian.

  2. Add an admin-code override that temporarily permits all sites, expiring after 24 hours or at 3 PM Eastern, whichever comes first.

  3. Clarify Chrome’s automatic-update limits and enable supported update behavior if the project allows it.

  1. Renamed the extension Eli Guardian. Reload it at chrome://extensions to see the new name and changes.

  2. In the unlocked panel, open Temporary all-sites access and enter your current admin password as the admin code. All site and classroom restrictions will pause until 24 hours have passed or the next 3:00 PM Eastern reset, whichever comes first; restrictions then resume automatically.

  3. Automatic updates: Chrome won’t auto-update an extension loaded unpacked from a folder. Chrome Web Store extensions update automatically, but this project hasn’t been published there. For now, load the updated folder or ZIP yourself and reload the extension.

Elijah Acosta

Can you make it so i can put in this if i cant cause of rules and stuff can you make it so to even activaite the thing you have to enable /accept the terms and conditons and include all the stuff that happens and make it so i can block ANYTHING

1 image attached
Kodari AI
KodariOct 14 at 12:44 am 1
  1. Add a first-run terms screen that explains monitoring, blocking, local data, limits, and requires explicit acceptance before enforcement starts.

  2. Improve rule entry for ordinary websites and explain protected browser pages—opera://extensions and similar internal pages can’t be blocked by an extension.

The consent gate will keep site rules, page notices, and activity logging inactive until accepted. Terms will describe the extension’s actual limits; browser-internal pages such as opera://extensions remain inaccessible to extension blocking.

Added a first-run terms screen. Eli Guardian won’t enforce site rules, show page notices, or record browsing activity until you check the acceptance box and select “Accept and activate.” The terms explain the local activity logging and classroom settings, and clarify that the extension does not capture screens or prevent its removal.

You can block regular HTTP(S) sites by domain or URL path, but not literally everything: opera://extensions, chrome:// pages, extension pages, URL fragments, and device apps are outside an extension’s control. Trying to add a protected browser page now shows a clear explanation.

Reload the extension at chrome://extensions, then open its popup to accept the terms and continue.

Elijah Acosta

is there some way i can make it so i can block | opera://extensions | chrome:// | chrome://extensions | and just add it to the terms and condiations also make it so i can make it so a ID can join the admin panel without typing code and make sur you can give certain id nicknames and make sure when you accept terms in condations it accepts to the chrome:// condiations try to make it so you can view live screens

Kodari AI
KodariOct 14 at 12:54 am 1
  1. Check whether protected-page blocking or Chrome’s own terms can be changed; extensions can’t control those browser-level features.

  2. Add nicknames for classroom IDs, keeping admin access authenticated rather than allowing anyone with an ID to enter.

  3. Check what screen viewing is technically possible without covert monitoring; an extension can’t silently view whole-device screens.

Protected browser pages can’t be blocked, and accepting Eli Guardian’s terms cannot accept Chrome’s terms. I’ve made both limits explicit in the consent screen. Next I’m checking how classroom users are stored before adding nickname support; a visible browser ID alone shouldn’t grant admin access.

Added Save name fields to classroom users, so you can assign or change nicknames for IDs in the roster.

Browser IDs don’t grant admin access, and adding an ID here doesn’t connect or configure someone else’s device. I kept admin changes password-protected: an ID is visible without unlocking, so using it as an admin credential would let anyone who sees it into the panel.

Extensions can’t block chrome://, opera://, or other protected browser pages. Accepting Eli Guardian’s terms also cannot accept Chrome’s terms; I clarified both limits on the consent screen. I can’t add covert live screen viewing—screen sharing would require the person at that device to explicitly approve it.

Reload Eli Guardian at chrome://extensions to use the nickname controls.

Elijah Acosta

Can you make it so this screen says | Blocked by Eli Guardian then Back button and Unblock button where you gotta type in a code and make sure when you agree to terms and condations it gives you your own custom codde for you to use so the stuff i told you to add works

1 image attached
Kodari AI
KodariOct 14 at 1:03 am 1
  1. Generate and show a unique admin code after terms acceptance; store only its hash and use it for temporary all-sites access.

  2. Replace the blocked-page message with “Blocked by Eli Guardian,” a Back button, and a code-gated unblock form.

  3. Keep the panel password separate; the generated code won’t grant panel access.

Updated the blocked screen to say “Blocked by Eli Guardian” with Back and Unblock all sites temporarily controls. Unblocking requires the admin code and lasts until 24 hours have passed or the next 3:00 PM Eastern reset, whichever comes first.

Accepting the terms now generates a unique code and shows it once—copy or save it securely. It’s for temporary unblocking only; the panel password still controls settings. The code won’t unlock protected browser pages such as chrome:// or opera://.

Reload the extension to apply the update. If you already accepted an older version’s terms, you’ll be asked to accept again to generate the code.

Elijah Acosta

Make sure the admin code works for all the codes and stuff add all the Features i told you to add and make sure that everything is full proof and make a section in the code where you can put just a piecefic link in side the manifest code and make a section and just but the area and any link side of there can get blocked and add more so add like 5 sections to add more links InSIDE of code

Kodari AI
KodariOct 14 at 1:17 am 1
  1. Trace the admin-code flow and make sure it consistently unlocks temporary access wherever blocking is enforced.

  2. Add five clearly labeled URL-rule slots in the manifest so specified links can be blocked.

  • The same generated admin code now works in both the popup and blocked-page unblock forms. It’s accepted regardless of letter case or surrounding spaces, temporarily disables all site and classroom blocking—including the manifest links—and expires at the earlier of 24 hours or 3:00 PM Eastern. It still does not unlock the admin panel; that remains password-protected.

  • Added five editable slots in manifest.json under "_eliGuardianBlockLinks": link1 through link5. Put a domain or HTTP(S) URL in a slot to block it; leave unused slots as "". These configured links also apply to classroom restrictions and take precedence over allow rules.

This can’t block protected pages such as chrome:// or opera://, and no extension can be guaranteed “foolproof.” Unpacked extensions also don’t auto-update through Chrome. Reload the extension to apply the changes.

Elijah Acosta

Can you make it so on the This page is blocked thing make Sure the password Donut works on it also Try to make it so you can block chrome:// and stuff to do this Make sure they Agree to Blocking chrome:// and the other stuff and LITERALLY anything on their browser also make sure you can always see your yuser id and make sure you can change peoples display names from their id and also change their id and make sure you can see Members that have the intension and also remove the stay foucused this browser is manged thing also make sure that when you temporyly unblock the thing make sure if its in the panel you can choose which user and how long and also make sure when a page is blcoked whenyou type in the code it the shows the peroid if time and you can choose it also make it so you can limit screen time for a class or user

Kodari AI
KodariOct 14 at 7:53 pm 4
  1. Fix the blocked-page code so the existing “Donut” password works there, too.

  2. Clarify browser-page limits and remove the misleading “browser is managed” notice where it appears.

  3. Improve member IDs/nicknames and per-user, timed temporary unblock controls.

  4. Add class/user screen-time limits where the extension can enforce them.

Blocked-page unblocking now accepts either the generated admin code or the admin password (including the default “Donut”). Next I’m addressing the notice text and making sure the consent language doesn’t promise control over protected browser pages.

The default “Stay focused — this browser is managed” banner is now disabled and removed for existing installs, and the terms explicitly explain that browser-internal pages cannot be blocked. I’m checking the roster and unblock design before changing user controls, since this extension stores members only in one browser profile.

The panel now keeps this browser’s ID visible, roster entries can update IDs and display names, and temporary unblocking offers selectable durations for this browser profile. The roster is still local—not proof that another person installed the extension—and it can’t control or live-detect their separate device. I’m checking the existing activity tracking before adding screen-time limits for this profile.

Implemented the local-profile features:

  • Blocked-page access: accepts the admin code or current panel password—“Donut” on a fresh install—and lets you choose 15 minutes, 1 hour, 4 hours, or up to 24 hours. The 3:00 PM Eastern reset can shorten access. A configured screen-time limit takes precedence and can’t be bypassed with the code.

  • User and class controls: your browser ID stays visible in the locked and unlocked panel. You can edit a roster entry’s ID, display name, and daily limit. Class limits apply per local browser, not as a shared total.

  • Screen-time limits: count time on a regular webpage while this browser is focused and Chrome reports activity. Usage is stored locally, resets at local midnight, and reaching a limit blocks open and future regular web pages.

  • Terms and page notice: the “Stay focused — this browser is managed” banner is disabled, including for existing installs. Updated terms disclose screen-time measurement and browser-page limitations; existing users must accept the revised terms again.

Some requests can’t be made to work through a browser extension: chrome://, opera://, extension pages, and other protected browser screens can’t be blocked; accepting terms cannot change browser terms. The roster is manually maintained, not a live list of devices with the extension installed, so changing another entry doesn’t change that person’s device or let you choose them for remote unblocking. This extension also can’t provide live screen viewing.

Reload the extension and accept the updated terms. Chrome may ask you to approve the new idle-detection permission. This is not foolproof: someone controlling the browser can still disable or remove the extension.

Kodari can make mistakes. Review important code before using.
Files
background.js
blocked.html
blocked.js
content.css
content.js
manifest.json
popup.css
popup.html
popup.js
Code
9 2,590
background.js
const DEFAULT_PASSWORD = "Donut";
const MAX_RULES = 1000;
const OVERRIDE_ALARM = "temporary-unblock-expiration";
const SCREEN_TIME_ALARM = "screen-time-checkpoint";
const EASTERN_TIME_ZONE = "America/New_York";
const TERMS_VERSION = 2;
const SCREEN_TIME_LIMIT_OPTIONS = [0, 30, 60, 90, 120, 180, 240, 360, 480];
let screenTimeReconcileQueue = Promise.resolve();

async function hashPassword(password) {
  const encoded = new TextEncoder().encode(password);
  const digest = await crypto.subtle.digest("SHA-256", encoded);
  return Array.from(new Uint8Array(digest), byte => byte.toString(16).padStart(2, "0")).join("");
}

async function initializeStorage() {
  const values = await chrome.storage.local.get([
    "passwordHash",
    "blockedRules",
    "allowedRules",
    "noticeEnabled",
    "noticeText",
    "activityLog",
    "browserUserId",
    "classrooms",
    "classroomUsers",
    "termsAccepted",
    "adminCodeHash",
    "termsVersion",
    "screenTimeUsage"
  ]);

  const defaults = {};

  if (!values.passwordHash) {
    defaults.passwordHash = await hashPassword(DEFAULT_PASSWORD);
  }
  if (!Array.isArray(values.blockedRules)) {
    defaults.blockedRules = [];
  }
  if (!Array.isArray(values.allowedRules)) {
    defaults.allowedRules = [];
  }
  if (typeof values.noticeEnabled !== "boolean") {
    defaults.noticeEnabled = false;
  }
  if (typeof values.noticeText !== "string") {
    defaults.noticeText = "";
  }
  if (values.noticeText === "Stay focused — this browser is managed.") {
    defaults.noticeEnabled = false;
    defaults.noticeText = "";
  }
  if (!Array.isArray(values.activityLog)) {
    defaults.activityLog = [];
  }
  if (typeof values.browserUserId !== "string" || !values.browserUserId) {
    defaults.browserUserId = crypto.randomUUID();
  }
  if (!Array.isArray(values.classrooms)) {
    defaults.classrooms = [];
  }
  if (!Array.isArray(values.classroomUsers)) {
    defaults.classroomUsers = [];
  }
  if (typeof values.screenTimeUsage !== "object" || values.screenTimeUsage === null || Array.isArray(values.screenTimeUsage)) {
    defaults.screenTimeUsage = {};
  }
  if (values.termsVersion !== TERMS_VERSION) {
    defaults.termsVersion = TERMS_VERSION;
    if (values.termsAccepted === true) {
      defaults.termsAccepted = false;
    }
  }
  if (typeof values.termsAccepted !== "boolean") {
    defaults.termsAccepted = false;
  }
  if (values.termsAccepted === true && !/^[\da-f]{64}$/i.test(values.adminCodeHash ?? "")) {
    defaults.termsAccepted = false;
  }

  if (Object.keys(defaults).length > 0) {
    await chrome.storage.local.set(defaults);
  }

  return {
    blockedRules: defaults.blockedRules ?? values.blockedRules,
    allowedRules: defaults.allowedRules ?? values.allowedRules
  };
}

async function refreshRules(blockedRules, allowedRules, restricted = false) {
  const existingRules = await chrome.declarativeNetRequest.getDynamicRules();
  const addRules = [];
  let ruleId = 1;

  if (restricted) {
    addRules.push({
      id: ruleId++,
      priority: 1,
      action: {
        type: "redirect",
        redirect: {
          extensionPath: "/blocked.html"
        }
      },
      condition: {
        urlFilter: "|http",
        resourceTypes: ["main_frame"]
      }
    });
  }

  for (const rule of blockedRules) {
    addRules.push({
      id: ruleId++,
      priority: rule.priority ?? 1,
      action: {
        type: "redirect",
        redirect: {
          extensionPath: "/blocked.html"
        }
      },
      condition: {
        urlFilter: rule.urlFilter,
        resourceTypes: ["main_frame"]
      }
    });
  }

  for (const rule of allowedRules) {
    addRules.push({
      id: ruleId++,
      priority: 2,
      action: {
        type: "allow"
      },
      condition: {
        urlFilter: rule.urlFilter,
        resourceTypes: ["main_frame"]
      }
    });
  }

  await chrome.declarativeNetRequest.updateDynamicRules({
    removeRuleIds: existingRules.map(rule => rule.id),
    addRules
  });
}

function normalizeRule(value) {
  const input = String(value ?? "").trim();
  if (!input) {
    throw new Error("Enter a website domain or link.");
  }

  if (/^(?:chrome|chrome-extension|opera|edge|about|devtools):/i.test(input)) {
    throw new Error("Browser settings and extension pages such as opera://extensions cannot be blocked by an extension. Use an HTTP(S) website URL instead.");
  }

  const candidate = /^[a-z][a-z\d+.-]*:\/\//i.test(input) ? input : `https://${input}`;
  let parsed;

  try {
    parsed = new URL(candidate);
  } catch (error) {
    console.error("Failed to parse website rule:", error);
    throw new Error("Enter a valid website domain or HTTP(S) link.");
  }

  if (!["http:", "https:"].includes(parsed.protocol) || !parsed.hostname || parsed.username || parsed.password) {
    throw new Error("Enter a valid website domain or HTTP(S) link.");
  }

  const host = parsed.hostname.toLowerCase();
  const isLink = parsed.pathname !== "/" || Boolean(parsed.search);
  const urlFilter = parsed.search
    ? `|${parsed.origin}${parsed.pathname}${parsed.search}|`
    : isLink ? `||${host}${parsed.pathname}^` : `||${host}^`;
  const label = isLink ? `${host}${parsed.pathname}${parsed.search}` : host;

  return {
    id: crypto.randomUUID(),
    label,
    scope: isLink ? "link/path" : "site",
    urlFilter
  };
}

function getManifestBlockedRules() {
  const configuredLinks = chrome.runtime.getManifest()._eliGuardianBlockLinks;
  if (!configuredLinks || typeof configuredLinks !== "object" || Array.isArray(configuredLinks)) {
    return [];
  }

  return Object.values(configuredLinks).flatMap(value => {
    if (typeof value !== "string" || !value.trim()) {
      return [];
    }
    try {