I was wondering, surely the forum software doesn't have a way to always link to the first post.
And indeed it does not. But this JS buried in the page source shure can.
amazing.
<script>
window.onload = function plxOverrides2() {
// 1
var a = document.querySelector('a[href="https://forums.parallax.com/discussion/173000/propeller-2-users-get-started-here#latest"]');
if (a) {
a.setAttribute('href', 'https://forums.parallax.com/discussion/173000/propeller-2-users-get-started-here/p1')
}
// 2
a = document.querySelector('a[href="https://forums.parallax.com/discussion/171704/propeller-2-live-forum-early-adopter-series-topics-speakers-and-registration#latest"]');
if (a) {
a.setAttribute('href', 'https://forums.parallax.com/discussion/171704/propeller-2-live-forum-early-adopter-series-topics-speakers-and-registration/p1')
}
// 3
a = document.querySelector('a[href="https://forums.parallax.com/discussion/169542/p2-links-for-where-to-obtain-tools-sample-test-code-reference-only#latest"]');
if (a) {
a.setAttribute('href', 'https://forums.parallax.com/discussion/169542/p2-links-for-where-to-obtain-tools-sample-test-code-reference-only/p1')
}
}
</script>
Also love that my Spin highlighter is also there, being loaded from scratch every time.
@Wuerfel_21 said:
I was wondering, surely the forum software doesn't have a way to always link to the first post.
And indeed it does not. But this JS buried in the page source shure can.
amazing.
<script>
window.onload = function plxOverrides2() {
// 1
var a = document.querySelector('a[href="https://forums.parallax.com/discussion/173000/propeller-2-users-get-started-here#latest"]');
if (a) {
a.setAttribute('href', 'https://forums.parallax.com/discussion/173000/propeller-2-users-get-started-here/p1')
}
// 2
a = document.querySelector('a[href="https://forums.parallax.com/discussion/171704/propeller-2-live-forum-early-adopter-series-topics-speakers-and-registration#latest"]');
if (a) {
a.setAttribute('href', 'https://forums.parallax.com/discussion/171704/propeller-2-live-forum-early-adopter-series-topics-speakers-and-registration/p1')
}
// 3
a = document.querySelector('a[href="https://forums.parallax.com/discussion/169542/p2-links-for-where-to-obtain-tools-sample-test-code-reference-only#latest"]');
if (a) {
a.setAttribute('href', 'https://forums.parallax.com/discussion/169542/p2-links-for-where-to-obtain-tools-sample-test-code-reference-only/p1')
}
}
</script>
Also love that my Spin highlighter is also there, being loaded from scratch every time.
Comments
Better still - https://forums.parallax.com/discussion/173000/propeller-2-users-get-started-here/p1
This works when logged in as well.
Which page is the link that needs updating currently on ?
@jrullan @evanh
Ah... If I found the right place to update, then it's now done !
Thanks for the suggestion.
It works! Thanks!
Lol, I have no idea. Where is it?
That's the target URL. What page was updated?
That target url (link) was updated. Used to point to #latest, and now points to 1st post.
No other changes made (to pages/etc..).
I'm confused. On the webpage https://forums.parallax.com/categories/propeller-2-multicore-microcontroller the "Get Started Here!" link is still https://forums.parallax.com/discussion/173000/propeller-2-users-get-started-here#latest
Maybe you have javascript disabled ?
I was wondering, surely the forum software doesn't have a way to always link to the first post.
And indeed it does not. But this JS buried in the page source shure can.
amazing.
Also love that my Spin highlighter is also there, being loaded from scratch every time.
Always. Never leave home with it.
Yep! The solution is as elegant as it is bonkers