發表文章 | 發起投票 |
識上膠登嘅一定要裝哩條Script
// ==UserScript== // @name HKGalden User Block // @version 2.0 // @description Block on9 son // @includehttps://hkgalden.com/* // @includehttps://m.hkgalden.com/* // @author abc // @copyright HKGalden // ==/UserScript== if(typeof jQuery === "function"){ var on9 = [4815,7626,7708,8447,9687,9871,13832,13855,13861,13870,14437,15224]; jQuery.each(on9,function(){ var tListHas = jQuery('[href*="profile/'+this+'"]').length; var postHas = jQuery('[data-authorid="'+this+'"]').length; if(tListHas){ jQuery('[href*="profile/'+this+'"]').closest('tr').remove(); } if(postHas){ jQuery('[data-authorid="'+this+'"]').remove(); } }); }else{ add_jQuery(GM_main,"2.0.2"); } function add_jQuery (callbackFn, jqVersion){ var jqVersion = jqVersion || "1.7.2"; var D = document; var targ= D.getElementsByTagName ('head')[0] || D.body || D.documentElement; var scriptNode = D.createElement ('script'); scriptNode.src = 'http://ajax.googleapis.com/ajax/libs/jquery/'+jqVersion+'/jquery.min.js'; scriptNode.addEventListener ("load",function(){ var scriptNode = D.createElement ("script"); scriptNode.textContent = 'var gm_jQuery = jQuery.noConflict (true);\n'+'(' + callbackFn.toString () + ')(gm_jQuery);'; targ.appendChild(scriptNode); },false); targ.appendChild(scriptNode); }
本貼文共有 0 個回覆
此貼文已鎖,將不接受回覆
發表文章 | 發起投票 |