New Twitter Image Searches and Stuff (NTISAS) searches the Danbooru database for tweet IDs, adds image search links, highlights images based on Tweet favorites, and provides a variety of additional user interface enhancements.
It works with the new layout that Twitter has recently released (July 2019). It is based off the idea of the popular userscript Pixiv Image Searches and Stuff (PISAS, About:Userscripts).
I'm getting an error looking through any tweet as of late. The error I get reads "Error marking up stream tweet!". Downgrading to an older version of this script has the same problem.
Debug console shows a lot of net::ERR_NAME_NOT_RESOLVED connection errors.
I'm getting an error looking through any tweet as of late. The error I get reads "Error marking up stream tweet!". Downgrading to an older version of this script has the same problem.
Yeah, that's to let me know when Twitter changes their page structure, since the script is very dependent on a stable structure. I've been working on an update to the script, but have had several other items that have also kept me busy. Regardless, I'll try to have what I've got cleaned up and pushed out by tomorrow. You can disable the script until then so that you don't keep getting those error messages.
Debug console shows a lot of net::ERR_NAME_NOT_RESOLVED connection errors.
Those have nothing to do with the script. It does the same thing even with all userscripts disabled. I'm thinking it might have to do with an extension, but as it doesn't have a lot to do with my scripts, I'm not really invested in finding about something that I can't really affect anyways.
HTTP 999:Bad error code! Failed to connect to remote server to get latest database info!
Any way to fix this?
Same. You can enable "Bypass server mode" in Settings -> Database in the meanwhile.
Since the thread is already bumped I might as well ask here: @BrokenEagle98, is there a reason why highlights and autoclick IQDB should only work on the media timeline? For logged-out users only the main user timeline is accessible, a logged-in user could have several artists in a Twitter List, in both cases those would be helpful.
HTTP 999:Bad error code! Failed to connect to remote server to get latest database info!
I'm not sure what steps you are taking to get that error. If you're trying to upgrade/install the DB, then I just tested both and it works fine for me.
Nameless_Contributor said:
Since the thread is already bumped I might as well ask here: @BrokenEagle98, is there a reason why highlights and autoclick IQDB should only work on the media timeline? For logged-out users only the main user timeline is accessible, a logged-in user could have several artists in a Twitter List, in both cases those would be helpful.
For the highlights, they are a comparison against a single standard, namely a single artist. If you start comparing multiple accounts, then it is inevitable that one or more artists' tweets will always take the top position, and the same being true for the bottom position. All that tells someone is that some artists are more popular than others, and nothing else really. Since the main timeline can include retweets from other accounts, that one is excluded as well. However, you may not have known, but even logged out users can still access the media timeline by using the search timeline, using at least the following search parameters from:SOMEGUY filter:media , replacing SOMEGUY with the name of the artist's Twitter account.
As to the autoclick IQDB, it is an extremely costly operation having to ping the Danbooru server for every single image on every single tweet, so I limited it to only the media timeline. This one wouldn't have the same cons as mentioned above for the Twitter lists though, so it could be added to that I suppose. I wouldn't add it to the main or the likes timeline though, since they more likely have junk images show up on those and thus a wasted IQDB query.
Edit:
Forgot to mention, but the autoclick IQDB is also currently available on the search timeline using the same search parameters as mentioned above.
Also, for the bad error code, check that you are not blocking Google Drive, which is where I'm storing the DB files. You can test it out using the following link.
I forgot to mention it, but filter:images and filter:video can be also be used instead of filter:media. The media filter is basically a combination of the two.
By the way, if you have an example Twitter list, I can start looking into adding autoclick IQDB to it as I mentioned above. However, it'll require a bit more development in order to add this feature, because currently it is setup only for artists, since as you may have noticed in the side menu you have to enable it for every artist you want it to be active on. Doing that basically adds the artist's ID to a list, so I'll have to think of an equivalent way to enable it for a particular list and have each list can be uniquely identified.
media_timeline_enabled - Function tab, user settings.
Counting views can be turned on/off
When views are enabled, the Count views control is added to the "controls" tab in the side menu.
Changes:
Removed the API hook
Doesn't work on all browsers and userscript managers.
Removed displaying retweet IDs
Depends on having API data.
Removed highlighting tweets
This was mainly only available on the media timeline, which no longer supports doing this.
Saves non-results on IQDB/Sauce searches
Beforehand if there were incorrect results, it would not save this status.
Fixes:
Post tooltip loading
You no longer need to hover over the post link, unhover, then rehover to get the tooltip to properly show up.
Multiple videos with download original
Video thumbnails are no longer individually shown, though the thumbnail URL is still made a link, so it can be right-click opened in another tab.
Other:
Removed the XRegExp library
Media timeline
Icons
Uses a mini-icon (lower right) to display Danbooru/Twitter status. The left side is green and shows a number if it has Danbooru posts, and grey with a dot otherwise. The right side shows a number if there is more than one image/video.
A square (upper left) is used to show Tweet views for when this option is enabled. Hovering over this shows the last time viewed, and how many time it has been viewed.
Media menu
Click the mini-icon to bring up the traditional NTISAS menu. It'll also show all available images/videos, which are clickable to either show a larger version of the image, or to play the video.
Tweets are only counted as being viewed on the media timeline when the media menu is accessed.
Network
This option queries the Twitter API, so it may cause the available API usage to run out, causing "HTTP 429 Too Many Requests" errors until the API usage resets.
The tweet database was changed to install in batches of 1000 tweets each, and then installs each batch periodically (currently every 15 seconds). This allows the initial install to take place very quickly, whereas before the install was taking up to an hour. .The actual loading of the individual tweets takes place gradually when each batch gets processed. To make this more effective for new installs, the batches are ordered by newest tweets first.
Additionally, there will no longer be an "Upgrade Database" notice, and this topic will no longer be updated when the database is. Instead, the database files will be uploaded to a Google Drive folder as the are created, with the date of creation annotated in the filename.