Skip to content

Instantly share code, notes, and snippets.

@malys
Created April 7, 2024 16:13
Show Gist options
  • Save malys/6bd6e90664989a92fc0eadb3fbe6f095 to your computer and use it in GitHub Desktop.
Save malys/6bd6e90664989a92fc0eadb3fbe6f095 to your computer and use it in GitHub Desktop.
[MGEVs] optimization #userscript #violentmonkey
// ==UserScript==
// @namespace
// @name Mgevs last comment
// @grant none
// @version 0.0.1
// @author malys
// @description view last comments
// @run-at document-end
// @match https://www.mgevs.com/threads/*
// ==/UserScript==
setTimeout(() => {
links = [...document.getElementsByClassName('bbWrapper')];
// Loop through each link
if(links.length>0){
let link = links[links.length-3];
link.scrollIntoView();
}
}, "1000");
// ==UserScript==
// @namespace
// @name Mgev unread
// @grant none
// @version 0.0.1
// @author malys
// @description
// @run-at document-end
// @match https://www.mgevs.com/watched/threads
// @grant GM.xmlHttpRequest
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_openInTab
// ==/UserScript==
//
links = [... document.querySelectorAll(".is-unread > div > div > a")].map(m=> m.href).filter(f=> f.indexOf('unread')>-1)
links.forEach(f=> GM_openInTab(f))
document.querySelector("#js-XFUniqueId4")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment