tag:danbooru.me,2005:/forum_topics/15976 [Userscript] Twitter Image Searches and Stuff 2019-08-29T12:29:21-04:00 tag:danbooru.me,2005:ForumPost/159344 2019-08-29T12:18:25-04:00 2019-08-29T12:18:25-04:00 @BrokenEagle98: Pushed Version 7 which has a few new additions.... <p>Pushed <strong>Version 7</strong> which has a few new additions.</p><ul> <li><strong>Confirmation dialog on IQDB search</strong></li> <ul> <li>Activates only on multi-image tweets</li> <li>Does not activate when auto-clicked</li> <li>Can be turned off with a user setting</li> </ul> <li><strong>User setting for tweet stats display</strong></li> <ul><li>Disabling it hides that table</li></ul> <li><strong>Hide controls for disabled settings</strong></li> <ul> <li>Includes the following settings/controls:</li> <ul> <li>"Score highlights enabled" -&gt; "Artist highlight controls"</li> <ul> <li>"Artist highlights enabled" -&gt; "Fade level controls"</li> <li>"Artist highlights enabled" -&gt; "Hide level controls"</li> </ul> <li>"Autoclick IQDB enabled" -&gt; "Autoclick IQDB controls"</li> <li>"Tweet indicators enabled -&gt; "Tweet indicator controls"</li> </ul> </ul> <li><strong>Renamed "Database settings" to "Query settings"</strong></li> <li><strong>Optimized display of Twitter thumbnails</strong></li> </ul> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/156715 2019-05-05T18:52:29-04:00 2019-05-14T21:22:17-04:00 @BrokenEagle98: Pushed Version 6 that primarily adds support... <p>Pushed <strong>Version 6</strong> that primarily adds support for Twitter videos, which work pretty much the same as image tweets. For the download links (when enabled), it presents an image link for the thumbnail image and the video link for the highest quality video version available.</p><h6>Minor versions</h6><ul> <li>(2019-04-22)</li> <ul> <li><strong>6.1</strong></li> <ul> <li>Fixed age string for low intervals</li> <li>Add use of "only" parameter</li> <ul><li>Should on average make network requests faster</li></ul> </ul> <li> <strong>6.2</strong> - Fixed bug with re-rendering after settings change</li> </ul> <li>(2019-05-14)</li> <ul><li> <strong>6.3</strong> - Fixed upgrade message</li></ul> </ul> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/156327 2019-04-19T15:27:01-04:00 2019-04-25T00:30:47-04:00 @BrokenEagle98: Pushed Version 5 which has several new... <p>Pushed <strong>Version 5</strong> which has several new additions.</p><ul> <li><strong>Inter-tab communication:</strong></li> <ul><li>Changes on one tab get reflected in other tabs.</li></ul> <li><strong>Instant settings changes:</strong></li> <ul><li>Beforehand most changes in the main menu required a page refresh.</li></ul> <li><strong>Increased side-menu functionality:</strong></li> <ul> <li>Set record position to latest. This will skip change records.</li> <li>Manually query the current record count.</li> </ul> <li><strong>Altered side-menu layout:</strong></li> <ul> <li>Items now line up better.</li> <li>Help text has been segregated into "?" hover/click links.</li> </ul> <li><strong>Additional hotkeys:</strong></li> <ul> <li>Alt+S to save main menu settings.</li> <li>Alt+R for factory reset.</li> </ul> <li><strong>Reset control for lists:</strong></li> <ul> <li>In the main menu.</li> <li>Factory Reset does not do this.</li> </ul> <li><strong>Original image information:</strong></li> <ul><li>Size/dimension on upload links.</li></ul> <li><strong>Tweet statistics:</strong></li> <ul> <li>Available on every timeline.</li> <li>Can be filtered by retweet, or tweet type (image, video, text).</li> </ul> <li><strong>More feedback messages</strong></li> </ul><h6>Minor versions</h6><ul> <li>(2019-04-22)</li> <ul> <li><strong>5.1</strong></li> <ul> <li>Added more feedback to help with installation &lt;<a class="dtext-link" href="/users/192811">fredgido</a>: Discord&gt;</li> <li>Removed dependency on fonts with the -/+ icons in the side menu</li> <li>Use page refresh for database install/upgrades instead</li> <li>Fix initialization of current records timestamp and broadcast to other tabs</li> <li>Fixed HTML escaping function</li> <li>Rework purge of bad tweets</li> </ul> </ul> <li>(2019-04-23)</li> <ul> <li><strong>5.2</strong></li> <ul> <li>Updated to latest version of library</li> <li>Reduced code size by ~10%</li> </ul> </ul> <li>(2019-04-24)</li> <ul> <li><strong>5.3</strong></li> <ul><li>Refactored code to separate text from functions</li></ul> </ul> </ul> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/155579 2019-03-20T19:11:33-04:00 2019-04-16T20:34:08-04:00 @BrokenEagle98: Pushed Version 4 which primarily adds advanced... <p>Pushed <strong>Version 4</strong> which primarily adds advanced tooltips to all postlinks, whereas before it was just IQDB matches. Additionally, the new advanced tooltips for both IQDB and regular postlinks have selectable thumbnails. On IQDB postlinks, selecting a thumbnails removes that post as an IQDB match from consideration. On regular postlinks, selecting a thumbnails sets up that post as a candidate for deletions. Still though, to complete the action, the postlink must be clicked and the postlist it presents must be confirmed.</p><p>Besides the tooltips, the fade/hide scheme for artist highlights was revised. Each level is no longer individually selectable. Instead the level selected represents the default cutoff (inclusive) for what levels will be faded/hidden. The "excellent" level is not an option, and the "poor" level is the bare minimum.</p><p>The above change allows the current fade/hide levels to be changed dynamically on the page. This can be done by other clicking the supplied links, or using the provided hotkeys. The current level for both stylings are shown in the side menu.</p><table class="striped"> <thead><tr> <th>Type</th> <th>Decrease</th> <th>Increase</th> </tr></thead> <tbody> <tr> <td>Fade</td> <td>Alt + -</td> <td>Alt + =</td> </tr> <tr> <td>Hide</td> <td>Alt + [</td> <td>Alt + ]</td> </tr> </tbody> </table><h1></h1><p><strong>Note:</strong> Artist highlights are still only available on the media timeline, and on the search timeline when the <code>from:</code> and <code>filter:images</code> metatags are used.</p><h6>Minor versions</h6><ul> <li>(2019-03-20)</li> <ul> <li><strong>4.1</strong></li> <ul><li>Fixed bug where Tweet indicator controls weren't being hidden on the Tweet view when disabled</li></ul> </ul> <li>(2019-04-02)</li> <ul> <li><strong>4.2</strong></li> <ul> <li>Fixed user ID not being normalized to string</li> <ul><li>Caused the settings to not be saved for no highlights and auto IQDB</li></ul> <li>Prevent duplicate Tweet IDs from being saved</li> </ul> </ul> <li>(2019-04-16)</li> <ul> <li><strong>4.3</strong></li> <ul><li>Fixed score highlighting not working with low window sizes</li></ul> </ul> </ul> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/155367 2019-03-13T20:31:03-04:00 2019-03-20T18:55:48-04:00 @BrokenEagle98: Pushed Version 3 which adds an auto-click... <p>Pushed <strong>Version 3</strong> which adds an auto-click function to "Check IQDB" and also a function to manually catch the database up to current.</p><p>Since the auto-click can be network intensive, it has been restricted in several ways:</p><ul> <li>Must be enabled in the settings menu</li> <li>Must be enabled in the side menu (for each artist)</li> <ul><li>This was done because some artists upload a lot of garbage</li></ul> <li>Only available in certain views</li> <ul> <li>Individual tweet view</li> <li>Artist media timeline</li> <li>Search timeline when the <code>from:</code> and <code>filter:images</code> metatags are used</li> </ul> <li>IQDB misses are stored for a day</li> <ul><li>Misses can be manually reset</li></ul> </ul><p>The function to manually have the database caught up can be accessed by clicking the "<strong>Current records</strong>" link in the side menu. If it is "Up to date", then clicking will do nothing.</p><h6>Minor versions</h6><ul> <li>(2019-03-15)</li> <ul> <li><strong>3.1</strong></li> <ul><li>Added age to post tooltips</li></ul> </ul> <li>(2019-03-16)</li> <ul> <li><strong>3.2</strong></li> <ul><li>Added Upload link to Danbooru on image popups</li></ul> </ul> <li>(2019-03-17)</li> <ul> <li><strong>3.3</strong></li> <ul> <li>Started migration from using account names to user IDs</li> <ul><li>This is because the account name can change, but the user ID cannot</li></ul> <li>Optimized several UI controls so there's little delay in changing the display</li> </ul> </ul> <li>(2019-03-18)</li> <ul> <li><strong>3.4</strong></li> <ul> <li>Fixed bug with media navigation link</li> <li>Added a more aggressive transition to user IDs</li> </ul> </ul> </ul> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/155176 2019-03-06T23:38:29-05:00 2019-03-12T00:01:53-04:00 @BrokenEagle98: Minor versions* (2019-03-05) * 2.1 * Fixed post... <h6>Minor versions</h6><ul> <li>(2019-03-05)</li> <ul> <li><strong>2.1</strong></li> <ul><li>Fixed post info not loading onto tooltips in some cases</li></ul> </ul> <li>(2019-03-06)</li> <ul> <li><strong>2.2</strong></li> <ul><li>Fixed fade/hide stylings not being removed correctly sometimes</li></ul> </ul> <li>(2019-03-07)</li> <ul> <li><strong>2.3</strong></li> <ul><li>Fixed Tweet menu from being rendered on videos</li></ul> <li><strong>2.4</strong></li> <ul> <li>Added help links to Tweet menu</li> <li>Rerenders the Tweet menu on match/deletion</li> <li>Consistent left click behaviors</li> <li>Don't render advanced tooltips when autosave IQDB is enabled</li> </ul> </ul> </ul> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/155150 2019-03-05T21:46:15-05:00 2019-08-29T12:29:21-04:00 @BrokenEagle98: Twitter Image Searches and Stuff (TISAS)... <p>Twitter Image Searches and Stuff <strong>(TISAS)</strong> searches Danbooru database for tweet IDs, adds image search links, and highlights images based on Tweet favorites.</p><p>It is based off the idea of the popular userscript Pixiv Image Searches and Stuff (<strong>PISAS</strong>, <a class="dtext-link dtext-wiki-link" href="/wiki_pages/about%3Auserscripts">About:Userscripts</a>).</p><h4>Installation</h4><ul><li>Chrome/Firefox: Install <a rel="external nofollow noreferrer" class="dtext-link dtext-external-link dtext-named-external-link" href="http://tampermonkey.net/">Tampermonkey</a> </li></ul><h5>Project page</h5><ul><li><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://github.com/BrokenEagle/JavaScripts">https://github.com/BrokenEagle/JavaScripts</a></li></ul><h5>Main script</h5><p><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://raw.githubusercontent.com/BrokenEagle/JavaScripts/stable/Twitter_Image_Searches_and_Stuff.user.js">https://raw.githubusercontent.com/BrokenEagle/JavaScripts/stable/Twitter_Image_Searches_and_Stuff.user.js</a></p><h5>Updates</h5><p>This script was transferred from the Beta release published on Discord.</p><p><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://gist.github.com/BrokenEagle/dd9445d7e83d136716bb742228e50259">https://gist.github.com/BrokenEagle/dd9445d7e83d136716bb742228e50259</a></p><p><a href="/users?name=fredgido">@fredgido</a> helped Beta it and provided multiple suggestions and feedback.</p><p><strong>NOTE:</strong> The database scheme was altered from the beta to the production, and is now stored in a different location. To transfer the database, export the database using the beta (1.0-1.13), and then import it using the production (2.0+).</p><h5>Screenshots</h5><ul> <li>Single match postlink with basic tooltip popup, and download links enabled</li> <ul><li><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://cdn.discordapp.com/attachments/310653236870643712/553095418234404898/unknown.png">https://cdn.discordapp.com/attachments/310653236870643712/553095418234404898/unknown.png</a></li></ul> <li>Multiple match postlink with basic tooltip popup, and download links enabled</li> <ul><li><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://cdn.discordapp.com/attachments/310653236870643712/553095881415458846/unknown.png">https://cdn.discordapp.com/attachments/310653236870643712/553095881415458846/unknown.png</a></li></ul> <li>Score highlighting enabled showing colored borders and hiding of posts based upon the number of favorites</li> <ul><li><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://cdn.discordapp.com/attachments/310653236870643712/553096713095741450/unknown.png">https://cdn.discordapp.com/attachments/310653236870643712/553096713095741450/unknown.png</a></li></ul> <li>IQDB match postlink colored according to similarity with advanced tooltips enabled</li> <ul><li><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://cdn.discordapp.com/attachments/310653236870643712/553097386436722689/unknown.png">https://cdn.discordapp.com/attachments/310653236870643712/553097386436722689/unknown.png</a></li></ul> <li>Regular postlink with advanced tooltips enabled</li> <ul><li><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://cdn.discordapp.com/attachments/310653236870643712/558068299926208532/unknown.png">https://cdn.discordapp.com/attachments/310653236870643712/558068299926208532/unknown.png</a></li></ul> <li>Side menu available on most pages showing various statuses and controls</li> <ul><li><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://cdn.discordapp.com/attachments/310653236870643712/553100017372495874/unknown.png">https://cdn.discordapp.com/attachments/310653236870643712/553100017372495874/unknown.png</a></li></ul> <li>Tweet indicators and tweet counter shown in the main view</li> <ul><li><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://cdn.discordapp.com/attachments/310653236870643712/555534610486788106/unknown.png">https://cdn.discordapp.com/attachments/310653236870643712/555534610486788106/unknown.png</a></li></ul> <li>Media link, alternative location for download links (below), and tweet indicators shown in the tweet view</li> <ul><li><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://cdn.discordapp.com/attachments/310653236870643712/555536067529277470/unknown.png">https://cdn.discordapp.com/attachments/310653236870643712/555536067529277470/unknown.png</a></li></ul> <li>Fade/hide levels dynamically changed to the highest setting</li> <ul><li><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://cdn.discordapp.com/attachments/310653236870643712/558067671133061140/unknown.png">https://cdn.discordapp.com/attachments/310653236870643712/558067671133061140/unknown.png</a></li></ul> <li>Side menu with Tweet statistics shown</li> <ul><li><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://media.discordapp.net/attachments/310653236870643712/568881868263522356/unknown.png">https://media.discordapp.net/attachments/310653236870643712/568881868263522356/unknown.png</a></li></ul> <li>IQDB confirmation dialog with one only one image selected</li> <ul><li><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://cdn.discordapp.com/attachments/310653236870643712/616669988534747191/unknown.png">https://cdn.discordapp.com/attachments/310653236870643712/616669988534747191/unknown.png</a></li></ul> </ul><h5>Usage notes</h5><div class="expandable"> <div class="expandable-header"><input type="button" value="Show" class="expandable-button"></div> <div class="expandable-content"> <h6>Side menu</h6> <p>There is a side menu available on most pages which has various status information and controls.</p> <ul> <li> <strong>Database version</strong>: Will contain the database version #, or a link to Upgrade/Install the database.</li> <li> <strong>Current records</strong>: How far behind the database records are from what is on Danbooru.</li> <ul><li>Clicking the link will manually update the database until it is current.</li></ul> <li> <strong>Total records</strong>: The current number of records.</li> <li> <strong>Artist highlights</strong>: Disables Tweet fading/hiding when Tweet highlighting is used (see Artist highlights below).</li> <ul><li>The setting only affects the current Twitter account.</li></ul> <li> <strong>Autoclick IQDB</strong>: Enables auto-clicking in applicable views (see Autoclick IQDB below).</li> <ul><li>The setting only affects the current Twitter account.</li></ul> <li> <strong>Tweet indicators</strong>: Hides Tweet indicator controls.</li> <ul><li>This setting is global across Twitter.</li></ul> </ul> <h6>Installation</h6> <p>When first installed, the script will make a network query getting the latest database information, and then refresh the page. At this point, there should be a link in the side menu "Install Database". Clicking this will download and install the database. This can take several minutes, and moving the focus away from the page will halt the process.</p> <h6>Settings</h6> <p>All available configurable settings are present in the settings menu. The settings menu can be opened by clicking the <strong>Settings</strong> button in the side menu. Settings can either be saved or reset by clicking one of the two buttons at the bottom of the menu.</p> <p>There are also controls in the settings menu which allow the exporting and importing of TISAS information. This allows for the information setup in one browser/computer to be transferred to another browser/computer.</p> <h6>Hotkeys</h6> <ul> <li>Alt+M: Open settings menu</li> <li>Alt+C: Close settings menu</li> <li>Alt+S: Save menu settings</li> <li>Alt+R: Reset menu settings</li> <li>Alt+H: Enable/Disable Tweet fading/hiding</li> <li>Alt+I: Show/Hide Tweet indicator controls</li> <li>Alt+Q: Enable/Disable Auto IQDB clicking</li> <li>Alt+-: Decrease fade level</li> <li>Alt+=: Increase fade level</li> <li>Alt+[: Decrease hide level</li> <li>Alt+]: Increase hide level</li> </ul> <h6>Tweet image controls</h6> <p>Depending on whether the Tweet is found in the database or not, TISAS will present various different links.</p> <ul> <li> <strong>no source</strong> - Nothing was found in the database.</li> <ul><li>Left clicking will allow manual adding of Danbooru post IDs.</li></ul> <li> <strong>post #</strong> - One post was found matching in the Tweet Database for that Tweet.</li> <ul> <li>Left clicking will allow the database information for that Tweet to be deleted.</li> <li>Right clicking will open the post show page for the found post.</li> </ul> <li> <strong># sources</strong> - More than one post was found matching in the Tweet Database for that Tweet.</li> <ul> <li>Left clicking will allow the database information for that Tweet to be deleted.</li> <li>Right clicking will open the post list page showing all found posts.</li> </ul> <li> <strong>Check URL</strong> - Left click to query Danbooru for that Tweet's URL.</li> <ul><li>Matches are automatically added to the Tweet Database.</li></ul> <li> <strong>Check IQDB</strong> - Left click to query Danbooru's IQDB with that Tweet's images.</li> <ul> <li>Matches are not automatically added to the Tweet Database, and must be confirmed by the user.</li> <li>Links are colored according to their IQDB score.</li> <ul> <li>95-100: Green</li> <li>90-95: Blue</li> <li>85-90: Orange</li> <li>80-85: Red</li> </ul> <li>Advanced tooltips are available to show the differences between Twitter and Danbooru side-by-side to help make the above determination.</li> <li>A green border will be added to a Danbooru thumbnail if it is a filesize match to the image on Twitter.</li> </ul> </ul> <h6>Artist highlights</h6> <p>Tweets are compared against other nearby Tweets based on their favorite count. A quartile system is used to assign tweets to various categories. Tweets are given a colored border based upon the category.</p> <ul> <li>Excellent - red border. <code>((Q3 + Max) / 2) -&gt; Max</code> </li> <li>Good - orange border. <code>Q3 -&gt; ((Q3 + Max) / 2)</code> </li> <li>Above average - green border. <code>Q2 -&gt; Q3</code> </li> <li>Fair - blue border. <code>Q1 -&gt; Q2</code> </li> <li>Below average - purple border. <code>((Q1 + Min) / 2) -&gt; Q1</code> </li> <li>Poor - black border. <code>Min -&gt; ((Q1 + Min) / 2)</code> </li> </ul> <p>Additionally, categories can either be faded or hidden. The factory settings are below average and poor are faded, and poor is hidden. The fade/hide level can also be dynamically increased/decreased by clicking the links in the side menu or using the provided hotkeys.</p> <p>Artist highlights are enabled by default. They are only visible from the Media timeline or from the Search timeline when the <code>from:</code> and <code>filter:images</code> metatags are used.</p> <h6>Download original</h6> <p>When enabled, all images from a Tweet can be downloaded with the original size and using a customizable filename format. Each link is numbered according to the order on Twitter, i.e. top -&gt; bottom, left -&gt; right. If there is more than one image, an "All images" download link will be presented.</p> <h6>Autoclick IQDB</h6> <p>This setting must be enabled in the main settings menu, and also in the side menu for each desired artist. It currently functions only in the Tweet view, the Media timeline for an artist, and the Search timeline when the <code>from:</code> and <code>filter:images</code> metatags are used.</p> <h6>Tweet indicators</h6> <p>Individual Tweets or all Tweets from an artist can be permanently or temporarily marked, and will continue to display even if the controls are hidden</p> <ul> <li><strong>Mark</strong></li> <ul><li>Will permanently mark tweets/artist.</li></ul> <li><strong>Count</strong></li> <ul> <li>Will temporarily mark tweets/artist.</li> <li>Has a counter showing how many of each have been counted.</li> <li>All page transitions reset the counter, except for to/from a Tweet.</li> </ul> </ul> <p>Tweet indicators are disabled by default. They are visible from every page.</p> <h6>Tweet statistics</h6> <p>Shown beneath the side menu. Displays the average number of replies, retweets, and favorites for every timeline. Clicking one of the headers in the first two rows will narrow the search results by those categories. Clicking "<strong>Total</strong>" will reset it back to showing all.</p> </div> </div><h4>Final</h4><p>Any suggestions or feedback is appreciated.</p><h4>Latest edits</h4><ul> <li>(2019-08-29)</li> <ul> <li><strong>Version 7</strong></li> <ul> <li>Confirmation dialog on IQDB search</li> <li>User setting for tweet stats display</li> <li>Hide controls for disabled settings</li> <li>Renamed "Database settings" to "Query settings"</li> <li>Optimized display of Twitter thumbnails</li> </ul> </ul> </ul><h4>Versions</h4><div class="expandable"> <div class="expandable-header"><input type="button" value="Show" class="expandable-button"></div> <div class="expandable-content"><ul> <li>(2019-03-05)</li> <ul><li> <strong>Version 2</strong> - Initial production release</li></ul> <li>(2019-03-13)</li> <ul> <li><strong>Version 3</strong></li> <ul> <li>Added auto-IQDB function</li> <li>Added ability to manually catch up the database</li> </ul> </ul> <li>(2019-03-20)</li> <ul> <li>Added more screenshots</li> <li><strong>Version 4</strong></li> <ul> <li>Advanced tooltips on regular postlinks</li> <li>Dynamic changes to fade/hide levels for artist highlights</li> </ul> </ul> <li>(2019-04-19)</li> <ul> <li>Added another screenshot</li> <li><strong>Version 5</strong></li> <ul> <li>Broadcast changes on one tab to other tabs</li> <li>Rerender page elements after settings change</li> <li>Calculate and display average Tweet/Retweet data</li> <li>Side menu layout change</li> <li>Several function additions</li> </ul> </ul> <li>(2019-05-05)</li> <ul> <li><strong>Version 6</strong></li> <ul><li>Added support for videos</li></ul> </ul> <li>(2019-08-29)</li> <ul> <li><strong>Version 7</strong></li> <ul> <li>Confirmation dialog on IQDB search</li> <li>User setting for tweet stats display</li> <li>Hide controls for disabled settings</li> <li>Renamed "Database settings" to "Query settings"</li> <li>Optimized display of Twitter thumbnails</li> </ul> </ul> </ul></div> </div> BrokenEagle98 /users/23799