Skip to content

Commit cf38547

Browse files
committed
清除github幽灵通知-火狐浏览器
1 parent 6b53888 commit cf38547

16 files changed

Lines changed: 506 additions & 350 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
date: '2025-10-27T16:12:49+08:00'
3+
draft: false
4+
title: '清除github幽灵通知 火狐浏览器'
5+
---
6+
7+
[Notifications](https://github.com/notifications)这个网址里有某个仓库的通知无法被选中,
8+
于是搜索并[山风阁](从https://blog.sunlan.me/2025/10/13/清除GitHub幽灵通知/)拿到了两行JavaScript,在FireFox上运行之后清掉了。
9+
文章中描述的是Chrome的用法,之前我因为Feedbro被禁用搬到FireFox,所以这里重点说明如何在FireFox里使用。
10+
把JavaScript片段贴到这里防止找不到:
11+
```JavaScript
12+
document.querySelector('.js-notifications-mark-all-actions').removeAttribute('hidden');
13+
document.querySelector('.js-notifications-mark-all-actions form[action="/notifications/beta/archive"] button').removeAttribute('disabled');
14+
```
15+
1. 来到github的通知页面,在通知页面左侧,选中当前正在发送通知的幽灵仓库,这使得github的通知搜索栏里显示`repo:`开头的标签
16+
2. 点击“全选”(Select all)
17+
2. 按F12打开或从“工具”选项打开“开发者工具”
18+
3. 点击控制台,按Ctrl+B(或Command+B)打开切换到多行模式
19+
4. 尝试点击左边的栏目并粘贴代码,输入`allow pasting`确认粘贴代码
20+
5. 点击代码上方、控制台下方的运行按钮运行代码,这使得“全选”(Select all)之后的操作面板显示出来
21+
6. 点击Done,完成清除,等待刷新响应或手动刷新网页,该幽灵仓库应当不再产生通知圆点
22+

public/404.html

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
<!DOCTYPE html>
22
<html lang="en" dir="auto">
33

4-
<head><meta charset="utf-8">
4+
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script><meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7-
<meta name="robots" content="index, follow">
7+
<meta name="robots" content="noindex, nofollow">
88
<title>404 Page not found | WinterArch&#39;s WebLog</title>
99
<meta name="keywords" content="">
1010
<meta name="description" content="">
1111
<meta name="author" content="">
12-
<link rel="canonical" href="https://winterarch.github.io/404.html">
12+
<link rel="canonical" href="http://localhost:1313/404.html">
1313
<link crossorigin="anonymous" href="/assets/css/stylesheet.a090830a421002426baafbd314e38f149d77b4c48a12ee9312700d770b27fb26.css" integrity="sha256-oJCDCkIQAkJrqvvTFOOPFJ13tMSKEu6TEnANdwsn&#43;yY=" rel="preload stylesheet" as="style">
14-
<link rel="icon" href="https://winterarch.github.io/favicon.ico">
15-
<link rel="icon" type="image/png" sizes="16x16" href="https://winterarch.github.io/favicon-16x16.png">
16-
<link rel="icon" type="image/png" sizes="32x32" href="https://winterarch.github.io/favicon-32x32.png">
17-
<link rel="apple-touch-icon" href="https://winterarch.github.io/apple-touch-icon.png">
18-
<link rel="mask-icon" href="https://winterarch.github.io/safari-pinned-tab.svg">
14+
<link rel="icon" href="http://localhost:1313/favicon.ico">
15+
<link rel="icon" type="image/png" sizes="16x16" href="http://localhost:1313/favicon-16x16.png">
16+
<link rel="icon" type="image/png" sizes="32x32" href="http://localhost:1313/favicon-32x32.png">
17+
<link rel="apple-touch-icon" href="http://localhost:1313/apple-touch-icon.png">
18+
<link rel="mask-icon" href="http://localhost:1313/safari-pinned-tab.svg">
1919
<meta name="theme-color" content="#2e2e33">
2020
<meta name="msapplication-TileColor" content="#2e2e33">
21-
<link rel="alternate" hreflang="en" href="https://winterarch.github.io/404.html">
21+
<link rel="alternate" hreflang="en" href="http://localhost:1313/404.html">
2222
<noscript>
2323
<style>
2424
#theme-toggle,
@@ -55,15 +55,7 @@
5555
}
5656

5757
</style>
58-
</noscript><meta property="og:url" content="https://winterarch.github.io/404.html">
59-
<meta property="og:site_name" content="WinterArch&#39;s WebLog">
60-
<meta property="og:title" content="404 Page not found">
61-
<meta property="og:locale" content="zh-CN">
62-
<meta property="og:type" content="website">
63-
<meta name="twitter:card" content="summary">
64-
<meta name="twitter:title" content="404 Page not found">
65-
<meta name="twitter:description" content="">
66-
58+
</noscript>
6759
</head>
6860

6961
<body class="list" id="top">
@@ -81,7 +73,7 @@
8173
<header class="header">
8274
<nav class="nav">
8375
<div class="logo">
84-
<a href="https://winterarch.github.io/" accesskey="h" title="WinterArch&#39;s WebLog (Alt + H)">WinterArch&#39;s WebLog</a>
76+
<a href="http://localhost:1313/" accesskey="h" title="WinterArch&#39;s WebLog (Alt + H)">WinterArch&#39;s WebLog</a>
8577
<div class="logo-switches">
8678
<button id="theme-toggle" accesskey="t" title="(Alt + T)" aria-label="Toggle theme">
8779
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
@@ -114,7 +106,7 @@
114106
</main>
115107

116108
<footer class="footer">
117-
<span>&copy; 2025 <a href="https://winterarch.github.io/">WinterArch&#39;s WebLog</a></span> ·
109+
<span>&copy; 2025 <a href="http://localhost:1313/">WinterArch&#39;s WebLog</a></span> ·
118110

119111
<span>
120112
Powered by

public/categories/index.html

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
<!DOCTYPE html>
22
<html lang="en" dir="auto">
33

4-
<head><meta charset="utf-8">
4+
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script><meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7-
<meta name="robots" content="index, follow">
7+
<meta name="robots" content="noindex, nofollow">
88
<title>Categories | WinterArch&#39;s WebLog</title>
99
<meta name="keywords" content="">
1010
<meta name="description" content="">
1111
<meta name="author" content="">
12-
<link rel="canonical" href="https://winterarch.github.io/categories/">
12+
<link rel="canonical" href="http://localhost:1313/categories/">
1313
<link crossorigin="anonymous" href="/assets/css/stylesheet.a090830a421002426baafbd314e38f149d77b4c48a12ee9312700d770b27fb26.css" integrity="sha256-oJCDCkIQAkJrqvvTFOOPFJ13tMSKEu6TEnANdwsn&#43;yY=" rel="preload stylesheet" as="style">
14-
<link rel="icon" href="https://winterarch.github.io/favicon.ico">
15-
<link rel="icon" type="image/png" sizes="16x16" href="https://winterarch.github.io/favicon-16x16.png">
16-
<link rel="icon" type="image/png" sizes="32x32" href="https://winterarch.github.io/favicon-32x32.png">
17-
<link rel="apple-touch-icon" href="https://winterarch.github.io/apple-touch-icon.png">
18-
<link rel="mask-icon" href="https://winterarch.github.io/safari-pinned-tab.svg">
14+
<link rel="icon" href="http://localhost:1313/favicon.ico">
15+
<link rel="icon" type="image/png" sizes="16x16" href="http://localhost:1313/favicon-16x16.png">
16+
<link rel="icon" type="image/png" sizes="32x32" href="http://localhost:1313/favicon-32x32.png">
17+
<link rel="apple-touch-icon" href="http://localhost:1313/apple-touch-icon.png">
18+
<link rel="mask-icon" href="http://localhost:1313/safari-pinned-tab.svg">
1919
<meta name="theme-color" content="#2e2e33">
2020
<meta name="msapplication-TileColor" content="#2e2e33">
21-
<link rel="alternate" type="application/rss+xml" href="https://winterarch.github.io/categories/index.xml" title="rss">
22-
<link rel="alternate" hreflang="en" href="https://winterarch.github.io/categories/">
21+
<link rel="alternate" type="application/rss+xml" href="http://localhost:1313/categories/index.xml" title="rss">
22+
<link rel="alternate" hreflang="en" href="http://localhost:1313/categories/">
2323
<noscript>
2424
<style>
2525
#theme-toggle,
@@ -56,15 +56,7 @@
5656
}
5757

5858
</style>
59-
</noscript><meta property="og:url" content="https://winterarch.github.io/categories/">
60-
<meta property="og:site_name" content="WinterArch&#39;s WebLog">
61-
<meta property="og:title" content="Categories">
62-
<meta property="og:locale" content="zh-CN">
63-
<meta property="og:type" content="website">
64-
<meta name="twitter:card" content="summary">
65-
<meta name="twitter:title" content="Categories">
66-
<meta name="twitter:description" content="">
67-
59+
</noscript>
6860
</head>
6961

7062
<body class="list" id="top">
@@ -82,7 +74,7 @@
8274
<header class="header">
8375
<nav class="nav">
8476
<div class="logo">
85-
<a href="https://winterarch.github.io/" accesskey="h" title="WinterArch&#39;s WebLog (Alt + H)">WinterArch&#39;s WebLog</a>
77+
<a href="http://localhost:1313/" accesskey="h" title="WinterArch&#39;s WebLog (Alt + H)">WinterArch&#39;s WebLog</a>
8678
<div class="logo-switches">
8779
<button id="theme-toggle" accesskey="t" title="(Alt + T)" aria-label="Toggle theme">
8880
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
@@ -120,7 +112,7 @@ <h1>Categories</h1>
120112
</main>
121113

122114
<footer class="footer">
123-
<span>&copy; 2025 <a href="https://winterarch.github.io/">WinterArch&#39;s WebLog</a></span> ·
115+
<span>&copy; 2025 <a href="http://localhost:1313/">WinterArch&#39;s WebLog</a></span> ·
124116

125117
<span>
126118
Powered by

public/categories/index.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
33
<channel>
44
<title>Categories on WinterArch&#39;s WebLog</title>
5-
<link>https://winterarch.github.io/categories/</link>
5+
<link>http://localhost:1313/categories/</link>
66
<description>Recent content in Categories on WinterArch&#39;s WebLog</description>
77
<generator>Hugo -- 0.151.2</generator>
88
<language>zh-CN</language>
9-
<atom:link href="https://winterarch.github.io/categories/index.xml" rel="self" type="application/rss+xml" />
9+
<atom:link href="http://localhost:1313/categories/index.xml" rel="self" type="application/rss+xml" />
1010
</channel>
1111
</rss>

public/index.html

Lines changed: 28 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22
<html lang="en" dir="auto">
33

44
<head>
5-
<meta name="generator" content="Hugo 0.151.2"><meta charset="utf-8">
5+
<meta name="generator" content="Hugo 0.151.2"><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script><meta charset="utf-8">
66
<meta http-equiv="X-UA-Compatible" content="IE=edge">
77
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
8-
<meta name="robots" content="index, follow">
8+
<meta name="robots" content="noindex, nofollow">
99
<title>WinterArch&#39;s WebLog</title>
1010

1111
<meta name="description" content="">
1212
<meta name="author" content="">
13-
<link rel="canonical" href="https://winterarch.github.io/">
13+
<link rel="canonical" href="http://localhost:1313/">
1414
<link crossorigin="anonymous" href="/assets/css/stylesheet.a090830a421002426baafbd314e38f149d77b4c48a12ee9312700d770b27fb26.css" integrity="sha256-oJCDCkIQAkJrqvvTFOOPFJ13tMSKEu6TEnANdwsn&#43;yY=" rel="preload stylesheet" as="style">
15-
<link rel="icon" href="https://winterarch.github.io/favicon.ico">
16-
<link rel="icon" type="image/png" sizes="16x16" href="https://winterarch.github.io/favicon-16x16.png">
17-
<link rel="icon" type="image/png" sizes="32x32" href="https://winterarch.github.io/favicon-32x32.png">
18-
<link rel="apple-touch-icon" href="https://winterarch.github.io/apple-touch-icon.png">
19-
<link rel="mask-icon" href="https://winterarch.github.io/safari-pinned-tab.svg">
15+
<link rel="icon" href="http://localhost:1313/favicon.ico">
16+
<link rel="icon" type="image/png" sizes="16x16" href="http://localhost:1313/favicon-16x16.png">
17+
<link rel="icon" type="image/png" sizes="32x32" href="http://localhost:1313/favicon-32x32.png">
18+
<link rel="apple-touch-icon" href="http://localhost:1313/apple-touch-icon.png">
19+
<link rel="mask-icon" href="http://localhost:1313/safari-pinned-tab.svg">
2020
<meta name="theme-color" content="#2e2e33">
2121
<meta name="msapplication-TileColor" content="#2e2e33">
22-
<link rel="alternate" type="application/rss+xml" href="https://winterarch.github.io/index.xml" title="rss">
23-
<link rel="alternate" hreflang="en" href="https://winterarch.github.io/">
22+
<link rel="alternate" type="application/rss+xml" href="http://localhost:1313/index.xml" title="rss">
23+
<link rel="alternate" hreflang="en" href="http://localhost:1313/">
2424
<noscript>
2525
<style>
2626
#theme-toggle,
@@ -57,28 +57,7 @@
5757
}
5858

5959
</style>
60-
</noscript><meta property="og:url" content="https://winterarch.github.io/">
61-
<meta property="og:site_name" content="WinterArch&#39;s WebLog">
62-
<meta property="og:title" content="WinterArch&#39;s WebLog">
63-
<meta property="og:locale" content="zh-CN">
64-
<meta property="og:type" content="website">
65-
<meta name="twitter:card" content="summary">
66-
<meta name="twitter:title" content="WinterArch&#39;s WebLog">
67-
<meta name="twitter:description" content="">
68-
69-
<script type="application/ld+json">
70-
{
71-
"@context": "https://schema.org",
72-
"@type": "Organization",
73-
"name": "WinterArch's WebLog",
74-
"url": "https://winterarch.github.io/",
75-
"description": "",
76-
"logo": "https://winterarch.github.io/favicon.ico",
77-
"sameAs": [
78-
79-
]
80-
}
81-
</script>
60+
</noscript>
8261
</head>
8362

8463
<body class="list" id="top">
@@ -96,7 +75,7 @@
9675
<header class="header">
9776
<nav class="nav">
9877
<div class="logo">
99-
<a href="https://winterarch.github.io/" accesskey="h" title="WinterArch&#39;s WebLog (Alt + H)">WinterArch&#39;s WebLog</a>
78+
<a href="http://localhost:1313/" accesskey="h" title="WinterArch&#39;s WebLog (Alt + H)">WinterArch&#39;s WebLog</a>
10079
<div class="logo-switches">
10180
<button id="theme-toggle" accesskey="t" title="(Alt + T)" aria-label="Toggle theme">
10281
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
@@ -127,6 +106,19 @@
127106
<main class="main">
128107

129108
<article class="first-entry">
109+
<header class="entry-header">
110+
<h2 class="entry-hint-parent">清除github幽灵通知 火狐浏览器
111+
</h2>
112+
</header>
113+
<div class="entry-content">
114+
<p>Notifications这个网址里有某个仓库的通知无法被选中, 于是搜索并山风阁拿到了两行JavaScript,在FireFox上运行之后清掉了。 文章中描述的是Chrome的用法,之前我因为Feedbro被禁用搬到FireFox,所以这里重点说明如何在FireFox里使用。 把JavaScript片段贴到这里防止找不到:
115+
document.querySelector(&#39;.js-notifications-mark-all-actions&#39;).removeAttribute(&#39;hidden&#39;); document.querySelector(&#39;.js-notifications-mark-all-actions form[action=&#34;/notifications/beta/archive&#34;] button&#39;).removeAttribute(&#39;disabled&#39;); 来到github的通知页面,在通知页面左侧,选中当前正在发送通知的幽灵仓库,这使得github的通知搜索栏里显示repo:开头的标签 点击“全选”(Select all) 按F12打开或从“工具”选项打开“开发者工具” 点击控制台,按Ctrl&#43;B(或Command&#43;B)打开切换到多行模式 尝试点击左边的栏目并粘贴代码,输入allow pasting确认粘贴代码 点击代码上方、控制台下方的运行按钮运行代码,这使得“全选”(Select all)之后的操作面板显示出来 点击Done,完成清除,等待刷新响应或手动刷新网页,该幽灵仓库应当不再产生通知圆点 </p>
116+
</div>
117+
<footer class="entry-footer"><span title='2025-10-27 16:12:49 +0800 CST'>October 27, 2025</span></footer>
118+
<a class="entry-link" aria-label="post link to 清除github幽灵通知 火狐浏览器" href="http://localhost:1313/posts/%E6%B8%85%E9%99%A4github%E5%B9%BD%E7%81%B5%E9%80%9A%E7%9F%A5-%E7%81%AB%E7%8B%90%E6%B5%8F%E8%A7%88%E5%99%A8/"></a>
119+
</article>
120+
121+
<article class="post-entry">
130122
<header class="entry-header">
131123
<h2 class="entry-hint-parent">基于MVVM模式手把手写出可测试性强的SwiftUI代码
132124
</h2>
@@ -138,7 +130,7 @@ <h2 class="entry-hint-parent">基于MVVM模式手把手写出可测试性强的S
138130
...</p>
139131
</div>
140132
<footer class="entry-footer"><span title='2025-10-21 15:43:57 +0800 CST'>October 21, 2025</span></footer>
141-
<a class="entry-link" aria-label="post link to 基于MVVM模式手把手写出可测试性强的SwiftUI代码" href="https://winterarch.github.io/posts/%E5%9F%BA%E4%BA%8Emvvm%E6%A8%A1%E5%BC%8F%E6%89%8B%E6%8A%8A%E6%89%8B%E5%86%99%E5%87%BA%E5%8F%AF%E6%B5%8B%E8%AF%95%E6%80%A7%E5%BC%BA%E7%9A%84swiftui%E4%BB%A3%E7%A0%81/"></a>
133+
<a class="entry-link" aria-label="post link to 基于MVVM模式手把手写出可测试性强的SwiftUI代码" href="http://localhost:1313/posts/%E5%9F%BA%E4%BA%8Emvvm%E6%A8%A1%E5%BC%8F%E6%89%8B%E6%8A%8A%E6%89%8B%E5%86%99%E5%87%BA%E5%8F%AF%E6%B5%8B%E8%AF%95%E6%80%A7%E5%BC%BA%E7%9A%84swiftui%E4%BB%A3%E7%A0%81/"></a>
142134
</article>
143135

144136
<article class="post-entry">
@@ -151,12 +143,12 @@ <h2 class="entry-hint-parent">HelloWorld
151143
</p>
152144
</div>
153145
<footer class="entry-footer"><span title='2025-10-21 14:58:51 +0800 CST'>October 21, 2025</span></footer>
154-
<a class="entry-link" aria-label="post link to HelloWorld" href="https://winterarch.github.io/posts/helloworld/"></a>
146+
<a class="entry-link" aria-label="post link to HelloWorld" href="http://localhost:1313/posts/helloworld/"></a>
155147
</article>
156148
</main>
157149

158150
<footer class="footer">
159-
<span>&copy; 2025 <a href="https://winterarch.github.io/">WinterArch&#39;s WebLog</a></span> ·
151+
<span>&copy; 2025 <a href="http://localhost:1313/">WinterArch&#39;s WebLog</a></span> ·
160152

161153
<span>
162154
Powered by

0 commit comments

Comments
 (0)