infamous-test 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/Dockerfile +15 -0
  2. package/index.html +12 -4
  3. package/package.json +1 -1
package/Dockerfile ADDED
@@ -0,0 +1,15 @@
1
+ FROM nginx:alpine
2
+
3
+ # Remove default nginx website
4
+ RUN rm -rf /usr/share/nginx/html/*
5
+
6
+ # Copy your site files
7
+ COPY . /usr/share/nginx/html
8
+
9
+ # Cloud Run uses port 8080
10
+ EXPOSE 8080
11
+
12
+ # Update nginx to listen on 8080
13
+ RUN sed -i 's/80/8080/g' /etc/nginx/conf.d/default.conf
14
+
15
+ CMD ["nginx", "-g", "daemon off;"]
package/index.html CHANGED
@@ -294,7 +294,7 @@ button.button:hover { background: var(--bg-3); }
294
294
  <li class="divider"></li>
295
295
  <li><a onclick="toggleGames()" href="#" data-page="games"><i class="ri-gamepad-line"></i></a></li>
296
296
  <li><a onclick="toggleApps()" href="#" data-page="apps"><i class="ri-apps-line"></i></a></li>
297
- <li><a onclick="showToast('info', 'Use the proxy to access streaming sites!', 'ri-information-line')" href="#" data-page="movies"><i class="ri-video-line"></i></a></li>
297
+ <li><a onclick="rSearch('https://cineby.gd')" href="#" data-page="movies"><i class="ri-video-line"></i></a></li>
298
298
  <li class="divider"></li>
299
299
  <li><a onclick="toggleSettings()" href="#" data-page="dc"><i class="ri-settings-3-line"></i></a></li>
300
300
  <li><a target="_blank" href="https://discord.gg/hUYzETaQ9U" data-page="settings"><i class="ri-discord-fill"></i></a></li>
@@ -399,7 +399,7 @@ button.button:hover { background: var(--bg-3); }
399
399
  <p>A state of the art unblocked games website. Clean, customizable, and powerful.</p>
400
400
  </div>
401
401
  </div>
402
- <p class="version-tag">infamous <a href="#" target="_blank">unpkg v1.0.2</a></p>
402
+ <p class="version-tag">infamous <a href="#" target="_blank">unpkg v1.0.4</a></p>
403
403
  </div>
404
404
  </div>
405
405
 
@@ -445,7 +445,7 @@ button.button:hover { background: var(--bg-3); }
445
445
  </div>
446
446
 
447
447
  <button id="reset-theme" onclick="resetTheme()">CLICK HERE TO RESET YOUR THEME!</button>
448
- <infamousattr version="s1.0.2-unpkg"></infamousattr>
448
+ <infamousattr version="s1.0.4-unpkg"></infamousattr>
449
449
 
450
450
  <!-- Three.js and Vanta -->
451
451
  <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r134/three.min.js"></script>
@@ -840,13 +840,20 @@ async function go(u) {
840
840
  if (ubar && cTab) ubar.value = cTab.url;
841
841
  try {
842
842
  console.log("[Infamous] Setting viewframe.src to:", u);
843
+ // Remove srcdoc so src takes effect
844
+ viewframe.removeAttribute("srcdoc");
843
845
  viewframe.src = u;
846
+ viewframe.onerror = (e) => {
847
+ console.error("[Infamous] Frame error:", e);
848
+ };
844
849
  viewframe.onload = () => {
845
- console.log("[Infamous] Frame loaded");
850
+ console.log("[Infamous] Frame loaded, checking content...");
846
851
  try {
847
852
  const title = viewframe.contentDocument?.title || (cTab ? new URL(cTab.url).hostname : "Tab");
853
+ console.log("[Infamous] Frame title:", title);
848
854
  if (tabEl) { const titleEl = tabEl.querySelector("span"); if (titleEl) titleEl.textContent = title; }
849
855
  } catch (e) {
856
+ console.log("[Infamous] Cross-origin frame, using hostname");
850
857
  if (tabEl && cTab) { const titleEl = tabEl.querySelector("span"); if (titleEl) titleEl.textContent = new URL(cTab.url).hostname; }
851
858
  }
852
859
  };
@@ -882,6 +889,7 @@ const appsData = [
882
889
  { name: "CoolMathGames", url: "https://coolmathgames.com", img: "https://coolmathgames.com/favicon.ico" },
883
890
  { name: "now.gg", url: "https://now.gg", img: "https://now.gg/favicon.ico" },
884
891
  { name: "GeForce NOW", url: "https://play.geforcenow.com", img: "https://play.geforcenow.com/favicon.ico" },
892
+ { name: "Crunchyroll", url: "https://crunchyroll.com", img: "https://www.crunchyroll.com/favicons/favicon-32x32.png" },
885
893
  ];
886
894
 
887
895
  const gamesData = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infamous-test",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Infamous - A state of the art unblocked games website",
5
5
  "main": "index.html",
6
6
  "files": [