don't show sites that don't allow embeddings

This commit is contained in:
Joe Lothan 2026-06-02 01:22:20 -04:00
parent 028f30cb77
commit 81f71bb354
2 changed files with 8 additions and 4 deletions

View file

@ -20,14 +20,16 @@
</style>
</head>
<body>
<p>Welcome to EveryTab, a collection of every site on the web.</p>
<p>Welcome to EveryTab, a collection of every site on the web!</p>
<p>Click on a tab to visit the site. Scroll down for more tabs. Some sites, marked with an ↗, do not allow embedding and will open externally.</p>
<p>Click on a tab to visit the site and scroll down for more tabs.</p>
<p>The web data come from <a href="https://commoncrawl.org">Common Crawl</a>, a free, open archive of the web.</p>
<p>Note that, like the web itself, some sites are broken, profane, pornographic, trying to harvest your data, serving malware, or an affront to humanity itself. But some of them are pretty cool too.</p>
<p>EveryTab just shows a random slice of the web, in all its messy and beautiful glory. Enjoy!</p>
<p>EveryTab just shows a random slice of the web, in all its messy and beautiful glory.</p>
</p>Enjoy!</p>
</body>
</html>

View file

@ -13,6 +13,7 @@ const rng = mulberry32(Date.now());
const loadedBundles = new Set();
const container = document.getElementById("tab-container");
const loadingEl = document.getElementById("loading");
const showAll = new URLSearchParams(window.location.search).has("all");
// Detect browser and OS, set classes on body for tab styling
function detectBrowser() {
@ -203,7 +204,8 @@ async function loadMore() {
const idx = pickBundle();
if (idx === -1) break;
try {
const bundleEntries = await fetchBundle(idx);
let bundleEntries = await fetchBundle(idx);
if (!showAll) bundleEntries = bundleEntries.filter(e => e.iframe_ok);
entries = entries.concat(bundleEntries);
} catch (e) {
console.error("Failed to load bundle:", e);