1
0
mirror of https://gitee.com/bitdance-team/chrome-extension synced 2025-10-08 08:45:14 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

阅读原文自动展开、鼠标样式、鼠标特效代码优化

This commit is contained in:
2022-02-10 02:26:48 +08:00
parent 55c2f64ed6
commit c454f72ecb
7 changed files with 73 additions and 55 deletions

View File

@@ -45,6 +45,22 @@ $(function() {
});
/**
* Expand Fulltext
*/
const btnExpandFulltext = document.querySelector("#btnExpandFulltext");
// 页面加载时,更新界面开关状态
chrome.storage.sync.get("State_ExpandFulltext", ({ State_ExpandFulltext }) => {
btnExpandFulltext.checked = !State_ExpandFulltext;
});
// 点击开关时存储按钮状态并刷新页面
btnExpandFulltext.addEventListener("change", () => {
chrome.storage.sync.set({ State_ExpandFulltext: !btnExpandFulltext.checked });
refreshPage('Expand Fulltext');
});
/**
* Google广告拦截
*/