So I created this little script for the confused, the nostalgic, the angry and the lazy people out here who wished the new forums would have a handy shortcut link like in the old smf software. It's not exactly how things used to be, but this script will put a "New Replies" link next to "Help" in the nav bar.
You can run the script manually or through your favourite plugin on pretty much every browser except IE. But I recommend violent monkey.
By the way, this script is not compatible with versions <= 2 of my Square Avatar script, so please update to the newest version if you're using it.
You can run the script manually or through your favourite plugin on pretty much every browser except IE. But I recommend violent monkey.
JavaScript:
// ==UserScript==
// @name Easily Accessible New Replies
// @version 1
// @grant none
// @match https://forums.taleworlds.com/*
// ==/UserScript==
const createTag = (tagType, tagClass) => {
let newTag = document.createElement(tagType);
newTag.classList.add(tagClass);
return newTag;
}
window.onload = () => {
let newLink = createTag("a", "p-navEl-link");
newLink.setAttribute("href", "https://forums.taleworlds.com/index.php?find-threads/contributed");
newLink.appendChild(document.createTextNode("New Replies"));
let newDiv = createTag("div", "p-navEl");
newDiv.appendChild(newLink);
let newListItem = document.createElement("li");
newListItem.appendChild(newDiv);
document.querySelector(".p-nav-list").appendChild(newListItem);
}
By the way, this script is not compatible with versions <= 2 of my Square Avatar script, so please update to the newest version if you're using it.
Last edited: