Created
April 7, 2024 16:13
-
-
Save malys/6bd6e90664989a92fc0eadb3fbe6f095 to your computer and use it in GitHub Desktop.
[MGEVs] optimization #userscript #violentmonkey
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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"); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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