Commit f30430c6 by 庄欣

用户备注插件

parent dac27f1a
......@@ -4,6 +4,10 @@ chrome.extension.onRequest.addListener(
url: "https://www.mepai.me/",
name: "auth"
}, cookie => {
sendResponse({access_token: cookie.value});
if (cookie === undefined || cookie === null || cookie === "") {
sendResponse({access_token: ""});
} else {
sendResponse({access_token: cookie.value});
}
});
});
\ No newline at end of file
......@@ -348,7 +348,14 @@ fetch(UI).then(function(res){
}
});
app.onload();
console.log(app.data);
});
let urlCircle = [];
setInterval(function () {
let currentUrl = window.location.href;
if (urlCircle.length > 0 && urlCircle.shift() !== currentUrl) {
window.location.reload();
}
urlCircle.push(currentUrl)
}, 1000);
\ No newline at end of file
......@@ -60,7 +60,7 @@
<div class="col-md-12">
<div v-if="isYoumi === 1" class="primary">此作品已参加有米计划</div>
<div v-if="isYoumi === 0" class="danger">此作品未参加有米计划</div>
<div><a href="https://www.mepai.me/mp/secret/youmibeixuan.html" target="_blank">跳转到备选库</a></div>
<div><a href="https://www.mepai.me/mp/secret/youmibeixuan" target="_blank">跳转到备选库</a></div>
<div v-if="inZone === false" class="form-group zone">
<div class="label">此作品未在有米计划备选公共库:</div>
<div class="input">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment