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.
  • jon-nycJ jon-nyc

    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?

    George KG Offline
    George KG Offline
    George K
    wrote on 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
    • jon-nycJ Online
      jon-nycJ Online
      jon-nyc
      wrote on last edited by
      #4

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

      "You never know what worse luck your bad luck has saved you from."
      -Cormac McCarthy

      1 Reply Last reply
      • KlausK Offline
        KlausK Offline
        Klaus
        wrote on last edited by
        #5

        1 Reply Last reply
        • KlausK Offline
          KlausK Offline
          Klaus
          wrote on last edited by
          #6

          1 Reply Last reply
          • KlausK Offline
            KlausK Offline
            Klaus
            wrote on last edited by
            #7
            This post is deleted!
            1 Reply Last reply
            • KlausK Offline
              KlausK Offline
              Klaus
              wrote on last edited by
              #8

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

              1 Reply Last reply
              • George KG Offline
                George KG Offline
                George K
                wrote on 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
                • KlausK Offline
                  KlausK Offline
                  Klaus
                  wrote on last edited by Klaus
                  #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
                  • jon-nycJ Online
                    jon-nycJ Online
                    jon-nyc
                    wrote on last edited by
                    #11

                    That’s exactly what George was going to suggest.

                    "You never know what worse luck your bad luck has saved you from."
                    -Cormac McCarthy

                    George KG 1 Reply Last reply
                    • jon-nycJ jon-nyc

                      That’s exactly what George was going to suggest.

                      George KG Offline
                      George KG Offline
                      George K
                      wrote on 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


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups