8000 udpate:去掉提交记录tab中的状态和分数展示 · zhang-wangz/LeetCodeRating@3773ba1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3773ba1

Browse files
committed
udpate:去掉提交记录tab中的状态和分数展示
1 parent c20641b commit 3773ba1

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

leetcodeRating_greasyfork.user.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name LeetCodeRating|显示力扣周赛难度分
33
// @namespace https://github.com/zhang-wangz
4-
// @version 3.0.3
4+
// @version 3.0.4
55
// @license MIT
66
// @description LeetCodeRating 力扣周赛分数显现和相关力扣小功能,目前浏览器更新规则,使用该插件前请手动打开浏览器开发者模式再食用~
77
// @author 小东是个阳光蛋(力扣名)
@@ -54,6 +54,7 @@
5454
const pbUrl = 'https://leetcode.{2,7}/problems/.*';
5555
// 限定pbstatus使用, 不匹配题解链接
5656
const pbSolutionUrl = 'https://leetcode.{2,7}/problems/.*/solution.*';
57+
const pbSubmissionsUrl = 'https://leetcode.{2,7}/problems/.*/submissions.*';
5758

5859
const searchUrl = 'https://leetcode.cn/search/.*';
5960
const studyUrl = 'https://leetcode.cn/studyplan/.*';
@@ -1040,7 +1041,8 @@
10401041
let matchingLinks = Array.from(links).filter(link => {
10411042
return (
10421043
!link.getAttribute('linkId') &&
1043-
link.href.match(pbUrl) &&
1044+
link.href.match(pbUrl) &&
1045+
!link.href.match(pbSubmissionsUrl) &&
10441046
!link.href.match(pbSolutionUrl)
10451047
);
10461048
});

updatelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,5 @@
173173
// @note 2025-05-06 3.0.1 纸片人图片逻辑问题修复,感谢@zmctwjt的pr
174174
// @note 2025-05-10 3.0.2 PR by @median-dxz: 修复侧边栏题目高亮不一致的bug
175175
// @note 2025-05-15 3.0.3 修复切换页面监听刷新的问题; PR by @jianchau,修改cdn地址;
176+
// @note 2025-05-27 3.0.4 去掉提交记录tab中的状态和分数展示
176177

version.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"version": "3.0.3",
3-
"content": "修复切换页面监听刷新的问题; PR by @jianchau,修改cdn地址;",
2+
"version": "3.0.4",
3+
"content": "去掉提交记录tab中的状态和分数展示",
44
"papermanpic": "https://i.mij.rip/2025/04/29/1e40225e739fba34536e4ad18aa7d718.png"
55
}
66

0 commit comments

Comments
 (0)
0