tag:danbooru.me,2005:/forum_topics/14113 [Feature Idea] Permanent Blacklist 2017-11-24T14:04:31-05:00 tag:danbooru.me,2005:ForumPost/139714 2017-11-24T14:04:31-05:00 2017-11-24T14:04:31-05:00 @BrokenEagle98: > chinatsu said: > > Wouldn't this still load... <blockquote> <p>chinatsu said:</p> <p>Wouldn't this still load the objectionable content to someone's cache?</p> </blockquote><p>Yes. If that's a concern, then many browsers offer incognito tabs/windows.</p> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/139696 2017-11-24T04:10:34-05:00 2017-11-24T04:10:34-05:00 @chilled_sake: Wouldn't this still load the objectionable... <p>Wouldn't this still load the objectionable content to someone's cache?</p> chilled_sake /users/463832 tag:danbooru.me,2005:ForumPost/132299 2017-06-07T23:34:22-04:00 2017-07-21T21:37:30-04:00 @BrokenEagle98: Okay... it took a while, but I believe the... <p>Okay... it took a while, but I believe the below should be good.</p><pre>/*Blacklist thumbnails hidden (Common case)*/ .post-preview {display: none;} .post-preview.blacklisted {display: block;} .post-preview.blacklisted.blacklisted-active {display: none;} /*Blacklist thumbnails hidden (Parent/child exception)*/ #has-parent-relationship-preview .blacklisted:not(.blacklisted-active) {display: inline-block;} #has-children-relationship-preview .blacklisted:not(.blacklisted-active) {display: inline-block;} /*Blacklist image hidden*/ #image-container {display: none;} #image-container.blacklisted {display: block;} #image-container.blacklisted.blacklisted-active {display: none;} </pre><h4>Details</h4><p>1. Every image container was block format with the exception of parent/child containers, which were inline-block.<br>2. Included an implementation for full-size images, which was missing in the original.<br>3. Removed dependency on order by taking advantage of <a rel="external nofollow noreferrer" class="dtext-link dtext-external-link dtext-named-external-link" href="https://www.w3.org/wiki/CSS/Training/Priority_level_of_selector">CSS priority calculations</a>.</p><h5>Edit:</h5><p>(2017-07-11)</p><p>I updated the above with a fix in <a class="dtext-link dtext-id-link dtext-forum-post-id-link" href="/forum_posts/132142">forum #132142</a>. Basically, a recent change causes no posts to appear on pages without blacklist controls. The following code was used to address this on the pages found to have this problem.</p><pre>/*Temp settings*/ #c-pool-orders #a-edit .post-preview, #c-favorite-group-orders #a-edit .post-preview, #c-artists #a-show .post-preview { display: inline-block; } </pre><p>(2017-07-21)</p><p>The issue has been fixed, so the temporary settings from above are no longer required.</p> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/132291 2017-06-07T16:21:11-04:00 2017-06-07T16:21:11-04:00 @BrokenEagle98: > kittey said: > > Sorry for undermining your... <blockquote> <p>kittey said:</p> <p>Sorry for undermining your efforts by finding more issues, but the “current image” border in the parent/child bars doesn’t play nicely with <strong>inline</strong>: <a rel="external nofollow noreferrer" class="dtext-link dtext-external-link dtext-named-external-link" href="http://i65.tinypic.com/2vv19b6.png">example</a>. The grey border should be all around the thumbnails, not just two small bars to the left and right.</p> </blockquote><p>No worries...thanks for reporting all of these errors. I want to make it as error free as possible. This will probably require very specific selectors. I'll post something up by the end of the day PST.</p> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/132290 2017-06-07T16:00:07-04:00 2017-06-07T16:00:07-04:00 @Claverhouse: Sounds nice. Never had the flickering myself,... <p>Sounds nice. Never had the flickering myself, but I treasure my blacklist.</p><p>I get depressed enough at just non-blacklisted heavily sad stuff without risking seeing torture and Grand Guignol.</p> Claverhouse /users/72775 tag:danbooru.me,2005:ForumPost/132280 2017-06-07T13:15:22-04:00 2017-06-07T13:15:22-04:00 @kittey: > BrokenEagle98 said: > > Ok, I went back, and... <blockquote> <p>BrokenEagle98 said:</p> <p>Ok, I went back, and found that the <strong>inline</strong> value currently works in all places.</p> <ul><li>Post show (w/child and w/parent)<br> </li></ul> </blockquote><p>Sorry for undermining your efforts by finding more issues, but the “current image” border in the parent/child bars doesn’t play nicely with <strong>inline</strong>: <a rel="external nofollow noreferrer" class="dtext-link dtext-external-link dtext-named-external-link" href="http://i65.tinypic.com/2vv19b6.png">example</a>. The grey border should be all around the thumbnails, not just two small bars to the left and right.</p> kittey /users/320377 tag:danbooru.me,2005:ForumPost/132279 2017-06-07T12:38:41-04:00 2017-06-07T12:39:10-04:00 @BrokenEagle98: > kittey said: > > No, I wasn’t talking about... <blockquote> <p>kittey said:</p> <p>No, I wasn’t talking about the missing blacklist box. I was talking about how some comments and thumbnails are put next to others instead of all below each other.</p> <p><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link dtext-named-external-link" href="http://i63.tinypic.com/sxjcb8.png">Without your CSS</a> - <a rel="external nofollow noreferrer" class="dtext-link dtext-external-link dtext-named-external-link" href="http://i64.tinypic.com/28v87qg.png">With your CSS</a></p> <p>Also note that the quotation boxes don’t stretch to full width even with just one comment per row.</p> </blockquote><p>Ok, I went back, and found that the <strong>inline</strong> value currently works in all places.</p><pre>.post-preview.blacklisted {display: inline;} </pre><h6>Tested:</h6><ul> <li>Users page</li> <li>Post index</li> <li>Post show (w/child and w/parent)</li> <li>Popular posts</li> <li>Favorites</li> <li>Favgroup show</li> <li>Pool gallery</li> <li>Pool show</li> <li>Comment (group by post)</li> <li>Comment (group by comment)</li> <li>Artist commentary index</li> <li>Post appeal</li> <li>Post flag</li> <li>Moderator dashboard</li> </ul><p>Additioally, I found a couple extra places that don't have a blacklist box, which I'll be adding to <a rel="external nofollow noreferrer" class="dtext-link dtext-id-link dtext-github-id-link" href="https://github.com/r888888888/danbooru/issues/3121">issue #3121</a>.</p> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/132278 2017-06-07T11:01:50-04:00 2017-06-07T11:01:50-04:00 @kittey: No, I wasn’t talking about the missing... <p>No, I wasn’t talking about the missing blacklist box. I was talking about how some comments and thumbnails are put next to others instead of all below each other.</p><p><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link dtext-named-external-link" href="http://i63.tinypic.com/sxjcb8.png">Without your CSS</a> - <a rel="external nofollow noreferrer" class="dtext-link dtext-external-link dtext-named-external-link" href="http://i64.tinypic.com/28v87qg.png">With your CSS</a></p><p>Also note that the quotation boxes don’t stretch to full width even with just one comment per row.</p> kittey /users/320377 tag:danbooru.me,2005:ForumPost/132261 2017-06-07T01:20:26-04:00 2017-06-07T01:23:14-04:00 @BrokenEagle98: > kittey said: > > It’s broken when viewing a... <blockquote> <p>kittey said:</p> <p>It’s broken when viewing a user’s comments or the comment search results (I guess both are the same). Everything else seems to be working fine so far.</p> </blockquote><p><a href="/users?name=kittey">@kittey</a></p><p>Are you talking about the missing Blacklist box...? I just noticed that, but it's not an issue with the above CSS, but the fact that Danbooru isn't including the correct HTML for the Javascript to run on. It's basically looking for the "#blacklist-box" and "#blacklist-list" entries, but since they don't exist, there's nothing for the Javascript create from. It still hides the posts, and the above CSS still prevents the flicker. Regardless, will create an issue about the above on GitHub.</p><h5>Edit:</h5><p>Created <a rel="external nofollow noreferrer" class="dtext-link dtext-id-link dtext-github-id-link" href="https://github.com/r888888888/danbooru/issues/3121">issue #3121</a>.</p> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/132252 2017-06-06T21:15:21-04:00 2017-06-06T21:15:21-04:00 @kittey: > BrokenEagle98 said: > > It seems like most... <blockquote> <p>BrokenEagle98 said:</p> <p>It seems like most post previews are block elements, but the child/parent thumbnail previews are inline-block elements. So, I tested out setting all of the post-previews to inline-block, and didn't see any issues with it.</p> <pre>.post-preview.blacklisted {display: inline-block;} </pre> <p>I believe I tested it out on all of the pages with thumbnails, but I might have missed some. If there are any issues with the above, let me know, and I'll create more specific selectors to set the display correctly.</p> <p>I'll be updating the CSS thread with the above.</p> </blockquote><p>It’s broken when viewing a user’s comments or the comment search results (I guess both are the same). Everything else seems to be working fine so far.</p> kittey /users/320377 tag:danbooru.me,2005:ForumPost/132204 2017-06-05T12:38:43-04:00 2017-06-07T13:15:35-04:00 @Laethiel: I hope this isn't straying too far off topic,... <p>I hope this isn't straying too far off topic, but this thread brought it to mind, and it can work with BrokenEagle98's CSS above.</p><p>This CSS will whitelist your own favorites. It feels a little kludgy, since the list of Blacklisted tags on the left side still thinks they're blacklisted, but it seems to work properly. Note that this CSS means your favorites will never be hidden by your blacklist; they'll always show up, no matter how much you toggle your blacklist on and off.</p><pre>/*Whitelist own favorites*/ .post-preview[data-is-favorited="true"] {display: inline;} </pre><p>To combine it with BrokenEagle98's CSS, it goes at the end:</p><pre>/*Blacklist images hidden, whitelist own favorites*/ .post-preview {display: none;} .post-preview.blacklisted {display: inline;} .post-preview.blacklisted-active {display: none;} .post-preview[data-is-favorited="true"] {display: inline;} </pre><p>Using the above CSS, your favorites will show up first, then the rest of the non-blacklisted pictures will show up. It's kind of like what normally happens with the blacklist, but in reverse. If you want everything to show up at the same time, the last line needs to be slightly different:</p><pre>/*Blacklist images hidden, whitelist own favorites*/ .post-preview {display: none;} .post-preview.blacklisted {display: inline;} .post-preview.blacklisted-active {display: none;} .post-preview.blacklisted-active[data-is-favorited="true"] {display: inline;} </pre> Laethiel /users/40740 tag:danbooru.me,2005:ForumPost/132189 2017-06-05T03:17:13-04:00 2017-06-05T03:17:53-04:00 @BrokenEagle98: > Type-kun said: > > The thumbnails could get... <blockquote> <p>Type-kun said:</p> <p>The thumbnails could get appropriate classes during erb processing, and javascript could be used only to hide/unhide the thumbnails.</p> </blockquote><p>This would validate the existence of the "dab" cookie, as opposed to making it local/session storage. It doesn't make sense to have cookies if they're only used client-side. It's true that local/session storage doesn't have any expiration, but there's always ways around that, like what is currently being done with autocomplete. I wonder just how many of the cookies could be moved to local/session storage...?</p><blockquote><p>It also removes the need to parse tag strings on client side.</p></blockquote><p>Hopefully the tags will still be kept in. That would allow for Javascript programs with more than one blacklist, for instance.... (like the one I'm currently working on)...</p> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/132187 2017-06-05T02:45:51-04:00 2017-06-05T02:45:51-04:00 @Type-kun: > evazion said: > > The flickering would be... <blockquote> <p>evazion said:</p> <p>The flickering would be possible to fix without requiring two types of blacklist. The problem is that thumbnails default to visible and are hidden later by Javascript. If this were reversed, so that thumbnails defaulted to hidden and nonblacklisted posts were unhidden by Javascript, then there would be no opportunity for flickering.</p> </blockquote><p>Perhaps the blacklist handling could be moved to server-side? The thumbnails could get appropriate classes during erb processing, and javascript could be used only to hide/unhide the thumbnails. It also removes the need to parse tag strings on client side.</p> Type-kun /users/337059 tag:danbooru.me,2005:ForumPost/132181 2017-06-05T00:41:10-04:00 2017-06-05T00:41:41-04:00 @BrokenEagle98: It seems like most post previews are block... <p>It seems like most post previews are block elements, but the child/parent thumbnail previews are inline-block elements. So, I tested out setting all of the post-previews to inline-block, and didn't see any issues with it.</p><pre>.post-preview.blacklisted {display: inline-block;} </pre><p>I believe I tested it out on all of the pages with thumbnails, but I might have missed some. If there are any issues with the above, let me know, and I'll create more specific selectors to set the display correctly.</p><p>I'll be updating the CSS thread with the above.</p> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/132178 2017-06-05T00:19:31-04:00 2017-06-05T00:19:31-04:00 @BrokenEagle98: Yeah, I just noticed that myself... I'll see if... <p>Yeah, I just noticed that myself... I'll see if there's a fix.</p> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/132169 2017-06-04T17:40:52-04:00 2017-06-04T17:40:52-04:00 @kittey: > BrokenEagle98 said: > > Just figured out a... <blockquote> <p>BrokenEagle98 said:</p> <p>Just figured out a way to remove the flickering with just CSS.</p> <pre>/*Blacklist images hidden*/ .post-preview {display: none;} .post-preview.blacklisted {display: inherit;} .post-preview.blacklisted-active {display: none;} </pre> </blockquote><p>I just tried your CSS and for me it has the side effect of putting all parent/child thumbnails below each other instead of next to each other. Random example with parent: <a class="dtext-link dtext-id-link dtext-post-id-link" href="/posts/593574">post #593574</a></p> kittey /users/320377 tag:danbooru.me,2005:ForumPost/132141 2017-06-03T21:33:31-04:00 2017-06-07T12:39:30-04:00 @BrokenEagle98: Just figured out a way to remove the flickering... <p>Just figured out a way to remove the flickering with just CSS.</p><pre>/*Blacklist images hidden*/ .post-preview {display: none;} .post-preview.blacklisted {display: inline;} .post-preview.blacklisted-active {display: none;} </pre><p>For the above, order is important. The last correct item that addresses the same element is what gets implemented.</p><ul> <li>1. When page gets loaded, the first line is active, and all posts start out hidden.</li> <li>2. As the Javascript loads, for...</li> <ul> <li>A. Normal posts: It adds the "blacklisted" class. Since the "blacklist" class appears after the classless item, it unhides them.</li> <li>B. Blacklist posts: It adds the "blacklisted" and "blacklisted-active" classes. Since the "blacklist-active" appears last, it remains hidden.</li> </ul> </ul><p>Will be adding the above to the CSS thread.</p> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/132115 2017-06-02T21:32:15-04:00 2017-06-02T21:32:15-04:00 @BrokenEagle98: > evazion said: > > The drawback is the... <blockquote> <p>evazion said:</p> <p>The drawback is the failure mode: if you have Javascript disabled, or if there's any kind of bug that prevents the Javascript from running, then everything would stay hidden.</p> </blockquote><p>Could this be a user-selectable option...? Such an option would control which way posts start out... visible or non-visible. If it starts out defaulting to visible, then there would be no issue. Users would have to manually change it, and therefore manually accept what those changes entails... i.e. Javascript needs to be working.</p><blockquote> <p>evazion said:</p> <p>Also, it should be noted that it's possible to hard blacklist tags in custom CSS:<br>....</p> </blockquote><p>It would be impossible to do complex blacklist strings with that method, e.g. <a class="dtext-link dtext-post-search-link" href="/posts?tags=nude%20-1girl%20-multiple_girls">nude -1girl -multiple_girls</a>. Additionally, it would also hide any other tag that contains that term. Tag Search: <a rel="external nofollow noreferrer" class="dtext-link dtext-external-link dtext-named-external-link" href="http://danbooru.me/tags?search%5Bhide_empty%5D=yes&amp;search%5Bname_matches%5D=%2Aphoto%2A&amp;search%5Border%5D=count">*photo*</a></p> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/132114 2017-06-02T21:03:09-04:00 2017-06-02T21:04:30-04:00 @evazion: Also, it should be noted that it's possible to... <p>Also, it should be noted that it's possible to hard blacklist tags in custom CSS:</p><pre>[data-tags*="photo"] { display: none; } </pre><p>This is admittedly more cumbersome and more limited than regular blacklists, but it's possible to do right now.</p> evazion /users/52664 tag:danbooru.me,2005:ForumPost/132113 2017-06-02T21:00:18-04:00 2017-06-02T21:00:18-04:00 @evazion: The flickering would be possible to fix without... <p>The flickering would be possible to fix without requiring two types of blacklist. The problem is that thumbnails default to visible and are hidden later by Javascript. If this were reversed, so that thumbnails defaulted to hidden and nonblacklisted posts were unhidden by Javascript, then there would be no opportunity for flickering.</p><p>The drawback is the failure mode: if you have Javascript disabled, or if there's any kind of bug that prevents the Javascript from running, then everything would stay hidden.</p> evazion /users/52664