AirBashX / UserScript

🐵 自用的油侯脚本
https://greasyfork.org/zh-CN/users/698573
GNU General Public License v3.0
103 stars 9 forks source link

最新提交的部分问题 #13

Closed githuu5y5u closed 4 months ago

githuu5y5u commented 1 year ago

url 并非固定 edu-page/tiangong/questiondetail?id 另外题干没有展开

diff --git a/AutoUnfold.user.js b/AutoUnfold.user.js
index c33cad5..ce3235e 100644
--- a/AutoUnfold.user.js
+++ b/AutoUnfold.user.js
@@ -21,7 +21,7 @@
 // @match        *://wk.baidu.com/view/*
 // @match        *://tanbi.baidu.com/h5apptopic/browse/*
 // @match        *://baijiahao.baidu.com/s*
-// @match        *://easylearn.baidu.com/edu-page/tiangong/questiondetail?id*
+// @match        *://easylearn.baidu.com/edu-page/*
 // @match        *://mbd.baidu.com/newspage/data/*
 // @match        *://news.baidu.com/news*
 // @match        *://m.baidu.com/sf_baijiahao/*
@@ -448,8 +448,8 @@
            },
        },
        {
-           name: "百家题库",
-           url: "easylearn.baidu.com/edu-page/tiangong/questiondetail?id",
+           name: "百度题库",
+           url: "easylearn.baidu.com/edu-page/",
            handles: [
                //阅读全文
                {
@@ -460,6 +460,16 @@
                    type: "height",
                    item: ".shiti-answer .analysis-text",
                },
+               // 显示完整题目
+               {
+                   type: "height",
+                   item: ".question-cont .tigan",
+               },
+               // 移除遮罩
+               {
+                   type: "height",
+                   item: ".question-cont .tigan .mask",
+               },
            ],
        },
        {
AirBashX commented 1 year ago

最近有事,刚看到,感谢反馈,已经提交了