[Userscript] New Twitter Image Searches and Stuff

Posted under General

Sorry to do this, but a Firefox restart nuked all my userscripts, and in trying to reinstall this one, I found it nigh-impossible to install the database, as it just links me to this thread instead of downloading the database from the script. I have no idea what I'm doing wrong, and would appreciate some help. (Yes, I tried downloading manually like above which didn't work for me.)

Knowledge_Seeker said:

Sorry to do this, but a Firefox restart nuked all my userscripts, and in trying to reinstall this one, I found it nigh-impossible to install the database, as it just links me to this thread instead of downloading the database from the script. I have no idea what I'm doing wrong, and would appreciate some help. (Yes, I tried downloading manually like above which didn't work for me.)

Which part didn't work? Downloading the database file from Google Drive? Or importing that file into NTISAS?

BrokenEagle98 said:

Which part didn't work? Downloading the database file from Google Drive? Or importing that file into NTISAS?

Okay, I think I figured out the problem. Turns out it was working just fine and I was just importing the wrong file as I wasn't used to the layout. No worries, just a user error on my end lol.

I see the upload button sometimes doesnt load and I have to close the image and click it agian, maybe the script should wait for some element to load? Sometimes it also loads some icons like the impressions icon under the image multiple times when opening the image to full view.

Updated by theo1996

theo1996 said:

I see the upload button sometimes doesnt load and I have to close the image and click it agian, maybe the script should wait for some element to load? Sometimes it also loads some icons like the impressions icon under the image multiple times when opening the image to full view.

This is a known issue. I'm considering doing the upload links differently instead. There would be a tweet upload link in the tweet NTISAS menu itself, then having a preview images dialog similar to that on the media timeline with upload links for each image/video.

when i click upload it uses a direct link to the image which gives a "bad source"

BrokenEagle98 said:

This is a known issue. I'm considering doing the upload links differently instead. There would be a tweet upload link in the tweet NTISAS menu itself, then having a preview images dialog similar to that on the media timeline with upload links for each image/video.

that sounds good

worldendDominator said:

If you try to upload an animation with the link under the image, the upload has only the first frame.
For example: asset #33279778 for post #10080965

This is a known issue. The upload link was original designed with images in mind, since back then tweets could only have multiple images and not multiple videos or a mix of videos/images. As I indicated previously, I need to just update the upload system.

Pushed Version 11 which includes:

  • Additions:
    • Additional caching of data
    • Separate database for imports
  • Changes:
    • The side menu is now free-floating
      • Hiding/showing the side menu resets its initial position
      • This is done by clicking the NTISAS link on the tweet menu
    • Alter the tweet menu
      • Collapsed search functionality to a single button
      • Moved upload/download functionality to their own buttons
    • Removed Auto-IQDB
    • Removed media link on tweet view
    • Removed upload link on photo/video view
    • Altered the visualization of viewed/seen tweets/info on the stream timelines
  • Twitter API changes
    • Removed usage of version 1.1; all endpoints now use GraphQL
    • Singular tweet grabs (downloads/uploads) use TweetDetail
      • With TweetResultByRestId as a backup
    • Multi tweet grabs (media timeline) use TweetResultsByRestIds
      • There is no backup
      • UserMedia can be used by enabling the use_alternate_tweets_API setting

The new tweet menu can be explained with the following chart:

buttonpositionhoverleft-click (single media)left-click (multi media)right-click
no sources1N/Amanually add postsmanually add postsN/A
post #####1show tooltip for postsmanually add postsmanually add postsN/A
Confirm1N/AReopen search confirmation dialogReopen search confirmation dialogN/A
Search2N/AQuery for image similarityOpen search dialog to select images for image query*Check for URL match
Upload3N/AUpload tweetOpen upload dialog to individually upload mediaUpload tweet
Search4N/ADownload mediaOpen download dialog to individually download mediaDownload all media

For the image similarity queries, the source is selected from the the side menu under Controls (hotkey Alt+Q). If there is a match, it'll automatically open a confirmation dialog. On no matches, it'll revert the link to its previous state.

If the pick image setting is disabled for the similarity source, then the left click on multi media acts like the left click on single media. If the auto save setting is enabled for the similarity source, then the results are automatically saved and no confirmation result will open. If the confirm save setting is disabled, then the results of the IQDB search will immediately be reflected in the tweet menu with either no sources or a post ID link. The results link can be reset back to its prior state by clicking it and confirming the reset. This essentially means that the results of similarity searches will never be saved to the tweet database.

The upload all with the left click or download all with either click can be given an optional confirmation from the side menu. The upload right click uses the context menu, which is already a form of confirmation. Using the upload all or download all from the upload/download dialogs bypasses this confirmation.

Updated by BrokenEagle98

BrokenEagle98 said:

Pushed Version 11 which includes:
....

Otsukaresama, but the media tab where all images are in a grid, doesnt have any upload buttons now. Media tab is very useful if i wan to upload a lot.

theo1996 said:

Otsukaresama, but the media tab where all images are in a grid, doesnt have any upload buttons now. Media tab is very useful if i wan to upload a lot.

When you click the icon in the lower right of an image on the grid, it opens up the media menu for that tweet. On that is the tweet menu which allows one to search/upload/download just like the other stream timelines.

1 2