PUGE пре 2 година
родитељ
комит
6c7833f788
5 измењених фајлова са 4 додато и 6 уклоњено
  1. 1 1
      back/background.js
  2. 1 3
      back/options.js
  3. 1 1
      back/popup.js
  4. 0 0
      insert.js
  5. 1 1
      manifest.json

+ 1 - 1
back/background.js

@@ -53,7 +53,7 @@ function clearData (data) {
 
 function reGetData (url, callBack) {
   const nowTime = Date.parse(new Date())
-  const serverUrl = 'https://going.run/assistAll'
+  const serverUrl = 'https://hanshu.run/assist?route=assistAll'
   fetch(`${serverUrl}?route=search&username=` + (userInfo.username || ''), {
     method: 'POST',
     body: JSON.stringify({

+ 1 - 3
back/options.js

@@ -1,8 +1,6 @@
 //在popup.js 中调用 backgourd.js 中的变量和方法,很重要
 var bg = chrome.extension.getBackgroundPage();
 
-const serverUrl = 'https://going.run/assist'
-
 function login (username, password) {
   fetch(`https://user.hanshu.run/login`, {
     method: 'POST',
@@ -21,7 +19,7 @@ function login (username, password) {
       chrome.runtime.sendMessage({name:"reloadUser"},function() {})
       document.querySelector('.login-box').style.display = 'none'
       let newHtml = `<table border="0"><thead><tr><th>编号</th><th>脚本名称</th><th>开启状态</th></tr></thead><tbody>`
-      fetch(`https://going.run/assist?route=getList&username=${username}&session=${bg.userInfo.session}`).then((response) => {return response.json();}).then((res) => {
+      fetch(`https://hanshu.run/assist?route=getList&username=${username}&session=${bg.userInfo.session}`).then((response) => {return response.json();}).then((res) => {
         console.log(bg.openList)
         res.data.forEach(element => {
           newHtml += `<tr><td>${element.id}</td><td>${element.name}</td><td><input type="checkbox" key="${element.id}" id="check${element.id}" name="check${element.id}" ${bg.openList[element.id] ? 'checked' : ''}></td></tr>`

+ 1 - 1
back/popup.js

@@ -2,7 +2,7 @@
 var bg = chrome.extension.getBackgroundPage();
 // bg.count = bg.count+1;
 // console.log(bg)
-const serverUrl = 'https://going.run/assist'
+const serverUrl = 'https://hanshu.run/assist'
 
 function owoReplaceAll(str, s1, s2) {
   while (str.indexOf(s1) >= 0) {

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
insert.js


+ 1 - 1
manifest.json

@@ -1,7 +1,7 @@
 {
 	"manifest_version": 2,
 	"name": "脚本助手",
-	"version": "1.1.22",
+	"version": "1.1.23",
 	"description": "脚本助手",
 	"icons": {
 		"16": "./img/16.png",

Неке датотеке нису приказане због велике количине промена