Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PRESET REQUEST] Twitter #30

Closed
ctrlcmdshft opened this issue Jun 15, 2020 · 11 comments
Closed

[PRESET REQUEST] Twitter #30

ctrlcmdshft opened this issue Jun 15, 2020 · 11 comments
Labels
enhancement New feature or request

Comments

@ctrlcmdshft
Copy link

Preset destination
Tweetbot - com.tapbots.Tweetbot4

Preset target
Twitter - com.atebits.Tweetie2

URL Scheme Info
Not sure on this one

@ctrlcmdshft ctrlcmdshft added the enhancement New feature or request label Jun 15, 2020
@compilingEntropy
Copy link

compilingEntropy commented Jun 18, 2020

This one is pretty easy.

URL Scheme: https://tapbots.net/tweetbot3/support/url-schemes/
(Tweetbot4 has the same scheme as Tweetbot3)

I’ve been running the following for a week or two and it works for the main things, although it may need more testing.

Actions:
1:
Regex: .*twitter.com/[^/]+/?$
Blueprint:

  • Text: tweetbot://
  • Path
  • Text: /user_profile/
  • Path

2:
Regex: .*twitter.com.*
Blueprint:

  • Text: tweetbot://
  • Path

@ctrlcmdshft
Copy link
Author

Thank you so far so good working as intended

@LorenzoPane
Copy link
Owner

Hi, great work! Has tweetbot 4 been taken off the app store? I can't seem to find it. I bought tweetbot 5 to test, but I'm unable to get those schemes to work :/. I'd like to include this once I can confirm it is working.

@ctrlcmdshft
Copy link
Author

ctrlcmdshft commented Jun 18, 2020

Tweetbot 5 is the current version and still uses com.tapbots.Tweetbot4 it was done that way to get around some twitter changes for 3rd party apps

@LorenzoPane
Copy link
Owner

Aha I see. Thanks! I also ended up getting the scheme to work; I think I was misreading the documentation. I'll push an official preset this weekend :)

@ctrlcmdshft
Copy link
Author

After testing some this isn’t fully working like I thought if you go to this link https://www.reddit.com/r/jailbreak/comments/cs29co/comment/exc288g on phone then click link in thread it opens Tweetbot but doesn’t open to tweet

@LorenzoPane
Copy link
Owner

Does it work better after 64e94ea?

@ctrlcmdshft
Copy link
Author

How do I test that to see

@LorenzoPane
Copy link
Owner

I'm away from a computer, so I can't build a deb for you, but if you want to add it manually:

Action 1
--------
regex: ".*twitter.com/[^/]+/?$"
outline: [
    Constant String: "tweetbotbot:///user_profile/"
    Path
]

Action 2
--------
Regex: ".*twitter.com/i/lists/.*$"
outline:[
    Constant string: "tweetbot:///list/"
    Regex Substitution
        Regex: "^.*/i/lists/(\\d+).*$"
        Template:@"$1"
]

Action 3
--------
Regex: ".*twitter.com/.+/status/.*$"
Outline: [
    Constant String: "tweetbot:///status/" percentEncodingIterations:0],
    Regex Substitution
        Regex: "^.*/[^/]+/status/(\\d+).*$"
        Template: "$1"
]

Action 4
--------
Regex: ".*twitter.com.*"
Outline: [
    Constant String: "tweetbotbot:///"
    Path
]

All have 0 percent encoding iterations

@compilingEntropy
Copy link

After testing some this isn’t fully working like I thought if you go to this link https://www.reddit.com/r/jailbreak/comments/cs29co/comment/exc288g on phone then click link in thread it opens Tweetbot but doesn’t open to tweet

I am not able to reproduce; the link you specified does open the tweet in tweetbot for me using the settings I originally posted. It looks like the configuration that @LorenzoPane posted above is a bit more comprehensive though, so I suspect we’ll all get better results with that.

@DimitarNestorov
Copy link

Do you know what the actions should be to open the official Twitter app?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants