Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Autodesk Forum Jump To First Post
- // @namespace http://tampermonkey.net/
- // @version 2026-04-16
- // @description Add jump to first unread post to post title link
- // @author You
- // @match https://forums.autodesk.com/*
- // @icon https://www.google.com/s2/favicons?sz=64&domain=autodesk.com
- // @grant none
- // ==/UserScript==
- (function () {
- 'AI written code use at own risk';
- 'use strict';
- function process() {
- document.querySelectorAll('.message-body-wrapper').forEach(wrapper => {
- const unreadLink = wrapper.querySelector('.custom-tile-unread-count');
- if (!unreadLink) return;
- // specifically grab the title link inside <h3>
- const mainLink = wrapper.querySelector('h3 > a[href]');
- if (!mainLink) return;
- if (!mainLink.href.includes('/jump-to/first-unread-message')) {
- mainLink.href = mainLink.href.replace(/\/$/, '') + '/jump-to/first-unread-message';
- }
- });
- }
- // Run once
- process();
- // Watch for dynamic content
- const observer = new MutationObserver(() => process());
- observer.observe(document.body, { childList: true, subtree: true });
- })();
Advertisement
Add Comment
Please, Sign In to add comment