+
+ `;
+ achievementsDiv.appendChild(achievementDiv);
+ });
+ })
+ .catch(error => console.error('Error fetching data:', error));
+
+ function calculateProgress(progress) {
+ const progressParts = progress.split('/');
+ const current = parseInt(progressParts[0]);
+ const total = parseInt(progressParts[1]);
+ return `${(current / total) * 100}%`;
+ }
\ No newline at end of file
diff --git a/m/resources/loyd-gtav/index.md b/m/resources/loyd-gtav/index.md
new file mode 100644
index 0000000..2e20049
--- /dev/null
+++ b/m/resources/loyd-gtav/index.md
@@ -0,0 +1,174 @@
+---
+title: Resource Directory
+layout: page
+type: resources
+---
+
+
+
+
+
+
+
+
+
+
+
+
+
← back
+
+
+
+
GTA V Achievements
+ Loyd's Grand Theft Auto V achievement tracking.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Grand Theft Auto V Achievements
+
+I'm someone who really enjoys collecting achievements and trophies from games. Some games I am attempting to get every acahievement possible. This page specifically targets my progress on the PC (Steam) version of Grand Theft Auto V. Below is the entire list of all of my achievements on the game that I update periodically.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/m/resources/loyd-gtav/insert-scripts.js b/m/resources/loyd-gtav/insert-scripts.js
new file mode 100644
index 0000000..1db8e6d
--- /dev/null
+++ b/m/resources/loyd-gtav/insert-scripts.js
@@ -0,0 +1,113 @@
+function displayAccessError() {
+ var fullpageDiv = document.getElementById("insert-content");
+ fullpageDiv.innerHTML = `
+
+ This resource requires you to login with Discord.
+
+
+ `;
+ achievementsDiv.appendChild(achievementDiv);
+ });
+ })
+ .catch(error => console.error('Error fetching data:', error));
+
+ function calculateProgress(progress) {
+ const progressParts = progress.split('/');
+ const current = parseInt(progressParts[0]);
+ const total = parseInt(progressParts[1]);
+ return `${(current / total) * 100}%`;
+ }
\ No newline at end of file
diff --git a/m/resources/loyd-minecraft-ps3/index.md b/m/resources/loyd-minecraft-ps3/index.md
new file mode 100644
index 0000000..08f3df3
--- /dev/null
+++ b/m/resources/loyd-minecraft-ps3/index.md
@@ -0,0 +1,174 @@
+---
+title: Resource Directory
+layout: page
+type: resources
+---
+
+
+
+
+
+
+
+
+
+
+
+
+
← back
+
+
+
+
Minecraft PS3 Achievements
+ Loyd's Minecraft PS3 achievement tracking.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Minecraft PS3 Achievements
+
+I'm someone who really enjoys collecting achievements and trophies from games. Some games I am attempting to get every acahievement possible. This page specifically targets my progress on the PlayStation 3 version of Minecraft. Below is the entire list of all of my achievements on the game that I update periodically.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/m/resources/loyd-minecraft-ps3/insert-scripts.js b/m/resources/loyd-minecraft-ps3/insert-scripts.js
new file mode 100644
index 0000000..1db8e6d
--- /dev/null
+++ b/m/resources/loyd-minecraft-ps3/insert-scripts.js
@@ -0,0 +1,113 @@
+function displayAccessError() {
+ var fullpageDiv = document.getElementById("insert-content");
+ fullpageDiv.innerHTML = `
+
+ This resource requires you to login with Discord.
+
+ Watch Pixeldrain videos, save your watch position, and bypass download restrictions.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Input Video ID
+
+Input the last part of the "pixeldrain.com/u/" link (the ID) that you are trying to access into the box below and click generate. Keep in mind that folder links (pixeldrain.com/l/*) do not work for this!
+
+
+
+Additionally, we should note that the resources doesn't currently function very well on mobile devices and may not any time soon. This was built as a proof of concept, so keep that in mind while using this.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/pixeldrain/index-script.js b/resources/pixeldrain/index-script.js
new file mode 100644
index 0000000..4bc4668
--- /dev/null
+++ b/resources/pixeldrain/index-script.js
@@ -0,0 +1,168 @@
+const currentURL = window.location.href;
+
+function redirectToDiscord() {
+ const baseURL = window.location.origin; // Extract base URL
+ const AuthUrl = `${baseURL}/oauth/discord/?callbackUrl=${encodeURIComponent(currentURL)}`;
+ window.location.href = AuthUrl;
+}
+
+document.addEventListener("DOMContentLoaded", function () {
+ const storedAccessToken = getCookie("accessToken");
+ displayContents();
+ // Redirect to login if access token is not found
+ if (!storedAccessToken) {
+ // window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?redirectUri=${currentURL}`;
+ displayLoginButton();
+ } else {
+ // Fetch user data from Discord API
+ fetchDiscordUserData(storedAccessToken)
+ .then(userData => {
+ // Display bot info and user info on the dashboard
+
+ displayUserInfo(userData);
+
+ const loggedInUserId = userData.id;
+
+ // Fetch the list of user IDs from the JSON file
+ // fetch('https://api.scyted.tv/wave-development/dashboard/access/scytedtv-user-access.json')
+ fetch('https://api.scyted.tv/website/dashboard/access/dashboard-access.json')
+ .then(response => response.json())
+ .then(userIds => {
+ // Check if the logged-in user's ID is in the list
+ if (!userIds.includes(loggedInUserId)) {
+ // Clear cookies
+ // document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
+ // Redirect to the specified page if the user's ID is not in the
+ // window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=invalidAccess`;
+ displayContents();
+ displayUserInfo(userData);
+ }
+ })
+ .catch(error => {
+ console.error("Error fetching user IDs:", error);
+ // Handle error
+ });
+ })
+ .catch(error => {
+ console.error("Error fetching user data:", error);
+ // Clear cookies
+ // document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
+ // Handle error (e.g., redirect to login page)
+ // window.location.href = `https://auth.scyted.tv/www.scyted.tv/discord?error=fetchingUserData`;
+ });
+ }
+});
+
+const urlParams = new URLSearchParams(window.location.hash.substring(1));
+const accessToken = urlParams.get("access_token");
+
+if (accessToken) {
+ try {
+ // Check if the access token is valid (add your validation logic here)
+ if (isValidAccessToken(accessToken)) {
+ // Store the access token in a cookie
+ setCookie("accessToken", accessToken, 30); // Set cookie to expire in 30 days
+ // Redirect to the dashboard
+ window.location.href = "./";
+ } else {
+ // Clear the accessToken cookie
+ clearCookie("accessToken");
+ }
+ } catch (error) {
+ console.error("Error setting accessToken:", error);
+ }
+}
+
+function isValidAccessToken(token) {
+ // Add your validation logic here
+ // Return true if the token is valid, otherwise return false
+ return true; // Placeholder, replace with actual validation
+}
+
+function setCookie(name, value, days) {
+ const date = new Date();
+ date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
+ const expires = "expires=" + date.toUTCString();
+ document.cookie = name + "=" + value + ";" + expires + ";path=/";
+}
+
+function clearCookie(name) {
+ document.cookie = name + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
+}
+
+function fetchDiscordUserData(accessToken) {
+ const apiUrl = 'https://discord.com/api/users/@me';
+
+ return fetch(apiUrl, {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ },
+ })
+ .then(response => {
+ if (!response.ok) {
+ throw new Error(`Discord API Request Failed! Status: ${response.status}`);
+ }
+ return response.json();
+ });
+}
+
+function logout() {
+ // Clear cookies
+ document.cookie = "accessToken=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
+
+ // Redirect to login page
+ window.location.href = `${currentURL}`;
+}
+
+function backButton() {
+ window.location.href = `../`;
+}
+
+function getCookie(name) {
+ const cookies = document.cookie.split("; ");
+ for (let i = 0; i < cookies.length; i++) {
+ const cookie = cookies[i].split("=");
+ if (cookie[0] === name) {
+ return cookie[1];
+ }
+ }
+ return null;
+}
+
+
+
+
+
+
+
+function toggleButton() {
+ var idInput = document.getElementById("idInput").value.trim();
+ var generateBtn = document.getElementById("generateBtn");
+ if (idInput !== "") {
+ generateBtn.disabled = false;
+ } else {
+ generateBtn.disabled = true;
+ }
+ }
+
+ function generateURL() {
+ var id = document.getElementById("idInput").value.trim();
+ if (id !== "") {
+ var url = "https://pd.resources.scyted.tv/" + id;
+ window.location.href = url;
+ } else {
+ alert("Please enter an ID.");
+ }
+ }
+
+ // Check for error in the URL
+ window.onload = function() {
+ var url = window.location.href;
+ if (url.includes("?error=invalidID")) {
+ var errorDiv = document.getElementById("error");
+ errorDiv.innerHTML = `
+
+ You have provided an invalid Pixeldrain video ID.
+
`;
+ }
+ }
\ No newline at end of file
diff --git a/resources/pixeldrain/index.html b/resources/pixeldrain/index.html
new file mode 100644
index 0000000..71bf535
--- /dev/null
+++ b/resources/pixeldrain/index.html
@@ -0,0 +1,93 @@
+
+
+
+
+
+URL Generator
+
+
+
+
+