tag:danbooru.me,2005:/forum_topics/9023 Danbooru userscript/style + few misc scripts 2014-07-04T09:47:02-04:00 tag:danbooru.me,2005:ForumPost/98424 2014-07-04T09:47:02-04:00 2014-07-04T09:47:02-04:00 @Ixendr: > itsonlyaname said: > > For a small... <blockquote> <p>itsonlyaname said:</p> <p>For a small single-file script i just take the lazy way of coding locally and then copy/pasting new script over the old code :p I also didn't install the git program/command line thingy to crunch commits &amp; all that other stuff.</p> </blockquote><p>Oh man, that hurts... Working with Git repo without Git...<br>Of course it's your project and your repo, but IMHO you're really missing out.</p><p>I really find it useful even when working on single-file scripts of few hundred lines.<br>Just the possibility of actually not committing some changes while committing others makes coding easier.<br>Committing something as soon as it works and simply resetting to that state when something later breaks makes coding easier (and you can also amend last commit).<br>Seeing the diff anytime you want makes coding easier.</p><p>Of course you can do most of that basic stuff with just copying files around and diffing them... But Git does that automatically so there's no need to manually making copy of last working version "just in cause I'll mess this up". It makes development less chaotic.</p> Ixendr /users/417493 tag:danbooru.me,2005:ForumPost/98413 2014-07-03T20:14:04-04:00 2014-07-03T20:14:04-04:00 @itsonlyaname: Yea, when working with bigger projects &... <p>Yea, when working with bigger projects &amp; multiple people, multiple commits, issues, etc are a must-have (such as the danbooru github).<br>For a small single-file script i just take the lazy way of coding locally and then copy/pasting new script over the old code :p I also didn't install the git program/command line thingy to crunch commits &amp; all that other stuff.<br>Thanks for the tips.</p> itsonlyaname /users/366769 tag:danbooru.me,2005:ForumPost/98388 2014-07-03T14:07:40-04:00 2014-07-03T14:10:26-04:00 @Ixendr: > itsonlyaname said: > > Fixed, Fixed and... <blockquote> <p>itsonlyaname said:</p> <p>Fixed, Fixed and merged :)</p> <p>If you want, you can change how much is buffered by changing the "ep_scrollTrigger=1000;" line in the script (currently it starts loading next set if you scroll anywhere within 1000px from the bottom of the page). Don't think a separate button for it would be very useful.</p> </blockquote><p>Thank you for response that fast!</p><p>If I may give you tip about effective Git usage: you don't have to hold back with number of commits created.<br>I see 3 logical changes there (fixing 2 unrelated bugs and a typo fix), and it's generally considered more elegant when each commits contains one logical change and message tells what change it was ("fix typos", "fix unlimited loading when viewing Wiki tab", "fix error messages on one-page results").</p><p>Of course it would make sense to bump version number only in the last commit in row. It's just that you can prepare more than one logical changeset (commit) before publishing (pushing) all of them at once.</p><p>It's only a suggestion for future changes though, and I hope it helps you. ;)</p> Ixendr /users/417493 tag:danbooru.me,2005:ForumPost/98378 2014-07-03T10:51:20-04:00 2014-07-03T10:51:20-04:00 @itsonlyaname: Fixed, Fixed and merged :) If you want, you... <p>Fixed, Fixed and merged :)</p><p>If you want, you can change how much is buffered by changing the "ep_scrollTrigger=1000;" line in the script (currently it starts loading next set if you scroll anywhere within 1000px from the bottom of the page). Don't think a separate button for it would be very useful.</p> itsonlyaname /users/366769 tag:danbooru.me,2005:ForumPost/98374 2014-07-03T09:35:50-04:00 2014-07-03T09:36:59-04:00 @Ixendr: Ok, two Endless Pages bugs - minor and rather... <p>Ok, two Endless Pages bugs - minor and rather major.</p><p>Minor one:<br>When search returns only one page, following is printed at the botom of the page:</p><pre>Danbooru2 Tweaks &amp; Features: error parsing Current Page from paginator data ReferenceError: ep_rs is not defined Danbooru2 Tweaks &amp; Features: No paginator found, switching to url fall-back</pre><p>This doesn't happen when there are 2 or more pages of results and when all pages are loaded.</p><p>Rather major one:<br>When doing one tag search and switching to "wiki tab" (that Javascript magical one), Endless Pages loads pages indefinitely (I suppose that's problem with visibility checking).<br>While "buffer as much as you can" could be considered a feature when it gets its own button, it looks like bug when it's triggered by entering wiki entry while searching.</p><p>Oh, and you have a pull request from me on Github which enables the userscript on https.</p> Ixendr /users/417493 tag:danbooru.me,2005:ForumPost/98246 2014-06-29T16:36:36-04:00 2014-06-29T16:36:36-04:00 @itsonlyaname: fixed link, thanks <p>fixed link, thanks</p> itsonlyaname /users/366769 tag:danbooru.me,2005:ForumPost/98244 2014-06-29T16:09:58-04:00 2014-06-29T16:09:58-04:00 @Ixendr: > itsonlyaname said: > > Updated > Didn't... <blockquote> <p>itsonlyaname said:</p> <p>Updated<br>Didn't encounter the bug where the entire first page of results is stripped, let me know if it still happens with this version.</p> </blockquote><p>It doesn't happen now. Maybe it won't return. :D</p> Ixendr /users/417493 tag:danbooru.me,2005:ForumPost/98240 2014-06-29T14:16:42-04:00 2014-06-29T14:16:42-04:00 @Ixendr: Looks like you forgot to change URL in OP after... <p>Looks like you forgot to change URL in OP after changing the filename (commit <a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://github.com/Lightforger/danbooru-userscript/commit/d840c3868ebcf81c5a5e834663d126d5d91ae471)">https://github.com/Lightforger/danbooru-userscript/commit/d840c3868ebcf81c5a5e834663d126d5d91ae471)</a>.</p><p>Working link:<br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://raw.githubusercontent.com/Lightforger/danbooru-userscript/master/danbooru_tweaks&amp;features.user.js">https://raw.githubusercontent.com/Lightforger/danbooru-userscript/master/danbooru_tweaks&amp;features.user.js</a></p><p>You could also put there link to Github page, not only raw file:<br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://github.com/Lightforger/danbooru-userscript/">https://github.com/Lightforger/danbooru-userscript/</a></p> Ixendr /users/417493 tag:danbooru.me,2005:ForumPost/98185 2014-06-27T22:43:58-04:00 2014-06-27T22:43:58-04:00 @itsonlyaname: Updated Sorry it took a while, didn't notice... <p>Updated<br>Sorry it took a while, didn't notice your previous post at 4 months.</p><p>Didn't encounter the bug where the entire first page of results is stripped, let me know if it still happens with this version.</p> itsonlyaname /users/366769 tag:danbooru.me,2005:ForumPost/98160 2014-06-27T04:13:00-04:00 2014-06-27T05:41:57-04:00 @Ixendr: It seems like recent Danbooru update broke it... <p>It seems like recent Danbooru update broke it again - now it strips the whole first page of results (maybe it's only when blacklisting is in use).</p><p>Also, userscripts.org is "down" (TIL it's still available on port 8080 - <a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="http://userscripts.org:8080/">http://userscripts.org:8080/</a> - but looks like not everyone knows about that).</p> Ixendr /users/417493 tag:danbooru.me,2005:ForumPost/95430 2014-03-12T13:21:11-04:00 2014-06-27T05:58:01-04:00 @Ixendr: With current Danbooru version, "endless pages"... <p>With current Danbooru version, "endless pages" festure requires changing "/ssd/data/preview/" to "/data/preview/" in source to work.</p><p>Here's Git patch (from version 1.0.10):<br>(For those unfamiliar with patches: it's context diff, so only -/+ lines really change)<br><code> --- Danbooru 2 Tweaks and Features.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Danbooru 2 Tweaks and Features.user.js b/Danbooru 2 Tweaks and Features.user.js index 1f39465..6b161e9 100644 --- a/Danbooru 2 Tweaks and Features.user.js +++ b/Danbooru 2 Tweaks and Features.user.js @@ -1009,7 +1009,7 @@ function ep_postsList(add) { href: "/posts/" + add[post].id }); var art_a_img = $c("img", { - src: "/ssd/data/preview/" + add[post].md5 + ".jpg", //previews are ALWAYS jpg! + src: "/data/preview/" + add[post].md5 + ".jpg", //previews are ALWAYS jpg! alt: add[post].tag_string, title: add[post].tag_string + "\n user:" @@ -1141,7 +1141,7 @@ function ep_pools(add) { href: "/posts/" + add[t2].id }); var art_a_img = $c("img", { - src: "/ssd/data/preview/" + add[t2].md5 + ".jpg", //previews are ALWAYS jpg! + src: "/data/preview/" + add[t2].md5 + ".jpg", //previews are ALWAYS jpg! alt: add[t2].tag_string, title: add[t2].tag_string + "\n user:" -- 2.0.1 </code></p> Ixendr /users/417493 tag:danbooru.me,2005:ForumPost/86561 2013-03-25T12:21:39-04:00 2013-03-25T12:21:39-04:00 @Alanis_the_Evoker: > itsonlyaname said: > > Strange, LS_setValue... <blockquote> <p>itsonlyaname said:</p> <p>Strange, LS_setValue should be a global function - which browser/version are you using?<br>I uploaded 1.0.8, if that doesn't work, try enabling 'var db2_debug' (line 70)? It should give an alert message with more details.</p> </blockquote><p>I'm using Firefox 19.0.2 on Windows, for both this post and the previous one. (I'm also using the same browser/version on a Kubuntu Linux rig, but that one's still running v1.0.6 of this script.) And it looks like v1.0.8 of the script is working.</p><blockquote><p>Ps. it is also possible to disable customCSS via the settings menu now (thus without having to edit the script itself).</p></blockquote><p>Blame habit there.</p> Alanis_the_Evoker /users/375229 tag:danbooru.me,2005:ForumPost/86556 2013-03-25T11:20:17-04:00 2013-03-25T11:20:17-04:00 @itsonlyaname: Strange, LS_setValue should be a global... <p>Strange, LS_setValue should be a global function - which browser/version are you using?<br>I uploaded 1.0.8, if that doesn't work, try enabling 'var db2_debug' (line 70)? It should give an alert message with more details.</p><p>Ps. it is also possible to disable customCSS via the settings menu now (thus without having to edit the script itself).</p> itsonlyaname /users/366769 tag:danbooru.me,2005:ForumPost/86495 2013-03-24T09:58:33-04:00 2013-03-24T09:58:33-04:00 @Alanis_the_Evoker: Just updated to 1.0.7, and it's giving me an... <p>Just updated to 1.0.7, and it's giving me an error when I try to change my UserScript settings:</p><blockquote><p><strong>Failed to save settings</strong> Error details:<br>LS_setValue is not a function</p></blockquote><p>The only change I made to it was to disable the custom CSS via:</p><blockquote><p>var enable_customCSS=0;</p></blockquote> Alanis_the_Evoker /users/375229 tag:danbooru.me,2005:ForumPost/85831 2013-03-12T03:31:39-04:00 2013-03-24T06:37:47-04:00 @itsonlyaname: > Hellbus said: > > When I click "edit" on a... <blockquote> <p>Hellbus said:</p> <p>When I click "edit" on a post I can't see the list of tags, and thus can't actually edit them. I don't see anything in the script settings that seems relevant. When I view the same post on a computer where I haven't installed the script I'm able to see the list. I'm not getting there via a pool (no pool or tag listed in the address bar), so I'm not sure what to do.</p> </blockquote><p>Woops, missed something so obvious &gt;.&lt; *curses at single wrong character*</p><p>Anyway, a new version with that fixed is up ~ and 1.0.5 with some more bugfixes / features is coming in a few hours.<br> <br> <br> <br><strong>Edit</strong>; Updated, v1.0.5:<br>-Fixed note position when browsing at reduced image size (samples)<br>-Fixed the 'click image to hide notes' feature to browsing mode<br>-Added a 'Shift click image to show all note translations' feature to browsing mode ~ was easy to add.<br>-Improved performance of browsing mode.<br>-In browsing mode, blacklisted tags are now hidden behind a 'show image' button, and the first blacklisted tag that was found (for performance reasons, the script stops as soon as it finds 1 tag)</p><p>Generally just finishing up the browsing mode feature, it's complete now.<br>Chrome was giving me some trouble, wouldn't activate anything besides the CSS (gray background) - had to go to the extensions page, uninstall it, then re-install it. Possibly because i changed on which sites it works (added hijiribe &amp; sonohara.donmai).<br> <br> <br> <br><strong>Edit2</strong>; Updated, v1.0.6b:<br>-Remove the 'disable hotkeys' feature, already customizable enough with them being optional &amp; at wasd now.<br>-Fix a conflict with at least 1 other userscript<br>-big CSS update<br> <br> <br><strong>Edit3</strong>; Updated, v1.0.7:<br>-Added Quickswitch blacklist - i wanted a "someone else enters the room -&gt; hide all rating:q posts" button :) - with only 2 tags available, tacking 'rating:s' on is expensive, and going all the way to the blacklist takes a while.<br>-Updated css<br>-fixed endless pages not activating on homepage.</p> itsonlyaname /users/366769 tag:danbooru.me,2005:ForumPost/85822 2013-03-11T22:38:38-04:00 2013-03-11T23:45:36-04:00 @Hellbus: When I click "edit" on a post I can't see the... <p>When I click "edit" on a post I can't see the list of tags, and thus can't actually edit them. I don't see anything in the script settings that seems relevant. When I view the same post on a computer where I haven't installed the script I'm able to see the list. I'm not getting there via a pool (no pool or tag listed in the address bar), so I'm not sure what to do.</p> Hellbus /users/71420 tag:danbooru.me,2005:ForumPost/85704 2013-03-08T18:06:43-05:00 2013-03-10T06:34:47-04:00 @itsonlyaname: Updated; 2013-03-08 - v1.0.4: - Added pool... <p>Updated;</p><p>2013-03-08 - v1.0.4: <br>- Added pool browsing mode (aka series reading mode) - major feature <br>- Updated pool-related code to go along with danbooru update<br>- general code improvements, removal of outdated css, happens about every update, won't be mentioning this in changelogs again.<br> <br> </p><p>Pool browsing mode is 90%+ finished &amp; ready to use, just a few small issues like it ignoring blacklists.</p><p>I initially thought about making the images go off to the right side, keeping the original look of the side (tags left, comments below, etc) but as most people don't know how to easily scroll to the right (even more so if they want to keep the arrow hotkeys active), i added them to the bottom.<br>Ended up making an entire custom layout, which i think worked out pretty well.<br> <br>Very satisfied with how easy reading a comic is now.<br> <br> <br> </p><p><strong>Edit</strong>; 2013-03-10<br>Added "copy notes" script, idea from <a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://github.com/r888888888/danbooru/issues/720">https://github.com/r888888888/danbooru/issues/720</a><br>See first post for more info.<br>It's not 100% noob-proof (eg, if you use the script, refresh, use script again it will create duplicate notes, same if you click "copy all notes" twice) but with the script being so limited in use, i doubt anyone will ever have trouble with it.</p> itsonlyaname /users/366769 tag:danbooru.me,2005:ForumPost/85640 2013-03-07T00:39:49-05:00 2013-03-07T00:39:49-05:00 @Hellbus: > itsonlyaname said: > > Now i'm curious... <blockquote> <p>itsonlyaname said:</p> <p>Now i'm curious :3</p> </blockquote><p>Asked a question then saw that it had already been answered. No secrets of impending doom or anything like that.</p> Hellbus /users/71420 tag:danbooru.me,2005:ForumPost/85636 2013-03-06T22:42:07-05:00 2013-03-06T22:57:02-05:00 @itsonlyaname: > Hellbus said: > > Edit - never mind.Now i'm... <blockquote> <p>Hellbus said:</p> <p>Edit - never mind.</p> </blockquote><p>Now i'm curious :3<br> <br> <br>Been a while since the last update but there's a few nice features :)</p><p><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link dtext-named-external-link" href="http://img268.imageshack.us/img268/9688/db62.PNG">Look at this sexy settings menu</a><br><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link dtext-named-external-link" href="http://img515.imageshack.us/img515/1072/db7.png">Swap position of pools on the fly</a><br> <br> <br>Changelog: <br>2013-03-07 - v1.0.3:<br>- Added settings menu, settings can now be controlled from the "my account" page and persist even between version updates<br>- Added pool quickswap button, does not reset when going to other pages.<br>- Cleared some outdated css<br>- Updated the "Visual display of translation status" script, was a few days ago but forgot to mention it, it now has a few more tags, larger borders, and does not wipe the pending/child/parent/flagged border of a post anymore.<br> <br> <br>Another new feature is partially finished, but i'm not sure about the layout.<br>Pool browsing: when viewing images (full size) it adds a 'browse pool' button before the 'next' links on pools (1 for each 'next'), when browsing, the next pages from the selected pool are automatically added to the screen upon scrolling near the edge. (perfect for reading series)<br>The problem, i'm not sure sure where to add them yet;<br>*images to the right with comments below?<br>*images below eachother, with comments inbetween? (behind a "view comments" button)<br>*images below eachother, comments to the right side of the image?</p> itsonlyaname /users/366769 tag:danbooru.me,2005:ForumPost/85551 2013-03-05T06:44:33-05:00 2013-03-05T06:44:57-05:00 @Hellbus: Edit - never mind. <p>Edit - never mind.</p> Hellbus /users/71420