Skip to content

Conversation

@Leo40Git
Copy link
Contributor

@Leo40Git Leo40Git commented Oct 9, 2025

"Rescued" from #5498 after the force push. See the original PR for details.

Shoutouts to @nyraa for the original PR!

…e copy action

Fixes #4259

Copied from nyraa@753921d
(I don't know how to rescue the commit history, so pretend they were squished)

Co-authored-by: nyraa <[email protected]>
Co-authored-by: LisoUseInAIKyrios <[email protected]>
@LisoUseInAIKyrios
Copy link
Contributor

Does the share by menu work with the highest supported target?

#5498 (comment)

@LisoUseInAIKyrios LisoUseInAIKyrios changed the title fix(Twitter - Change Link Sharing Domain): Change link domain of share copy action fix(X / Twitter - Change Link Sharing Domain): Change link domain of share copy action Oct 9, 2025
@Leo40Git
Copy link
Contributor Author

Leo40Git commented Oct 9, 2025

Oh yeah, I forgot about that. Will look into it.

(this is an untested mess oh god)
@Leo40Git
Copy link
Contributor Author

Leo40Git commented Oct 9, 2025

Experimental resource patch replacement, if I'm correct this should remove the need for any bytecode patching at all (not sure if the "Copy link..." action uses the same resources)

Now excuse me while I go figure out how the hell to test this

@Leo40Git
Copy link
Contributor Author

Leo40Git commented Oct 9, 2025

Should be fully working now!

@Swakshan
Copy link
Contributor

Swakshan commented Oct 9, 2025

Is this patch for changing the domain of the link when we use "Copy link" and "Share via" or did I understood it wrong ?

@Leo40Git
Copy link
Contributor Author

Leo40Git commented Oct 9, 2025

Yes, it is indeed that patch.

@Swakshan
Copy link
Contributor

Swakshan commented Oct 9, 2025

Oh if that's the case, why make it too complicated, when we can use the same fingerprint that we are using for sanitizing the url, where p0 register has the url that needs correction. This method is called for both share via and copy link or even for the app suggested present at the bottom tray.
This is what we are using at Piko as well and it works well even in the latest beta 11.28.

Or did you find any drawback in this approach ?

@LisoUseInAIKyrios
Copy link
Contributor

Modifying the resource is simple enough and it works. It may be more resilient than bytecode patching since resource names don't change often.

@Swakshan
Copy link
Contributor

Swakshan commented Oct 9, 2025

Oh, but it might break at other areas like sharing profile, articles, searches, lists or is it that those are not the scope of the patch ?

Edit: might also affect if we use the quick share app icons that are present at the bottom tray

@Leo40Git
Copy link
Contributor Author

Leo40Git commented Oct 9, 2025

This specific resource is only used when sharing tweets (it specifies the twitter.com/USER/status/ID link format, which is for tweets only), so that shouldn't be an issue. I don't believe any of the popular Twitter embed services support anything but tweet links, anyway.

Copy link
Contributor

@LisoUseInAIKyrios LisoUseInAIKyrios left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems ready to merge?

@Leo40Git
Copy link
Contributor Author

Everything's fully functional according to my testing, so ye

@LisoUseInAIKyrios LisoUseInAIKyrios merged commit 5484625 into ReVanced:dev Oct 10, 2025
1 check passed
@welcome
Copy link

welcome bot commented Oct 10, 2025

Thank you for contributing to ReVanced. Join us on Discord to receive a role for your contribution.

github-actions bot pushed a commit that referenced this pull request Oct 10, 2025
## [5.42.2-dev.2](v5.42.2-dev.1...v5.42.2-dev.2) (2025-10-10)

### Bug Fixes

* **X / Twitter - Change Link Sharing Domain:** Change link domain of share copy action ([#6091](#6091)) ([5484625](5484625))
github-actions bot pushed a commit that referenced this pull request Oct 14, 2025
# [5.43.0](v5.42.1...v5.43.0) (2025-10-14)

### Bug Fixes

* **Custom branding:** Use white notification icon for expanded status bar panel ([95eee59](95eee59))
* **Instagram - Change sharing domain:** Display patch option ([#6089](#6089)) ([be2b144](be2b144))
* **X / Twitter - Change Link Sharing Domain:** Change link domain of share copy action ([#6091](#6091)) ([5484625](5484625))
* **YouTube - Custom branding:** Do not add a broken custom icon if the user provides an invalid custom icon path ([6555f6e](6555f6e))
* **YouTube - Custom branding:** Use ReVanced icon for status bar notification icon ([#6108](#6108)) ([10ea250](10ea250))
* **YouTube - Force original audio:** Do not use translated audio if stream spoofing is off and force audio is on ([0c19dba](0c19dba))

### Features

* **Instagram:** Add `Hide suggested content` patch ([#6075](#6075)) ([50f0b9c](50f0b9c))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(X / Twitter): 'Change link sharing domain' does not use custom domainName option for 'Share via', only for 'Copy Link'

3 participants