RTO_domainList.js

Helper file documentation for RTO_domainList.js.
Docs updated: 2025-12-17

Summary

Allow-list API wrapper.

  • Exports: RTOAllowlist

What it is

Allow-list API helper (list / has / add / remove) using the RTO messaging protocol.

Download

Download RTO_domainList.js

Example

<script src="../RTO_helpers/RTO_domainList.js"></script>
<script>
(async function(){
  const host = location.host;
  console.log("allowed?", await RTOAllowlist.has(host));
})();
</script>

Tip

Host vs hostname
location.host includes the port. If you want to allow-list without port, use location.hostname.

Next