Twitter is in the process of slowly rolling out a new UI. This new UI results in the Buffer button on Twitter injected by the Extension to disappear. The data being sent to the composer also needs to be formatted correctly by grabbing data from selectors. The classes are dynamic and will change after every release, so trying to use selectors based on DOM hierarchy instead.
Notes:
This has been tricky to not use classes, since some of the hierarchy depends on what type of tweet it is (a reply to a tweet, a retweet, a tweet with an article etc). Because we're having to be so reliant on the DOM staying the same, we may have to update often.
If a user is re-tweeting a tweet, the new UI doesn't display the retweeted URL in the DOM. Example: https://twitter.com/Nicole_Cliffe/status/1133928309400588289) I'm assuming the url is getting triggered in an on-click in their logic. Since we don't have access to the url, we're not able to pass it to the composer. This only affects sharing on profiles that aren't twitter. It looks like the twitter-js package in the composer is able to format the data to get the url by the status ID once it's added to the queue
Twitter is in the process of slowly rolling out a new UI. This new UI results in the Buffer button on Twitter injected by the Extension to disappear. The data being sent to the composer also needs to be formatted correctly by grabbing data from selectors. The classes are dynamic and will change after every release, so trying to use selectors based on DOM hierarchy instead.
Notes:
This has been tricky to not use classes, since some of the hierarchy depends on what type of tweet it is (a reply to a tweet, a retweet, a tweet with an article etc). Because we're having to be so reliant on the DOM staying the same, we may have to update often.
If a user is re-tweeting a tweet, the new UI doesn't display the retweeted URL in the DOM. Example: https://twitter.com/Nicole_Cliffe/status/1133928309400588289) I'm assuming the url is getting triggered in an on-click in their logic. Since we don't have access to the url, we're not able to pass it to the composer. This only affects sharing on profiles that aren't twitter. It looks like the twitter-js package in the composer is able to format the data to get the url by the status ID once it's added to the queue
https://buffer.atlassian.net/browse/PUB-673