Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • 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
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. Feedback
  3. Import costume from url & user id

Import costume from url & user id

Scheduled Pinned Locked Moved Feedback
feature-requestfeedbackcreaticode
33 Posts 3 Posters 6.9k Views 1 Watching
  • 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.
  • Tyller_T Tyller_

    @jeffreyrb03-gmail alright, thats really neat (bit confused how it can bypass proxy filters though)

    JaecadeJnightJ Offline
    JaecadeJnightJ Offline
    JaecadeJnight
    Mod Helper
    wrote on last edited by
    #11

    @tyller_ https://play.creaticode.com/projects/67 068a6c6491cfeaeaa1b22c?version=1

    #LLJW
    <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

    1 Reply Last reply
    0
    • Tyller_T Tyller_

      @jeffreyrb03-gmail alright, thats really neat (bit confused how it can bypass proxy filters though)

      JaecadeJnightJ Offline
      JaecadeJnightJ Offline
      JaecadeJnight
      Mod Helper
      wrote on last edited by
      #12

      @tyller_ I’m not sure either, probably because CreatiCode is a trusted site, so filters mistakenly trust the iframes too, but this doesn’t work against firewalls like blocksi or fortiguard. the project link I gave is a wip, but you can run it and it works

      #LLJW
      <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

      1 Reply Last reply
      0
      • Tyller_T Tyller_

        @jeffreyrb03-gmail alright, thats really neat (bit confused how it can bypass proxy filters though)

        JaecadeJnightJ Offline
        JaecadeJnightJ Offline
        JaecadeJnight
        Mod Helper
        wrote on last edited by
        #13

        @tyller_ this is also doing stuff to try to get metadata from a page like getting page titles by extracting the value of the title tag, as well as other stuff. If I can figure out more bypass things or make specific conditionals to parse page stuff, this could work like a real browser. It might even be useful for me to utilize AI blocks to extract stuff easier without using regex, but it’d be a bit annoying, might not work all the time, and might give out when too many requests get sent to it.

        I’m also planning to manually add support for sites like google

        #LLJW
        <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

        CreatiCodeI 1 Reply Last reply
        0
        • JaecadeJnightJ JaecadeJnight

          @tyller_ this is also doing stuff to try to get metadata from a page like getting page titles by extracting the value of the title tag, as well as other stuff. If I can figure out more bypass things or make specific conditionals to parse page stuff, this could work like a real browser. It might even be useful for me to utilize AI blocks to extract stuff easier without using regex, but it’d be a bit annoying, might not work all the time, and might give out when too many requests get sent to it.

          I’m also planning to manually add support for sites like google

          CreatiCodeI Offline
          CreatiCodeI Offline
          CreatiCode
          wrote on last edited by
          #14

          @jeffreyrb03-gmail

          Glad to see you are having fun with iFrames and serving as our red team. IFrames are very secure, so they shouldn’t leak any information. If you do find anything dangerous, please let us know.

          JaecadeJnightJ 1 Reply Last reply
          1
          • CreatiCodeI CreatiCode

            @jeffreyrb03-gmail

            Glad to see you are having fun with iFrames and serving as our red team. IFrames are very secure, so they shouldn’t leak any information. If you do find anything dangerous, please let us know.

            JaecadeJnightJ Offline
            JaecadeJnightJ Offline
            JaecadeJnight
            Mod Helper
            wrote on last edited by jeffreyrb03-gmail
            #15

            @info-creaticode I will, thank you! I’m also expanding this project to be like a full on browser and useful tool for researching (it will make article pages faster and have options to summarize using AI):
            fe10647b-2eff-4b54-8853-0e62a1c308c5-image.png
            I don’t think you guys have rules against proxies, but just so you know, this is only able to bypass faulty/defective blocking filters, and its purpose isn’t malicious or meant to aid people in getting around restrictions or otherwise act like a browser in a browser.
            Edit: I don’t think it can access inappropriate sites anyways because how the cloud fetch URL as markdown block works

            #LLJW
            <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

            CreatiCodeI 1 Reply Last reply
            0
            • JaecadeJnightJ JaecadeJnight

              @info-creaticode I will, thank you! I’m also expanding this project to be like a full on browser and useful tool for researching (it will make article pages faster and have options to summarize using AI):
              fe10647b-2eff-4b54-8853-0e62a1c308c5-image.png
              I don’t think you guys have rules against proxies, but just so you know, this is only able to bypass faulty/defective blocking filters, and its purpose isn’t malicious or meant to aid people in getting around restrictions or otherwise act like a browser in a browser.
              Edit: I don’t think it can access inappropriate sites anyways because how the cloud fetch URL as markdown block works

              CreatiCodeI Offline
              CreatiCodeI Offline
              CreatiCode
              wrote on last edited by info-creaticode
              #16

              The following blocks have been added to the playground:

              1. “user id” in Sensing, which returns the unique id of the current user

              2. AI image search in “AI”: a reporter block that returns the URL of an AI-generated image from the library based on a search query. Note that this does not generate new images, but searches among existing images generated by AI, so it is much faster.

              beab9213-dfe1-434d-bf1b-111c9ee1aad0-image.png

              1. add image from a URL as costume in “Looks”. You scale down the image to a maximum width/height:

              4396ec75-de40-45ff-8c0c-7a5dd067e633-image.png

              Note that #2 and #3 can be combined to add an AI image as a costume:

              fa30c921-3016-4f60-9b9a-5135bd94b908-image.png

              JaecadeJnightJ Tyller_T 2 Replies Last reply
              1
              • CreatiCodeI CreatiCode

                The following blocks have been added to the playground:

                1. “user id” in Sensing, which returns the unique id of the current user

                2. AI image search in “AI”: a reporter block that returns the URL of an AI-generated image from the library based on a search query. Note that this does not generate new images, but searches among existing images generated by AI, so it is much faster.

                beab9213-dfe1-434d-bf1b-111c9ee1aad0-image.png

                1. add image from a URL as costume in “Looks”. You scale down the image to a maximum width/height:

                4396ec75-de40-45ff-8c0c-7a5dd067e633-image.png

                Note that #2 and #3 can be combined to add an AI image as a costume:

                fa30c921-3016-4f60-9b9a-5135bd94b908-image.png

                JaecadeJnightJ Offline
                JaecadeJnightJ Offline
                JaecadeJnight
                Mod Helper
                wrote on last edited by
                #17

                @info-creaticode Awesome!Thank you!

                #LLJW
                <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

                1 Reply Last reply
                0
                • CreatiCodeI CreatiCode

                  The following blocks have been added to the playground:

                  1. “user id” in Sensing, which returns the unique id of the current user

                  2. AI image search in “AI”: a reporter block that returns the URL of an AI-generated image from the library based on a search query. Note that this does not generate new images, but searches among existing images generated by AI, so it is much faster.

                  beab9213-dfe1-434d-bf1b-111c9ee1aad0-image.png

                  1. add image from a URL as costume in “Looks”. You scale down the image to a maximum width/height:

                  4396ec75-de40-45ff-8c0c-7a5dd067e633-image.png

                  Note that #2 and #3 can be combined to add an AI image as a costume:

                  fa30c921-3016-4f60-9b9a-5135bd94b908-image.png

                  Tyller_T Offline
                  Tyller_T Offline
                  Tyller_
                  trusted helpers
                  wrote on last edited by
                  #18

                  @info-creaticode an issue, I planned to get the pfp of users, I checked with two other accounts and in the url of each pfp there is a second random string of numbers 748b3137-9e16-49f0-8fc1-03d917893fc4-image.png, how would I get a user’s pfp, Ik it’s some file storage stuff, but I’m going to try to find a workaround, it’s just a minor annoyance

                  <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
                  </div>

                  JaecadeJnightJ 1 Reply Last reply
                  1
                  • Tyller_T Tyller_

                    @info-creaticode an issue, I planned to get the pfp of users, I checked with two other accounts and in the url of each pfp there is a second random string of numbers 748b3137-9e16-49f0-8fc1-03d917893fc4-image.png, how would I get a user’s pfp, Ik it’s some file storage stuff, but I’m going to try to find a workaround, it’s just a minor annoyance

                    JaecadeJnightJ Offline
                    JaecadeJnightJ Offline
                    JaecadeJnight
                    Mod Helper
                    wrote on last edited by jeffreyrb03-gmail
                    #19

                    @tyller_ To get a user’s pfp, you have to read their profile page HTML using their user id and then parse some stuff to get their profile picture from there (since profile pictures are public and are shown on that page).

                    You can get the HTML of a page by using the thing to get a page as markdown but putting “view-source:” before the URL that you are going to read, and then doing some trimming by removing the unnessescary lines and stuff and then reading the src attribute of the profile picture image (wherever the pfp is normally located in terms of the HTML page structure).

                    I’m using a similar method to get the title of a website by getting a website’s source code (ex:“view-source:https://google.com”) then reading the content of the <title> tag for my iframe powered browser project. What you could do is join “view-source:https://play.creaticode.com/users/” and the user id, and then read that to a variable (using the cloud block read page as markdown), then look for wherever the profile pic image of the user is (should be near like the about me section) and then get the URL of that image by reading the src attribute. Then you can display that image (via its URL) to a widget.

                    #LLJW
                    <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

                    Tyller_T 2 Replies Last reply
                    0
                    • JaecadeJnightJ JaecadeJnight

                      @tyller_ To get a user’s pfp, you have to read their profile page HTML using their user id and then parse some stuff to get their profile picture from there (since profile pictures are public and are shown on that page).

                      You can get the HTML of a page by using the thing to get a page as markdown but putting “view-source:” before the URL that you are going to read, and then doing some trimming by removing the unnessescary lines and stuff and then reading the src attribute of the profile picture image (wherever the pfp is normally located in terms of the HTML page structure).

                      I’m using a similar method to get the title of a website by getting a website’s source code (ex:“view-source:https://google.com”) then reading the content of the <title> tag for my iframe powered browser project. What you could do is join “view-source:https://play.creaticode.com/users/” and the user id, and then read that to a variable (using the cloud block read page as markdown), then look for wherever the profile pic image of the user is (should be near like the about me section) and then get the URL of that image by reading the src attribute. Then you can display that image (via its URL) to a widget.

                      Tyller_T Offline
                      Tyller_T Offline
                      Tyller_
                      trusted helpers
                      wrote on last edited by
                      #20

                      @jeffreyrb03-gmail alr, I never would of actually thought to use view source to get the actual stuff instead of markdown, thx

                      <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
                      </div>

                      1 Reply Last reply
                      1
                      • JaecadeJnightJ JaecadeJnight

                        @tyller_ To get a user’s pfp, you have to read their profile page HTML using their user id and then parse some stuff to get their profile picture from there (since profile pictures are public and are shown on that page).

                        You can get the HTML of a page by using the thing to get a page as markdown but putting “view-source:” before the URL that you are going to read, and then doing some trimming by removing the unnessescary lines and stuff and then reading the src attribute of the profile picture image (wherever the pfp is normally located in terms of the HTML page structure).

                        I’m using a similar method to get the title of a website by getting a website’s source code (ex:“view-source:https://google.com”) then reading the content of the <title> tag for my iframe powered browser project. What you could do is join “view-source:https://play.creaticode.com/users/” and the user id, and then read that to a variable (using the cloud block read page as markdown), then look for wherever the profile pic image of the user is (should be near like the about me section) and then get the URL of that image by reading the src attribute. Then you can display that image (via its URL) to a widget.

                        Tyller_T Offline
                        Tyller_T Offline
                        Tyller_
                        trusted helpers
                        wrote on last edited by Tyller_
                        #21

                        @jeffreyrb03-gmail it doesn’t work likely because it’s loaded after, I used my source bookmarklet and holy, CreatiCode can you guys plsssssssss use some css files, I’ma check forum pfps for it

                        Edit: find in my view source has found it in regular user profiles, but it’s too big of a source for it to actually bother scrolling me all the way there

                        Edit 2: nvm it shows that theres 1 of 1 found, but scrolls me to the top, but searching for the tag which is probably around the pfp url is the same result

                        <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
                        </div>

                        CreatiCodeI 1 Reply Last reply
                        1
                        • Tyller_T Tyller_

                          @jeffreyrb03-gmail it doesn’t work likely because it’s loaded after, I used my source bookmarklet and holy, CreatiCode can you guys plsssssssss use some css files, I’ma check forum pfps for it

                          Edit: find in my view source has found it in regular user profiles, but it’s too big of a source for it to actually bother scrolling me all the way there

                          Edit 2: nvm it shows that theres 1 of 1 found, but scrolls me to the top, but searching for the tag which is probably around the pfp url is the same result

                          CreatiCodeI Offline
                          CreatiCodeI Offline
                          CreatiCode
                          wrote on last edited by
                          #22

                          @tyller_

                          So you are looking for a block in the playground that would return the URL of the forum profile image of any user given their user id?

                          That’ll not be easy, since the forum is a third party software (NodeBB).

                          Tyller_T 1 Reply Last reply
                          1
                          • CreatiCodeI CreatiCode

                            @tyller_

                            So you are looking for a block in the playground that would return the URL of the forum profile image of any user given their user id?

                            That’ll not be easy, since the forum is a third party software (NodeBB).

                            Tyller_T Offline
                            Tyller_T Offline
                            Tyller_
                            trusted helpers
                            wrote on last edited by
                            #23

                            @info-creaticode I just want to display the pfp of a user in a chat rooms project I have, I only looked at forums becasue I can’t find a users pfp in the view source of their user page, I wouldn’t be able to use forums because people may of changed their username from when tehy made a forum acc

                            <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
                            </div>

                            CreatiCodeI 1 Reply Last reply
                            0
                            • Tyller_T Tyller_

                              @info-creaticode I just want to display the pfp of a user in a chat rooms project I have, I only looked at forums becasue I can’t find a users pfp in the view source of their user page, I wouldn’t be able to use forums because people may of changed their username from when tehy made a forum acc

                              CreatiCodeI Offline
                              CreatiCodeI Offline
                              CreatiCode
                              wrote on last edited by
                              #24

                              @tyller_

                              How about the profile image of a user on the CreatiCode playground (not the forum)?

                              Tyller_T 1 Reply Last reply
                              0
                              • CreatiCodeI CreatiCode

                                @tyller_

                                How about the profile image of a user on the CreatiCode playground (not the forum)?

                                Tyller_T Offline
                                Tyller_T Offline
                                Tyller_
                                trusted helpers
                                wrote on last edited by
                                #25

                                @info-creaticode I tried that, that’s what I meant when I said I couldn’t find the pfp in regular get page as markdown or going to the page and didn’t through view source, I tried control f but the view source I have is too big to scroll for me, I’ll try checking the fetched markdown source for the image url, I for some reason didn’t think to try that

                                <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
                                </div>

                                CreatiCodeI 1 Reply Last reply
                                0
                                • Tyller_T Tyller_

                                  @info-creaticode I tried that, that’s what I meant when I said I couldn’t find the pfp in regular get page as markdown or going to the page and didn’t through view source, I tried control f but the view source I have is too big to scroll for me, I’ll try checking the fetched markdown source for the image url, I for some reason didn’t think to try that

                                  CreatiCodeI Offline
                                  CreatiCodeI Offline
                                  CreatiCode
                                  wrote on last edited by
                                  #26

                                  @tyller_

                                  So if we add a new block “get profile URL for user [USER ID]”, then that’ll be good enough for you?

                                  Tyller_T JaecadeJnightJ 3 Replies Last reply
                                  1
                                  • CreatiCodeI CreatiCode

                                    @tyller_

                                    So if we add a new block “get profile URL for user [USER ID]”, then that’ll be good enough for you?

                                    Tyller_T Offline
                                    Tyller_T Offline
                                    Tyller_
                                    trusted helpers
                                    wrote on last edited by
                                    #27

                                    @info-creaticode I believe I’ve found aw way to get the pfp url, and a block like that would be a bit too specific while it would be generally useful for chat projects, but it isn’t neccasary

                                    <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
                                    </div>

                                    1 Reply Last reply
                                    0
                                    • CreatiCodeI CreatiCode

                                      @tyller_

                                      So if we add a new block “get profile URL for user [USER ID]”, then that’ll be good enough for you?

                                      Tyller_T Offline
                                      Tyller_T Offline
                                      Tyller_
                                      trusted helpers
                                      wrote on last edited by
                                      #28

                                      @info-creaticode never mind what I said, I have found that the pfp is indeed not in the source of the user page, if you added a block like that it would be able to do what nothing else can do

                                      <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
                                      </div>

                                      JaecadeJnightJ 1 Reply Last reply
                                      1
                                      • CreatiCodeI CreatiCode

                                        @tyller_

                                        So if we add a new block “get profile URL for user [USER ID]”, then that’ll be good enough for you?

                                        JaecadeJnightJ Offline
                                        JaecadeJnightJ Offline
                                        JaecadeJnight
                                        Mod Helper
                                        wrote on last edited by
                                        #29

                                        @info-creaticode I think that he meant to get the creaticode (not forums) profile picture, and that’s a good idea! I like that block, especially because it’d be way more efficient than the method I proposed, and would be very useful.

                                        #LLJW
                                        <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

                                        CreatiCodeI 1 Reply Last reply
                                        0
                                        • JaecadeJnightJ JaecadeJnight

                                          @info-creaticode I think that he meant to get the creaticode (not forums) profile picture, and that’s a good idea! I like that block, especially because it’d be way more efficient than the method I proposed, and would be very useful.

                                          CreatiCodeI Offline
                                          CreatiCodeI Offline
                                          CreatiCode
                                          wrote on last edited by
                                          #30

                                          @jeffreyrb03-gmail

                                          Sure. We will add that task to our list.

                                          JaecadeJnightJ 1 Reply Last reply
                                          1

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          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
                                          • CreatiCode