You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
By clicking “Sign up for GitHub”, you agree to our
terms of service
and
privacy statement
. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
缘由:是因为了我看了
这个帖子和帖子评论
,为了解决帖子里的问题,才搜到的解决办法,同时还包括
下载浏览器扩展
,还有想看看人家扩展是怎么写的!
办法来源参考:
图片镜像缓存服务—防盗链图片、imgur 等国内无法访问图片的解决方案
依据上述解决办法,简单加工改造写了4种解决办法(也就是4条规则)
说明: 办法仅供参考,自己用自己配置即可 (参考自定义规则)
"id"
:
1
,
"priority"
:
200
,
"action"
: {
"type"
:
"
redirect
"
,
"redirect"
: {
"regexSubstitution"
:
"
https://images.weserv.nl/?url=
\\
1
"
"condition"
: {
"regexFilter"
:
"
(.*?)
"
,
"requestDomains"
: [
"
imgur.com
"
],
"initiatorDomains"
: [
"
stackoverflow.com
"
],
"resourceTypes"
: [
"
main_frame
"
,
"
sub_frame
"
,
"
stylesheet
"
,
"
script
"
,
"
image
"
,
"
font
"
,
"
object
"
,
"
xmlhttprequest
"
,
"
ping
"
,
"
csp_report
"
,
"
media
"
,
"
websocket
"
,
"
webtransport
"
,
"
webbundle
"
,
"
other
"
"id"
:
2
,
"priority"
:
100
,
"action"
: {
"type"
:
"
redirect
"
,
"redirect"
: {
"regexSubstitution"
:
"
https://img.noobzone.ru/getimg.php?url=
\\
2
"
"condition"
: {
"regexFilter"
:
"
(http[s]{0,1}://)(.*?)
"
,
"requestDomains"
: [
"
imgur.com
"
],
"initiatorDomains"
: [
"
stackoverflow.com
"
],
"resourceTypes"
: [
"
main_frame
"
,
"
sub_frame
"
,
"
stylesheet
"
,
"
script
"
,
"
image
"
,
"
font
"
,
"
object
"
,
"
xmlhttprequest
"
,
"
ping
"
,
"
csp_report
"
,
"
media
"
,
"
websocket
"
,
"
webtransport
"
,
"
webbundle
"
,
"
other
"
"id"
:
3
,
"priority"
:
100
,
"action"
: {
"type"
:
"
modifyHeaders
"
,
"requestHeaders"
: [
"header"
:
"
referer
"
,
"operation"
:
"
remove
"
"condition"
: {
"urlFilter"
:
"
img.noobzone.ru/getimg.php
"
,
"requestDomains"
: [
"
img.noobzone.ru
"
],
"initiatorDomains"
: [
"
stackoverflow.com
"
],
"resourceTypes"
: [
"
main_frame
"
,
"
sub_frame
"
,
"
stylesheet
"
,
"
script
"
,
"
image
"
,
"
font
"
,
"
object
"
,
"
xmlhttprequest
"
,
"
ping
"
,
"
csp_report
"
,
"
media
"
,
"
websocket
"
,
"
webtransport
"
,
"
webbundle
"
,
"
other
"
"id"
:
4
,
"priority"
:
100
,
"action"
: {
"type"
:
"
redirect
"
,
"redirect"
: {
"regexSubstitution"
:
"
https://pic1.xuehuaimg.com/proxy/
\\
2
"
"condition"
: {
"regexFilter"
:
"
(http[s]{0,1}://)(.*?)
"
,
"requestDomains"
: [
"
imgur.com
"
],
"initiatorDomains"
: [
"
stackoverflow.com
"
],
"resourceTypes"
: [
"
main_frame
"
,
"
sub_frame
"
,
"
stylesheet
"
,
"
script
"
,
"
image
"
,
"
font
"
,
"
object
"
,
"
xmlhttprequest
"
,
"
ping
"
,
"
csp_report
"
,
"
media
"
,
"
websocket
"
,
"
webtransport
"
,
"
webbundle
"
,
"
other
"
"id"
:
5
,
"priority"
:
100
,
"action"
: {
"type"
:
"
redirect
"
,
"redirect"
: {
"regexSubstitution"
:
"
https://search.pstatic.net/common?src=
\\
1
"
"condition"
: {
"regexFilter"
:
"
(.*?)
"
,
"requestDomains"
: [
"
imgur.com
"
],
"initiatorDomains"
: [
"
stackoverflow.com
"
],
"resourceTypes"
: [
"
main_frame
"
,
"
sub_frame
"
,
"
stylesheet
"
,
"
script
"
,
"
image
"
,
"
font
"
,
"
object
"
,
"
xmlhttprequest
"
,
"
ping
"
,
"
csp_report
"
,
"
media
"
,
"
websocket
"
,
"
webtransport
"
,
"
webbundle
"
,
"
other
"
以上规则
全在这里