tag:danbooru.me,2005:/forum_topics/14420[Userscript] IQDB4Chan2018-01-21T16:55:49-05:00tag:danbooru.me,2005:ForumPost/1423032018-01-21T16:55:49-05:002018-01-21T16:55:49-05:00@BrokenEagle98: Pushed Version 5, which fixes incompatibilities...<p>Pushed <strong>Version 5</strong>, which fixes incompatibilities caused by the latest Greasemonkey/Tampermonkey versions.</p>BrokenEagle98/users/23799tag:danbooru.me,2005:ForumPost/1396492017-11-22T21:56:36-05:002017-11-22T21:56:36-05:00@BrokenEagle98: Pushed Version 4. Thanks to the resolution of...<p>Pushed <strong>Version 4</strong>. Thanks to the resolution of <a rel="external nofollow noreferrer" class="dtext-link dtext-id-link dtext-github-id-link" href="https://github.com/r888888888/danbooru/issues/3306">issue #3306</a>, I was able to add colored links and CSS classes to the post links.</p><p>The following is the current configuration:</p><ul>
<li>Class: very-high-similarity</li>
<ul>
<li>Default color: green</li>
<li>Score range: 95-100%</li>
</ul>
<li>Class: high-similarity</li>
<ul>
<li>Default color: blue</li>
<li>Score range: 90-95%</li>
</ul>
<li>Class: medium-high-similarity</li>
<ul>
<li>Default color: orange</li>
<li>Score range: 85-90&%</li>
</ul>
<li>Class: medium-similarity</li>
<ul>
<li>Default color: red</li>
<li>Score range: 80-85%</li>
</ul>
</ul>BrokenEagle98/users/23799tag:danbooru.me,2005:ForumPost/1361602017-09-19T00:09:15-04:002017-09-19T00:09:35-04:00@BrokenEagle98: > chinatsu said:
>
> Well SauceNAO does have...<blockquote>
<p>chinatsu said:</p>
<p>Well SauceNAO does have API keys, Might be a lot more work but it's possible. You pay for the access so it would not be leaching. I can give you access to my key if you need it for anything, related to this or otherwsie</p>
</blockquote><p>Well, I could always add in a configuration option to allow the usage of SauceNao instead. It may take a few days depending on how easy it is to add in.</p>BrokenEagle98/users/23799tag:danbooru.me,2005:ForumPost/1361572017-09-18T23:22:23-04:002017-09-18T23:22:23-04:00@chilled_sake: > BrokenEagle98 said:
>
> I updated the links...<blockquote>
<p>BrokenEagle98 said:</p>
<p>I updated the links with a class and made it so that they open in a new tab. </p>
<p>Unfortunately, Danbooru's IQDB services doesn't currently give back the similarity percentage, and I don't want to use IQDB.org as it will IP ban you for an hour if you send to many requests in a certain time period. I haven't tested it yet, but SauceNao.com may do the same.</p>
<p>Though I did create <a rel="external nofollow noreferrer" class="dtext-link dtext-id-link dtext-github-id-link" href="https://github.com/r888888888/danbooru/issues/3306">issue #3306</a>, which will add the similarity percentage in the response, in addition to allowing the minimum similarity percentage to be specified.</p>
</blockquote><p>Well SauceNAO does have API keys, Might be a lot more work but it's possible. You pay for the access so it would not be leaching. I can give you access to my key if you need it for anything, related to this or otherwsie</p>chilled_sake/users/463832tag:danbooru.me,2005:ForumPost/1361272017-09-18T14:23:29-04:002017-09-18T14:24:01-04:00@BrokenEagle98: > chinatsu said:
>
> Can you add a class to...<blockquote>
<p>chinatsu said:</p>
<p>Can you add a class to the links so I can style them as a different color? For instance light green similar to the Pixiv IQDB checker. And would it be possible to have a class for the level or accuracy of the match? Oh and opening in a new tab.q</p>
</blockquote><p>I updated the links with a class and made it so that they open in a new tab. </p><p>Unfortunately, Danbooru's IQDB services doesn't currently give back the similarity percentage, and I don't want to use IQDB.org as it will IP ban you for an hour if you send to many requests in a certain time period. I haven't tested it yet, but SauceNao.com may do the same.</p><p>Though I did create <a rel="external nofollow noreferrer" class="dtext-link dtext-id-link dtext-github-id-link" href="https://github.com/r888888888/danbooru/issues/3306">issue #3306</a>, which will add the similarity percentage in the response, in addition to allowing the minimum similarity percentage to be specified.</p>BrokenEagle98/users/23799tag:danbooru.me,2005:ForumPost/1361032017-09-18T04:43:41-04:002017-09-18T04:58:10-04:00@chilled_sake: Can you add a class to the links so I can style...<p>Can you add a class to the links so I can style them as a different color? For instance light green similar to the Pixiv IQDB checker. And would it be possible to have a class for the level or accuracy of the match? Oh and opening in a new tab.q</p>chilled_sake/users/463832tag:danbooru.me,2005:ForumPost/1357182017-09-12T08:40:06-04:002017-09-12T08:40:06-04:00@nonamethanks: This is incredible. Thank you very much for it,...<p>This is incredible. Thank you very much for it, it works great.</p>nonamethanks/users/508240tag:danbooru.me,2005:ForumPost/1357002017-09-12T01:34:49-04:002017-09-12T01:34:49-04:00@BrokenEagle98: Forgot to mention it above, but kudos to...<p>Forgot to mention it above, but kudos to <a href="/users?name=evazion">@evazion</a> for creating working Javascript code for querying Danbooru from remote sites which I used as a template. It made creating the above significantly easier... :)</p>BrokenEagle98/users/23799tag:danbooru.me,2005:ForumPost/1356992017-09-12T01:27:39-04:002018-01-21T16:55:21-05:00@BrokenEagle98: IQDB4Chan adds a link in images threads under...<p>IQDB4Chan adds a link in images threads under the thread title (ex. "/e/ - Ecchi"). The link is labeled <strong>IQDB Check</strong>. Clicking this will check every thumbnail against Danbooru's IQDB database. Misses get surrounded with a red border and hits get post links to Danbooru added.</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/iqdb4chan.user.js">https://raw.githubusercontent.com/BrokenEagle/JavaScripts/stable/iqdb4chan.user.js</a></p><h4>Final</h4><p>I created this script mostly because I found it annoying having to repeatedly spam the IQDB search link for multiple images in a thread. With the above, you can immediately see what has and hasn't been uploaded, allowing one to focus on those images that interest the user.</p><p>If you have any suggestions for the placement of the links or the styles used, or want to see something else added, please feel free to chime in.</p><h4>Change log</h4><ul>
<li>(2017-09-18) <strong>Version 3</strong> <ref <a class="dtext-link" href="/users/463832">chinatsu</a>: <a class="dtext-link dtext-id-link dtext-forum-post-id-link" href="/forum_posts/136103">forum #136103</a>></li>
<ul>
<li>Added CSS class to post links</li>
<li>Post links now open in new tab</li>
</ul>
<li>(2017-11-22) <strong>Version 4</strong> <ref <a class="dtext-link" href="/users/463832">chinatsu</a>:<a class="dtext-link dtext-id-link dtext-forum-post-id-link" href="/forum_posts/136103">forum #136103</a>></li>
<ul><li>Added CSS class/color to links based upon IQDB score</li></ul>
<li>(2018-01-21) <strong>Version 5</strong> <ref <a class="dtext-link" href="/users/508240">nonamethanks</a>:Discord></li>
<ul><li>Fixed incompatibilities with the latest versions of Greasemonkey/Tampermonkey</li></ul>
</ul>BrokenEagle98/users/23799