Skip to content

Commit

Permalink
v1.0.3
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
ckx000 committed May 3, 2022
1 parent c95668d commit 9fa762c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Docker:https://hub.docker.com/r/a76yyyy/qiandao


# 更新
v1.0.2 小改进。同时增加对旧版平台bug的兼容(编辑测试界面无法获取cookie)(新版签到平台已修正
v1.0.3 小改进。同时增加对旧版平台bug的兼容(编辑测试界面无法获取cookie)(新版签到平台已修正

v1.0.0 修改匹配及注入方式,添加设定选项方便自行添加需要启用的网站

Expand Down
18 changes: 9 additions & 9 deletions js/cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,10 @@ onload(function() {
console.log("getcookieload");
document.body.setAttribute("get-cookie", "true");
window.postMessage({"info":"get-cookieModReady"}, "*");//预传递,测试自动填入功能
//添加旧版平台bug修复性兼容//将来弃置
if(location.pathname.indexOf('/edit')>0 ){$("a.ng-scope[data-toggle=get-cookie]").each(function(){this.removeAttribute("disabled")})}

window.addEventListener('click', function(event) {
window.addEventListener('click', function(event) {
var export_btn = event.target;
if (export_btn.getAttribute("data-toggle") == "get-cookie") {
var port = chrome.runtime.connect({name: "get_cookie"});

var site = export_btn.getAttribute("data-site");
var name = export_btn.getAttribute("data-name");
var domain = export_btn.getAttribute("data-domain");
Expand All @@ -31,10 +27,14 @@ onload(function() {
} else {
return false;
}

});
}

}, false);

},false);
//添加旧版平台bug修复性兼容过渡//将来弃置//
if(location.pathname.indexOf('/edit')>0){
old=function() {
if(document.querySelector('a.ng-scope[disabled]')){document.querySelector('a.ng-scope[disabled]').removeAttribute("disabled")}}
setInterval(old, 1000)
}
});

2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyqfMOCKmBFCyUDyIA2BKpJJhZnwYd4xBvu3B9ppdOQ98LYtK8pEcSGLpyhuzyiwtmlm9faAimQbCjelk1NGs/rkOTQFeC+X4TI4soujKA3v4vW1+QACchIiLCVel3nIJzU2Xq1vdbgP74wMWZ766xUqP4y6nNnGOaFvAWK+CuXPXOlNxbQ5ipNGUDR3MLz+PuLh1HtaMjtXWeJ5ailm8Rhuax9wAo1FcE/DwiRTbv11et/2MTda7Xo/3Z8S7Sc1gDbwHGFYRT931A3a+FUTTwiEDPP4LZmjBxgyknaBnj1Zh46kNYdaN1LFq3/0HloHq/E6B8rHXozqVHucaob+oMwIDAQAB",
"permissions": [ "cookies", "storage", "tabs", "\u003Call_urls>"],
"name": "__MSG_appName__",
"version": "1.0.2"
"version": "1.0.3"
}

0 comments on commit 9fa762c

Please sign in to comment.