Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

The New Coffee Room

  1. TNCR
  2. General Discussion
  3. Twitter vs x - url treatment by the forum

Twitter vs x - url treatment by the forum

Scheduled Pinned Locked Moved General Discussion
12 Posts 4 Posters 50 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jon-nyc
    wrote on 8 Sept 2023, 07:09 last edited by jon-nyc 9 Aug 2023, 07:10
    #1

    I was noticing all my Twitter links were showing up as naked urls but George’s were still displaying correctly. Looking into it, I see that he was still using Twitter.com in his urls whereas mine were x.com.

    Just now I edited an x link and replaced x with Twitter and it displayed.

    I guess this is both a PSA and a question to the tech gurus if that’s something that can be fixed.

    George - do you go back and edit your links or are you somehow still able to copy Twitter links directly from the app or web version?

    Thank you for your attention to this matter.

    G 1 Reply Last reply 8 Sept 2023, 11:57
    • L Offline
      L Offline
      LuFins Dad
      wrote on 8 Sept 2023, 10:37 last edited by
      #2

      My bet is he’s copying links from the webpage utilizing the Twitter URL

      The Brad

      1 Reply Last reply
      • J jon-nyc
        8 Sept 2023, 07:09

        I was noticing all my Twitter links were showing up as naked urls but George’s were still displaying correctly. Looking into it, I see that he was still using Twitter.com in his urls whereas mine were x.com.

        Just now I edited an x link and replaced x with Twitter and it displayed.

        I guess this is both a PSA and a question to the tech gurus if that’s something that can be fixed.

        George - do you go back and edit your links or are you somehow still able to copy Twitter links directly from the app or web version?

        G Offline
        G Offline
        George K
        wrote on 8 Sept 2023, 11:57 last edited by
        #3

        @jon-nyc said in Twitter vs x - url treatment by the forum:

        George - do you go back and edit your links or are you somehow still able to copy Twitter links directly from the app or web version?

        I use the web version of "X" with safari. I just "copy" link and paste it into the forum:

        Screenshot 2023-09-08 at 6.54.50 AM.png

        https://t witter.com/TomBevanRCP/status/1700114280501129301?s=20

        The URL still shows as twitter. ⬆

        "Now look here, you Baltic gas passer... " - Mik, 6/14/08

        The saying, "Lite is just one damn thing after another," is a gross understatement. The damn things overlap.

        1 Reply Last reply
        • J Offline
          J Offline
          jon-nyc
          wrote on 8 Sept 2023, 12:01 last edited by
          #4

          Interesting, do the same thing from the app and it shows up as x

          Thank you for your attention to this matter.

          1 Reply Last reply
          • K Offline
            K Offline
            Klaus
            wrote on 8 Sept 2023, 13:13 last edited by
            #5

            1 Reply Last reply
            • K Offline
              K Offline
              Klaus
              wrote on 8 Sept 2023, 13:13 last edited by
              #6

              1 Reply Last reply
              • K Offline
                K Offline
                Klaus
                wrote on 8 Sept 2023, 13:14 last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                • K Offline
                  K Offline
                  Klaus
                  wrote on 8 Sept 2023, 13:29 last edited by
                  #8

                  Looks like I managed to make it work for both twitter.com and x.com URLs!

                  1 Reply Last reply
                  • G Offline
                    G Offline
                    George K
                    wrote on 8 Sept 2023, 13:32 last edited by
                    #9

                    Outstanding. Now @jon-nyc can stop complaining.

                    "Now look here, you Baltic gas passer... " - Mik, 6/14/08

                    The saying, "Lite is just one damn thing after another," is a gross understatement. The damn things overlap.

                    1 Reply Last reply
                    • K Offline
                      K Offline
                      Klaus
                      wrote on 8 Sept 2023, 13:33 last edited by Klaus 9 Aug 2023, 13:33
                      #10

                      I'm sure you are all dying to know how I did this: I cloned the repository of the plugin and changed the regular expression that searches for twitter URLs to also include x.com URLs.

                      Specifically, I replaced this line of code

                      const regularUrl = /<a href="(?:https?:\/\/)?(?:(?:(?:mobile|www)\.)?twitter\.com)\/([^\/"\s]*)\/statuse?s?\/([^\/"\s]*)(\/photo\/\d|)".*?>.+?<\/a>/g
                      

                      by this

                      const regularUrl = /<a href="(?:https?:\/\/)?(?:(?:(?:mobile|www)\.)?(twitter|x)\.com)\/([^\/"\s]*)\/statuse?s?\/([^\/"\s]*)(\/photo\/\d|)".*?>.+?<\/a>/g
                      

                      It was important for me to let you know about this.

                      1 Reply Last reply
                      • J Offline
                        J Offline
                        jon-nyc
                        wrote on 8 Sept 2023, 13:39 last edited by
                        #11

                        That’s exactly what George was going to suggest.

                        Thank you for your attention to this matter.

                        G 1 Reply Last reply 8 Sept 2023, 13:40
                        • J jon-nyc
                          8 Sept 2023, 13:39

                          That’s exactly what George was going to suggest.

                          G Offline
                          G Offline
                          George K
                          wrote on 8 Sept 2023, 13:40 last edited by
                          #12

                          @jon-nyc said in Twitter vs x - url treatment by the forum:

                          That’s exactly what George was going to suggest.

                          alt text

                          "Now look here, you Baltic gas passer... " - Mik, 6/14/08

                          The saying, "Lite is just one damn thing after another," is a gross understatement. The damn things overlap.

                          1 Reply Last reply
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes

                          10/12

                          8 Sept 2023, 13:33


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          10 out of 12
                          • First post
                            10/12
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups