SSE Warning

Adds a warning to Nexusmods' Skyrim page to remind me to download mods for the right fucking game.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        SSE Warning
// @namespace   SSE Warning
// @match       https://www.nexusmods.com/skyrim
// @match       https://www.nexusmods.com/skyrim/*
// @grant       none
// @version     1.2.2
// @author      Lexiebean <[email protected]>
// @description Adds a warning to Nexusmods' Skyrim page to remind me to download mods for the right fucking game.
// @license     GNU GPLv3
// ==/UserScript==

//var sort_by = "date"                  //Date published
//var sort_by = "OLD_endorsements"      //Endorsements
var sort_by = "OLD_downloads"           //Downloads
//var sort_by = "OLD_u_downloads"       //Unique downloads
//var sort_by = "lastupdate"            //Last updated
//var sort_by = "author"                //Author name
//var sort_by = "name"                  //File name
//var sort_by = "OLD_size"              //File size
//var sort_by = "RAND()"                //Random
//var sort_by = "two_weeks_ratings"     //Trending
//var sort_by = "lastcomment"           //Last comment

var elm = document.createElement("div");
elm.style.fontWeight = "bold";
elm.style.backgroundColor = "#181818";
elm.style.textAlign = "center";

var a = document.createElement("a");
a.href = "https://www.nexusmods.com/skyrimspecialedition/search/?gsearch=" + $("#pagetitle > h1")[0].innerText.replace(/ /g, "+") + "&gsearchtype=mods&tab=mods&sort_by=" + sort_by;
a.style.color = "red";
a.style.textDecoration = "underline"; 
a.style.fontSize = "xx-large"
a.innerHTML = "🚨🚨🚨 Are you looking for a Skyrim Special Edition mod? 🚨🚨🚨";

$('#head')[0].appendChild(elm);
elm.appendChild(a);