Diskussionen » Entwicklung

githubfast脚本会导致百度翻译(无反应)、cnprint.org等网站异常,想修改match字段限定范围。

dub
§
Veröffentlicht: 24.01.2024
Bearbeitet: 24.01.2024

脚本位置 https://greasyfork.org/zh-CN/scripts/480782-github-%E5%9B%BD%E5%86%85%E7%AC%AC%E4%B8%89%E6%96%B9%E5%8A%A0%E9%80%9F

我以为将 // @match :///* 改为 // @match ://www.github.com/* // @match ://github.com/ 之类即可,但脚本就不运行了。

请高手指教。 谢谢~

§
Veröffentlicht: 24.01.2024
Bearbeitet: 24.01.2024
$('body').each(function() {
            $(this).html($(this).html().replace(regex, replacement));
        });

根本神經病

480782這個腳本質素很低

別安裝

這樣搞法肯定會異常啦

dub
§
Veröffentlicht: 24.01.2024

你不安裝 https://greasyfork.org/zh-CN/scripts/480266-github-com%E5%9B%BD%E5%86%85%E5%8A%A0%E9%80%9F%E8%AE%BF%E9%97%AE/

装了你这个,没反应啊

另外直接在地址栏输www.github.com不会跳转,这似乎不科学,只会转链,不会转地址栏直输的。

我现在改了这个:
// @match *://*/*
// @exclude https://fanyi.baidu.com/*
// @exclude https://*github*.com/*
// @exclude https://*cnprint.org/*
// @exclude https://greasyfork.org/*

------------------------------------------
不明白为何用下边这个为何不对:
// @match *://*github*/*

dub
§
Veröffentlicht: 24.01.2024
$('body').each(function() {
$(this).html($(this).html().replace(regex, replacement));
});

你这段跟他原代码是一样的啊。没看出有啥子区别

Antwort schreiben

Anmelden um eine Antwort zu senden.