// ==UserScript== // @name dA_ignore // @namespace dA_ignore // @author Dediggefedde // @description ignores people on dA // @match http://*.deviantart.com/* // @match https://*.deviantart.com/* // @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js // @require https://greasemonkey.github.io/gm4-polyfill/gm4-polyfill.js // @version 1.5.1 // @grant GM_setValue // @grant GM_getValue // @grant GM.setValue // @grant GM.getValue // @downloadURL none // ==/UserScript== /* globals $*/ /* Hide Tags/Description: DiFi.pushPost("DeviationView","getExtrasHTML",["501848540","",{},{"is_referred":0,"origin":"dynamic_nav_click","is_new_tab":1}],function(success, data){ console.log(data.response.content.html_col1.split("http://www.deviantart.com/tag/").length); //tag-count }); DiFi.send(); */ var ignorenames = []; var settings = { hidecomments: false, hidemessages: true, deletemessages: true, hideprofile: true, hidedeivations: true }; function inIgnoreList(name) { //n array of string var rex; for (var n of name) { if (n == "" || n == null) continue; for (var i of ignorenames) { if(i[0]=='#'){ rex = new RegExp(i.substr(1), "i"); if (rex.test(n.toLowerCase())) { return true;} }else{ if(n.toLowerCase()==i.toLowerCase()) return true; } } } return false; } function pruf() { //dynamic browsing, check all 1s. setTimeout(pruf, 500); if (settings.hidedeivations) { var thumbs = $("div.tt-a.tt-fh:not(notignore)").filter(function () { return inIgnoreList([$(this).attr("username")]); }).attr("notignore", ""); thumbs.remove(); } //eclipse: a.user-link:not(notignore) var bnam = $('a.u:not(notignore),a.user-link:not(notignore),div.tt-a:not(notignore),img.avatar:not(notignore)').filter(function () { return inIgnoreList([$(this).text(), $(this).attr("username"), $(this).attr("title")]); }).attr('notignore', ''); if (settings.hideprofile && $("#da_unignore_but").length == 0 && (bnam.parents('div.catbar').length > 0 || bnam.parents("div._3HAOe").length > 0)) { // && bnam.parents('div.catbar').length > 0 && $("#da_unignore_but").length==0 var replaceSite = '
