tag:danbooru.me,2005:/forum_topics/14221 [Userscript] Safelist Plus 2019-12-23T16:31:07-05:00 tag:danbooru.me,2005:ForumPost/161788 2019-12-23T16:19:25-05:00 2019-12-23T16:19:25-05:00 @BrokenEagle98: Pushed Version 4 which primarily includes an... <p>Pushed <strong>Version 4</strong> which primarily includes an update to the library code plus a few additions and fixes:</p><ul> <li><strong>Additions</strong></li> <ul> <li>Add control next to Safelist sidebar/topbar (triangle icon) which allows the list to be collapsed/expanded</li> <li>Add new menu library elements/functions for cache editor</li> <ul><li>The raw program data can be extracted using the cache editor, which facilitates transferring program data to another browser/domain</li></ul> </ul> <li><strong>Changes</strong></li> <ul><li>Settings menu now adapts to the color changes of the chosen theme (light/dark)</li></ul> <li><strong>Fixes</strong></li> <ul> <li>Fix display issue with Safelist level menu on post index page</li> <li>Fix issue with browser hotkeys interferrring with Safelist level hotkeys</li> <li>Fix comments not displaying correctly on pages other than comment pages</li> <ul><li>Such as with EventListener (<a class="dtext-link dtext-id-link dtext-forum-topic-id-link" href="/forum_topics/14747">topic #14747</a>)</li></ul> </ul> <li><strong>Other</strong></li> <ul><li>Multiple internal code changes and refactors</li></ul> </ul> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/158748 2019-08-05T07:06:12-04:00 2019-08-05T07:06:12-04:00 @user_698599: I tested it for a bit and it's working pretty... <p>I tested it for a bit and it's working pretty well now. Thanks a lot for updating it.</p> user_698599 /users/698599 tag:danbooru.me,2005:ForumPost/158639 2019-07-30T20:06:07-04:00 2019-07-30T20:06:07-04:00 @BrokenEagle98: The Safelist script was overhauled (~85%... <p>The <strong><em>Safelist</em></strong> script was overhauled (~85% changed) and released as <strong>Version 3</strong> of <strong><em>Safelist Plus</em></strong>.</p><p>The name and link are now different, and the old version and addons were removed to the unsupported directory in the Javascripts repository (<a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://github.com/BrokenEagle/JavaScripts">https://github.com/BrokenEagle/JavaScripts</a>).</p><ul><li>New link: <a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://github.com/BrokenEagle/JavaScripts/raw/stable/safelist_plus.user.js">https://github.com/BrokenEagle/JavaScripts/raw/stable/safelist_plus.user.js</a> </li></ul><h5>Adds</h5><ul> <li>Moved the program settings to (<strong>My Account</strong> &gt;&gt; <strong>Settings</strong> &gt;&gt; <strong>Userscript Menus</strong>)</li> <ul><li>Level settings are still settable from the post search page</li></ul> <li>Intertab communication to reflect changes immediately</li> <ul><li>With the exception of active status/level if session levels or session status is enabled (<em>program settings</em>)</li></ul> <li>Standardized and improved validation of data</li> <li>Several other performance improvements</li> </ul><h5>Removes</h5><ul> <li>Text/tab scrubbing</li> <li>Validation addon</li> <li>Order addon</li> </ul><p>Not sure if text/tab scrubbing will be brought back as it's not clear how needful/useful those are. The validation and order addons will be brought back at a later date once the OR operator "~" is taken into account.</p> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/158469 2019-07-22T16:59:58-04:00 2019-07-22T16:59:58-04:00 @user_698599: Thanks for considering it. <p>Thanks for considering it.</p> user_698599 /users/698599 tag:danbooru.me,2005:ForumPost/158461 2019-07-21T21:59:49-04:00 2019-07-21T21:59:49-04:00 @BrokenEagle98: To be honest, I was thinking of moving this... <p>To be honest, I was thinking of moving this script into an unsupported status, since I didn't think anyone used it nor do I use it anymore. But if there's interest, I can take a look at it again, although it's been 2 years since I last looked at the code, so it'll be a while before I can wrap my head around it. I'll try to get that done by next week.</p> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/158458 2019-07-21T19:57:01-04:00 2019-07-21T19:57:01-04:00 @user_698599: Any chance this will be updated? I ran into... <p>Any chance this will be updated? I ran into some trouble using it:</p><ul> <li>The settings link only shows up if i change run-at to document-idle.</li> <li>The posts show up vertically when Safelist is enabled.</li> </ul><p>I'm using Firefox Nightly 70.0a1 and Chrome Canary 77.0.3859.0, both with Tampermonkey Beta 4.9.5941.<br>Anyway, thanks for the script. It's really nice.</p> user_698599 /users/698599 tag:danbooru.me,2005:ForumPost/133611 2017-07-10T21:31:53-04:00 2017-07-10T21:31:53-04:00 @BrokenEagle98: Just a bit of background on the above... it's... <p>Just a bit of background on the above... it's been something I've been working on for the last month, but it's still my first Javascript coding experience. I've been heavily Beta-ing it for the last week to try to iron out any errors, but it's likely something was missed due to the nature of coding... (ツ)</p><p>Anyways, please report any errors in this thread. Also, if you have an idea for a UI enhancement related to blacklists, please feel free to share. Thanks.</p> BrokenEagle98 /users/23799 tag:danbooru.me,2005:ForumPost/133610 2017-07-10T21:25:36-04:00 2019-12-23T16:31:07-05:00 @BrokenEagle98: Safelist Plus is an alternate blacklist handler... <p>Safelist Plus is an alternate blacklist handler for Danbooru with UI enhancements. It was designed primarily to have multiple blacklists for multiple occasions, whether it be at work, at home with others, or by oneself. It supports user awareness and quick reaction in addition to better censorship and functional obfuscation.</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><ul><li><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link" href="https://github.com/BrokenEagle/JavaScripts/raw/stable/safelist_plus.user.js">https://github.com/BrokenEagle/JavaScripts/raw/stable/safelist_plus.user.js</a></li></ul><h4>Main features</h4><ul> <li><strong>Multiple blacklists</strong></li> <ul><li>With two constant lists <em>all</em> and <em>none</em> </li></ul> <li><strong>Customizable names</strong></li> <ul> <li>Makes them easier to remember</li> <li>Can obfuscate the functionality of Safelist</li> </ul> <li><strong>Customizable CSS styles</strong></li> <ul> <li>Visual cue for the active list</li> <li>Instant feedback that a list has changed</li> </ul> <li><strong>Customizable hotkeys</strong></li> <ul><li>Quick switching of lists</li></ul> </ul><h4>Controls</h4><p>Safelist controls are available wherever there are blacklist controls, and are located in the sidebar or at the top of the content depending on the page.</p><p>The enable/disable links are used to turn Safelist on/off, and each list link (or hotkey) will activate the effects for that list.</p><p>The constant lists are always <strong>bolded</strong>, and the active list is in <em>italics</em>. If no lists are active when Safelist is enabled, then it will default to showing no posts.</p><h4>Settings</h4><p>The program settings for Safelist Plus are located with Danbooru settings (<strong>My Account</strong> &gt;&gt; <strong>Settings</strong> &gt;&gt; <strong>Userscript Menus</strong>).</p><p>Level settings are located on the post index page.</p><ul><li><a rel="external nofollow noreferrer" class="dtext-link dtext-external-link dtext-named-external-link" href="https://drive.google.com/open?id=0B39jDgCtzVHudTAzR2lScE1UNFk">Screenshot</a></li></ul><div class="expandable"> <div class="expandable-header"> <span>Setting/Control Details</span><input type="button" value="Show" class="expandable-button"> </div> <div class="expandable-content"> <h5>General Settings:</h5> <ul> <li> <strong>Use Session Enable:</strong> Have a different state of enabled on each page tab.</li> <li> <strong>Use Session Level:</strong> Have a different active list on each page tab.</li> <li> <strong>Enable Write Mode:</strong> Enable writes to your Danbooru blacklist with the <u>Push</u> button.</li> <li> <strong>Enable Validate Mode:</strong> Currently disabled.</li> <li> <strong>Enable Order Mode:</strong> Currently disabled.</li> </ul> <h5>General controls:</h5> <ul> <li> <strong>Submit:</strong> Save all of the settings and reload as required.</li> <li> <strong>Add:</strong> Add a new list/level.</li> <li> <strong>Reset All:</strong> Reset all settings to factory default.</li> <li> <strong>Show Raw:</strong> Used to transfer settings between domains/computers.</li> </ul> <h5>Level settings:</h5> <ul> <li> <strong>Hotkey:</strong> Key combination used to change levels.</li> <li> <strong>Enable:</strong> (All/None) Enable or disable constant lists (all or none).</li> <li> <strong>Background Process:</strong> Process a list in the background so that changing lists is more responsive.</li> <li> <strong>Blacklisted Tags:</strong> Works exactly the same as Danbooru's blacklist</li> <li> <strong>Custom CSS:</strong> Style to apply to the whole site.</li> </ul> <h5>List controls:</h5> <ul> <li> <strong>Pull:</strong> Populate tag list with a user's Danbooru blacklist tags.</li> <li> <strong>Push:</strong> Write a tag list to a user's Danbooru blacklist.</li> <li> <strong>Delete:</strong> Delete the level.</li> </ul> </div> </div><h4>CSS examples</h4><p>The following are several examples of how the CSS function can be used to better indicate the current level</p><div class="expandable"> <div class="expandable-header"> <span>CSS examples</span><input type="button" value="Show" class="expandable-button"> </div> <div class="expandable-content"> <h6>Name replaces site title</h6> <pre>#app-name-header { visibility: hidden; position: relative; } #app-name-header:after { content: "Safebooru"; color: #888; visibility: visible; position: absolute; top: 0; left: 0; } </pre> <h6>Name appended after site title</h6> <pre>#app-name-header:after { content: " (All)"; color: red; font-size: 0.8em; vertical-align: 5%; } </pre> <h6>Highlighted site title</h6> <pre>#app-name-header a { background-color: lightgreen; } </pre> </div> </div><h4>Alternate use cases</h4><p>In addition to being an alternative blacklist handler, Safelist can be used for a number of alternative purposes.</p><div class="expandable"> <div class="expandable-header"> <span>Single use</span><input type="button" value="Show" class="expandable-button"> </div> <div class="expandable-content"><ul> <li>Quickly update Danbooru's blacklist</li> <li>Quickly try out the effects of different CSS</li> <li>Contrast and compare different CSS setups (e.g. <a class="dtext-link dtext-id-link dtext-forum-topic-id-link" href="/forum_topics/9588">topic #9588</a> and <a class="dtext-link dtext-id-link dtext-forum-topic-id-link" href="/forum_topics/12923">topic #12923</a>)</li> <li>Contrast and compare different blacklists<br> </li> </ul></div> </div><div class="expandable"> <div class="expandable-header"> <span>Constant use</span><input type="button" value="Show" class="expandable-button"> </div> <div class="expandable-content"><ul> <li>Situational CSS</li> <ul><li>Have a different CSS depending on the time of day or any other factor</li></ul> <li>Assist with tagging</li> <ul> <li>E.g. a list with <a class="dtext-link dtext-wiki-link tag-type-0" href="/wiki_pages/1girl">1girl</a> and <a class="dtext-link dtext-wiki-link tag-type-0" href="/wiki_pages/multiple_girls">multiple girls</a> would quickly locate posts without a girl counter</li> <li>Saves having to do a separate tag search, plus you won't lose your place</li> </ul> <li>Quickly swap between different ratings</li> <ul><li>Have three lists with <strong>-rating:s</strong>, <strong>-rating:q</strong>, and <strong>-rating:e</strong> </li></ul> <li>Expand search capabilities beyond tag limit</li> <ul> <li>Positive search terms become negative list entries</li> <li>Negative search terms become positive list entries</li> </ul> <li>Panic mode, i.e. hide EVERYTHING!<br> </li> </ul></div> </div><h4>Caveats</h4><p>Danbooru's blacklist <u>will always</u> process <strong>no matter what</strong>! Therefore, having a <strong>ginormous</strong> Danbooru blacklist could potentially cause a lengthy delay in page loading in addition to Safelist processing.</p><p>Also, there is no Danbooru setting to turn blacklists off. Danbooru's "disable all blacklists" is actually a misnomer since it will first process the blacklist as if it was enabled before hiding them again (multiple times). This extra work was observed to take at least <strong><u>twice as long</u></strong> than enabled blacklists.</p><h4>Final</h4><p>Any suggestions or feedback are appreciated.</p><h4>Latest edits</h4><ul> <li>(2019-12-23)</li> <ul> <li> <strong>Version 4</strong> Updated library version</li> <ul><li>Several additions/improvements on settings menu</li></ul> <li>Added CSS examples to OP to change the site header</li> </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>(2017-07-11)</li> <ul><li> <strong>Version 2 (37)</strong> - Initial release</li></ul> <li>(2019-07-30)</li> <ul><li> <strong>Version 3</strong> - Initial release of overhauled version</li></ul> <li>(2019-12-23)</li> <ul> <li> <strong>Version 4</strong> Updated library version</li> <ul><li>Several additions/improvements on settings menu</li></ul> <li>Added CSS examples to OP<br> </li> </ul> </ul></div> </div> BrokenEagle98 /users/23799