// ==UserScript== // @name Daggerfall Unity - NexusMods Know Issues // @namespace http://tampermonkey.net/ // @version 1.5 // @description Shows a warning for Mods in the Know-IssuesList for Daggerfall mods on NexusMods. // @author Excoriated // @match https://www.nexusmods.com/daggerfallunity/mods/* // @grant GM_xmlhttpRequest // @connect docs.google.com // @license MIT // @downloadURL https://update.greasyfork.icu/scripts/534202/Daggerfall%20Unity%20-%20NexusMods%20Know%20Issues.user.js // @updateURL https://update.greasyfork.icu/scripts/534202/Daggerfall%20Unity%20-%20NexusMods%20Know%20Issues.meta.js // ==/UserScript== (function() { 'use strict'; const sheetURL = "https://docs.google.com/spreadsheets/d/1q35AGp4v7ARCliygZdG8kJUYsfE339teE5I4PANqq3g/gviz/tq?tqx=out:json&gid=657665941"; function getModName() { const el = document.querySelector("#pagetitle h1"); return el ? el.textContent.trim() : null; } function showWarning(modName, reason, details) { const warningBox = document.createElement("div"); warningBox.style.background = "red"; warningBox.style.color = "white"; warningBox.style.padding = "10px"; warningBox.style.margin = "10px 0"; warningBox.style.fontSize = "16px"; warningBox.style.fontWeight = "bold"; warningBox.style.borderRadius = "5px"; warningBox.innerHTML = `