Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
切换ghproxy.com为gh-proxy.com
Browse files Browse the repository at this point in the history
  • Loading branch information
FW27623 authored Nov 11, 2023
1 parent 09c434d commit 11131c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/script.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function loadJSON(type) {
var urls = {
'basic': 'https://ghproxy.com/https://raw.githubusercontent.com/Snoopy1866/LiTiaotiao-Custom-Rules/main/BasicRules.json',
'all': 'https://ghproxy.com/https://raw.githubusercontent.com/Snoopy1866/LiTiaotiao-Custom-Rules/main/AllRules.json',
'basic': 'https://gh-proxy.com/https://raw.githubusercontent.com/Snoopy1866/LiTiaotiao-Custom-Rules/main/BasicRules.json',
'all': 'https://gh-proxy.com/https://raw.githubusercontent.com/Snoopy1866/LiTiaotiao-Custom-Rules/main/AllRules.json',
'basic_backup': 'https://cdn.jsdelivr.net/gh/Snoopy1866/LiTiaotiao-Custom-Rules/BasicRules.json',
'all_backup': 'https://cdn.jsdelivr.net/gh/Snoopy1866/LiTiaotiao-Custom-Rules/AllRules.json'
};
Expand Down Expand Up @@ -37,7 +37,7 @@ function loadJSON(type) {

if (type === 'basic' || type === 'all') {
var backupButton = document.createElement('button');
backupButton.innerHTML = type === 'basic' ? '基础规则(JsDelivr)' : '全部规则(JsDelivr)';
backupButton.innerHTML = type === 'basic' ? '基础规则(JsDelivr)' : '全部规则JsDelivr';
backupButton.className = 'backup';
backupButton.onclick = function() {
loadJSON(type + '_backup');
Expand Down

0 comments on commit 11131c2

Please sign in to comment.