Skip to content

Commit

Permalink
fix bootstrapcdn (justjavac#65)
Browse files Browse the repository at this point in the history
* fix bootstrapcdn

* Update background.js
  • Loading branch information
Frost Wong authored Jan 11, 2021
1 parent 51c7d57 commit d4242ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chrome/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ chrome.webRequest.onBeforeRequest.addListener(
url = url.replace('fonts.gstatic.com', 'gstatic.loli.net');
url = url.replace('www.google.com/recaptcha/', 'www.recaptcha.net/recaptcha/');
url = url.replace('secure.gravatar.com', 'gravatar.loli.net');
url = url.replace('maxcdn.bootstrapcdn.com/bootstrap/','cdn.bootcdn.net/ajax/libs/twitter-bootstrap/');
return { redirectUrl: url };
},
{
Expand All @@ -45,6 +46,7 @@ chrome.webRequest.onBeforeRequest.addListener(
"*://fonts.gstatic.com/*",
"*://www.google.com/recaptcha/*",
"*://secure.gravatar.com/*",
"*://maxcdn.bootstrapcdn.com/bootstrap/*",
]
},
["blocking"]
Expand Down

0 comments on commit d4242ee

Please sign in to comment.