SN-Koarashi / ig-helper

In Instagram, downloading is possible for both photos and videos from posts, as well as for stories, reels or profile picture.
GNU General Public License v3.0
41 stars 3 forks source link

Add even more unnecessary routes #26

Closed sn-o-w closed 3 months ago

sn-o-w commented 3 months ago
SN-Koarashi commented 3 months ago

header path[d="M14.232 3.656a1.269 1.269 0 0 1-.796-.66L12.93 2h-1.86l-.505.996a1.269 1.269 0 0 1-.796.66m-.001 16.688a1.269 1.269 0 0 1 .796.66l.505.996h1.862l.505-.996a1.269 1.269 0 0 1 .796-.66M3.656 9.768a1.269 1.269 0 0 1-.66.796L2 11.07v1.862l.996.505a1.269 1.269 0 0 1 .66.796m16.688-.001a1.269 1.269 0 0 1 .66-.796L22 12.93v-1.86l-.996-.505a1.269 1.269 0 0 1-.66-.796M7.678 4.522a1.269 1.269 0 0 1-1.03.096l-1.06-.348L4.27 5.587l.348 1.062a1.269 1.269 0 0 1-.096 1.03m11.8 11.799a1.269 1.269 0 0 1 1.03-.096l1.06.348 1.318-1.317-.348-1.062a1.269 1.269 0 0 1 .096-1.03m-14.956.001a1.269 1.269 0 0 1 .096 1.03l-.348 1.06 1.317 1.318 1.062-.348a1.269 1.269 0 0 1 1.03.096m11.799-11.8a1.269 1.269 0 0 1-.096-1.03l.348-1.06-1.317-1.318-1.062.348a1.269 1.269 0 0 1-1.03-.096"] seems a setting icon. Why does it need to jump out of the main timer when it is detected?

Now I know there is an account called settings, but why is the regex for settings routing using (?!\/settings\/?$)\/settings(\/.*) ?

sn-o-w commented 3 months ago

header path[d="M14.232 3.656a1.269 1.269 0 0 1-.796-.66L12.93 2h-1.86l-.505.996a1.269 1.269 0 0 1-.796.66m-.001 16.688a1.269 1.269 0 0 1 .796.66l.505.996h1.862l.505-.996a1.269 1.269 0 0 1 .796-.66M3.656 9.768a1.269 1.269 0 0 1-.66.796L2 11.07v1.862l.996.505a1.269 1.269 0 0 1 .66.796m16.688-.001a1.269 1.269 0 0 1 .66-.796L22 12.93v-1.86l-.996-.505a1.269 1.269 0 0 1-.66-.796M7.678 4.522a1.269 1.269 0 0 1-1.03.096l-1.06-.348L4.27 5.587l.348 1.062a1.269 1.269 0 0 1-.096 1.03m11.8 11.799a1.269 1.269 0 0 1 1.03-.096l1.06.348 1.318-1.317-.348-1.062a1.269 1.269 0 0 1 .096-1.03m-14.956.001a1.269 1.269 0 0 1 .096 1.03l-.348 1.06 1.317 1.318 1.062-.348a1.269 1.269 0 0 1 1.03.096m11.799-11.8a1.269 1.269 0 0 1-.096-1.03l.348-1.06-1.317-1.318-1.062.348a1.269 1.269 0 0 1-1.03-.096"] seems a setting icon. Why does it need to jump out of the main timer when it is detected?

Now I know there is an account called settings, but why is the regex for settings routing using (?!\/settings\/?$)\/settings(\/.*) ?

  1. Yes, it's the settings icon. But I added header tag as well, so it will detect the settings icon specific to your profile page. So that only appears when you view your own profile. If you click on the left side on More, you will see exactly the same settings icon. But that icon is not part of any tag header.

  2. "settings" pathname is used at least on two pages: https://www.instagram.com/settings/help/ and https://www.instagram.com/settings/help/account_status/

SN-Koarashi commented 3 months ago
  1. Why do you need to check whether it is on your own profile page?
  2. The "settings" as an account name seems trickier because it also pops up the main timer when you view his reels (/settings/reels).
sn-o-w commented 3 months ago
  1. Why do you need to check whether it is on your own profile page?
  2. The "settings" as an account name seems trickier because it also pops up the main timer when you view his reels (/settings/reels).
  1. Because it's useless on your own profile? šŸ˜† Would anybody need a button to download its own profile pic?! Besides, I tested an older version, v2.25.3 (released almost one month ago), the profile pic button doesn't spawn on your profile page. So it wasn't working, anyway. But, again... Would anybody need a button to download its profile pic?! šŸ¤”

  2. Hmmm, I can use settings/help and everything that starts with settings/help/ then. šŸ¤”

sn-o-w commented 3 months ago

I made the change related to settings/help and everything that starts with settings/help/