---> <a href="https://www.artstation.com/jariah" title="Link: https://www.artstation.com/jariah">Artstation</a>
// ==UserScript== // @name Polycount Thread Auto Fav // @namespace polycount
// @description Automatically favorite threads when replying
// @version 1.0 // @author birb // @match https://polycount.com/* // @require http://code.jquery.com/jquery-3.4.1.min.js // @run-at document-end // ==/UserScript== this.$ = window.jQuery.noConflict(); ;(function ( $, undefined ) { // Set to "false" to disable autofav by default var default_fav = true // Cosmetic Changes var bookmark_form_opt = '<div class="CUSTOM_autofav_form" style="padding-top: .75em;"><label style="color: inherit;"><div id="CUSTOM_autofav" class="icheckbox icheck-item icheck[rmcrd]" style="vertical-align: baseline; width: 1.3em; height: 1.3em;"></div> Auto Favorite thread upon replying</label></div>'; $('#Form_Comment div div.TextBoxWrapper').append(bookmark_form_opt); if(default_fav) { $('#CUSTOM_autofav').addClass('checked'); } // AutoFav checkbox support $('#CUSTOM_autofav').click(function(e) { e.preventDefault(); $(this).toggleClass('checked'); }); // AutoFav function $('#Form_PostComment').click(function(e) { // only bookmark when fav is enabled and it's not already faved if ($('#CUSTOM_autofav').hasClass('checked') && !$('.PageControls.Top a.Bookmark').hasClass('Bookmarked')) { $('.PageControls.Top a.Bookmark')[0].click(); } }); })(window.jQuery.noConflict());