發表文章 | 發起投票 |
[Tampermonkey][轉貼][重貼] block user script
此script適用於firefox,chrome
首先你要安裝一個Tampermonkey的程式
去Chrome Webstore 打 Tampermonkey就會搵到
到程式介面
新建腳本
記住Del user之前要un扑佢
如果唔係個script就會失效 (好似係
Copy and paste
// ==UserScript==
// @name Asshole Locust Asshole
// @descriptionOffFromGalden
// @includehttps://hkgalden.com/*
// @includehttps://m.hkgalden.com/*
// @version1.0
// ==/UserScript==
if (typeof jQuery === "function") {
var tListHas = $('[href*="profile/9871"]').length;
var postHas = $('[data-authorid="9871"]').length;
if(tListHas){
$('[href*="profile/9871"]').closest('tr').remove();
}
if(postHas){
$('[data-authorid="9871"]').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);
}
之後按Save
搞掂
從來o係你個瀏覽器消失
想block其他user 只要將9871轉成其他user既id no.就可以
有4個地方要轉
分3個Script寫9871, 8432, 10080 是常識吧[/size=1]
首先你要安裝一個Tampermonkey的程式
去Chrome Webstore 打 Tampermonkey就會搵到
到程式介面
新建腳本
記住Del user之前要un扑佢
如果唔係個script就會失效 (好似係
Copy and paste
// ==UserScript==
// @name Asshole Locust Asshole
// @descriptionOffFromGalden
// @includehttps://hkgalden.com/*
// @includehttps://m.hkgalden.com/*
// @version1.0
// ==/UserScript==
if (typeof jQuery === "function") {
var tListHas = $('[href*="profile/9871"]').length;
var postHas = $('[data-authorid="9871"]').length;
if(tListHas){
$('[href*="profile/9871"]').closest('tr').remove();
}
if(postHas){
$('[data-authorid="9871"]').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);
}
之後按Save
搞掂
從來o係你個瀏覽器消失
想block其他user 只要將9871轉成其他user既id no.就可以
有4個地方要轉
分3個Script寫9871, 8432, 10080 是常識吧[/size=1]
本貼文共有 0 個回覆
此貼文已鎖,將不接受回覆
發表文章 | 發起投票 |