Shop OBEX P1 Docs P2 Docs Learn Events
Propeller 2 Users: Get Started Here! - Page 2 — Parallax Forums

Propeller 2 Users: Get Started Here!

2»

Comments

  • Which page is the link that needs updating currently on ?

  • VonSzarvasVonSzarvas Posts: 3,484
    edited 2023-06-08 17:18

    @jrullan @evanh
    Ah... If I found the right place to update, then it's now done !
    Thanks for the suggestion.

  • @VonSzarvas said:
    @jrullan @evanh
    Ah... If I found the right place to update, then it's now done !
    Thanks for the suggestion.

    It works! Thanks!

  • evanhevanh Posts: 16,022
    edited 2023-06-08 21:53

    Lol, I have no idea. Where is it?

  • evanhevanh Posts: 16,022

    That's the target URL. What page was updated?

  • @evanh said:
    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..).

  • 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.

    <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.

  • evanhevanh Posts: 16,022

    @VonSzarvas said:
    Maybe you have javascript disabled ?

    Always. Never leave home with it.

  • @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.

    Yep! The solution is as elegant as it is bonkers :)

Sign In or Register to comment.