Skip to content

Commit

Permalink
feat(post): 完善文章
Browse files Browse the repository at this point in the history
  • Loading branch information
李济芝 committed Jun 25, 2024
1 parent 951740b commit 714e51c
Show file tree
Hide file tree
Showing 12 changed files with 117 additions and 137 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ javascript:!function e(t){function n(){}function o(e){e[i].removeChild(e)}functi
```

## 禁用js执行
有两种方法可以禁用网站的js

有两种方法可以禁用网站的js:
1. 直接在浏览器中禁用js;以google浏览器为例,直接输入新开tab: chrome://settings/content/javascript 回车即可找到禁用入口;在禁止栏, 输入要该站点的网址即可完成;
2. 在网站中添加一段js代码,禁用js;
```javascript
Expand All @@ -35,7 +34,7 @@ javascript:void($={});
## 开发者工具不能打开
一般多数情况会使用开发者工具或者禁用js脚本,来进行规避,但有些时候开发者工具打不开,比如一打开就出现debugger,放行会跳空页面,百度的文心一言就是这样。 但是不要担心,用户拥有js代码最高控制权,所以就算百度自己有浏览器也没办法阻止用户调试注入代码。

但是解决百度这个问题可以不用代码注入,解决思路为,先设置禁用断点在进入对应网站。在其它页面打开开发者工具,选择“Sources”,点亮禁用断点,然后在地址栏输入https://yiyan.baidu.com/访问文心一言,就能正常使用开发者工具。
解决百度这个问题可以不用代码注入,解决思路为,先设置禁用断点在进入对应网站。具体操作步骤,在其它页面打开开发者工具,选择“Sources”,点亮禁用断点,然后在地址栏输入https://yiyan.baidu.com/访问文心一言,就能正常使用开发者工具。



Expand Down
2 changes: 1 addition & 1 deletion blog-site/content/posts/essays/快速打开Github.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tags: ["其他"]
slug: "accelerate-access-github"
---

为什么我们打开Github速度很慢?很卡甚至于访问不了,原因是中间有个域名通过DNS解析的过程,将域名解析为对应的ip地址,主要时间都是花在了DNS解析上了
为什么我们打开Github速度很慢?很卡甚至于访问不了,原因是中间有个域名通过DNS解析的过程,将域名解析为对应的ip地址,主要时间都花在了DNS解析上

我们在浏览器输入 GitHub 的网址时,会向 DNS 服务器发送一个请求,获取到 GitHub 网站所在的服务器 IP 地址,从而进行访问。如果 DNS 告诉了你错误的地址、或者请求被拦截、再或者 DNS 挂了,都会导致你无法访问网站。

Expand Down
109 changes: 48 additions & 61 deletions blog-site/content/posts/jvm/JVM详解.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@



<meta name="description" content="为什么我们打开Github速度很慢?很卡甚至于访问不了,原因是中间有个域名通过DNS解析的过程,将域名解析为对应的ip地址,主要时间都是花在了DNS解析上了。" />
<meta name="description" content="为什么我们打开Github速度很慢?很卡甚至于访问不了,原因是中间有个域名通过DNS解析的过程,将域名解析为对应的ip地址,主要时间都花在了DNS解析上。 我们" />



Expand Down Expand Up @@ -148,7 +148,7 @@ <h2 id="post_single_title">快速打开Github</h2>
</span>

</div>
<div class="post_content markdown"><p>为什么我们打开Github速度很慢?很卡甚至于访问不了,原因是中间有个域名通过DNS解析的过程,将域名解析为对应的ip地址,主要时间都是花在了DNS解析上了</p>
<div class="post_content markdown"><p>为什么我们打开Github速度很慢?很卡甚至于访问不了,原因是中间有个域名通过DNS解析的过程,将域名解析为对应的ip地址,主要时间都花在了DNS解析上</p>
<p>我们在浏览器输入 GitHub 的网址时,会向 DNS 服务器发送一个请求,获取到 GitHub 网站所在的服务器 IP 地址,从而进行访问。如果 DNS 告诉了你错误的地址、或者请求被拦截、再或者 DNS 挂了,都会导致你无法访问网站。</p>
<p>可以通过修改 hosts 文件,解决: GitHub 访问速度慢的问题,推荐<a href="https://github.com/521xueweihan/GitHub520">GitHub520</a></p>
<ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,15 +296,15 @@ <h2 id="利用js脚本">利用js脚本</h2>
<p>在电脑上打开浏览器,找到具体网站,按下F12,打开开发者工具,然后在控制台输入以下代码,回车即可。</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-javascript" data-lang="javascript"><span class="line"><span class="cl"><span class="nx">javascript</span><span class="o">:!</span><span class="kd">function</span> <span class="nx">e</span><span class="p">(</span><span class="nx">t</span><span class="p">){</span><span class="kd">function</span> <span class="nx">n</span><span class="p">(){}</span><span class="kd">function</span> <span class="nx">o</span><span class="p">(</span><span class="nx">e</span><span class="p">){</span><span class="nx">e</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">removeChild</span><span class="p">(</span><span class="nx">e</span><span class="p">)}</span><span class="kd">function</span> <span class="nx">r</span><span class="p">(</span><span class="nx">e</span><span class="p">){</span><span class="k">return</span><span class="p">[].</span><span class="nx">slice</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="nx">t</span><span class="p">.</span><span class="nx">querySelectorAll</span><span class="p">(</span><span class="nx">e</span><span class="p">))}</span><span class="kd">function</span> <span class="nx">c</span><span class="p">(</span><span class="nx">t</span><span class="p">){</span><span class="kd">function</span> <span class="nx">n</span><span class="p">(){</span><span class="nx">s</span><span class="p">(</span><span class="kd">function</span><span class="p">(){</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">o</span><span class="p">)</span><span class="k">try</span><span class="p">{</span><span class="kd">var</span> <span class="nx">n</span><span class="o">=</span><span class="nx">t</span><span class="p">.</span><span class="nx">contentDocument</span><span class="p">;</span><span class="nx">n</span><span class="p">.</span><span class="nx">body</span><span class="p">.</span><span class="nx">childNodes</span><span class="p">.</span><span class="nx">length</span><span class="o">&amp;&amp;</span><span class="p">(</span><span class="nx">o</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span><span class="nx">e</span><span class="p">(</span><span class="nx">n</span><span class="p">))}</span><span class="k">catch</span><span class="p">(</span><span class="nx">e</span><span class="p">){</span><span class="nx">o</span><span class="o">=</span><span class="mi">0</span><span class="p">}},</span><span class="mi">100</span><span class="p">)}</span><span class="nx">a</span><span class="p">[</span><span class="nx">l</span><span class="p">](</span><span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">){</span><span class="nx">t</span><span class="p">[</span><span class="s1">&#39;on&#39;</span><span class="o">+</span><span class="nx">e</span><span class="p">]</span><span class="o">=</span><span class="kc">null</span><span class="p">});</span><span class="kd">var</span> <span class="nx">o</span><span class="p">;</span><span class="nx">n</span><span class="p">(),</span><span class="nx">t</span><span class="p">.</span><span class="nx">οnlοad</span><span class="o">=</span><span class="nx">n</span><span class="p">}</span><span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">i</span><span class="o">=</span><span class="s1">&#39;parentNode&#39;</span><span class="p">,</span><span class="nx">l</span><span class="o">=</span><span class="s1">&#39;forEach&#39;</span><span class="p">,</span><span class="nx">a</span><span class="o">=</span><span class="s1">&#39;contextmenu dragstart selectstart select copy beforecopy mouseup mousedown&#39;</span><span class="p">.</span><span class="nx">split</span><span class="p">(</span><span class="s1">&#39; &#39;</span><span class="p">),</span><span class="nx">u</span><span class="o">=</span><span class="nx">setTimeout</span><span class="p">(</span><span class="nx">n</span><span class="p">,</span><span class="mi">0</span><span class="p">);</span><span class="nx">u</span><span class="o">&gt;=</span><span class="mi">0</span><span class="p">;</span><span class="nx">u</span><span class="o">--</span><span class="p">)</span><span class="nx">clearTimeout</span><span class="p">(</span><span class="nx">u</span><span class="p">);</span><span class="k">for</span><span class="p">(</span><span class="nx">u</span><span class="o">=</span><span class="nx">setInterval</span><span class="p">(</span><span class="nx">n</span><span class="p">,</span><span class="mf">1e8</span><span class="p">);</span><span class="nx">u</span><span class="o">&gt;=</span><span class="mi">0</span><span class="p">;</span><span class="nx">u</span><span class="o">--</span><span class="p">)</span><span class="nx">clearInterval</span><span class="p">(</span><span class="nx">u</span><span class="p">);</span><span class="kd">var</span> <span class="nx">s</span><span class="o">=</span><span class="nx">setTimeout</span><span class="p">;</span><span class="nx">setTimeout</span><span class="o">=</span><span class="nx">setInterval</span><span class="o">=</span><span class="nx">n</span><span class="p">,</span><span class="nx">r</span><span class="p">(</span><span class="s1">&#39;script&#39;</span><span class="p">)[</span><span class="nx">l</span><span class="p">](</span><span class="nx">o</span><span class="p">);</span><span class="kd">var</span> <span class="nx">m</span><span class="o">=</span><span class="p">[];</span><span class="nx">r</span><span class="p">(</span><span class="s1">&#39;iframe,frame&#39;</span><span class="p">)[</span><span class="nx">l</span><span class="p">](</span><span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">){</span><span class="nx">m</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">e</span><span class="p">),</span><span class="nx">e</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">replaceChild</span><span class="p">(</span><span class="nx">t</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;script&#39;</span><span class="p">),</span><span class="nx">e</span><span class="p">)});</span><span class="kd">var</span> <span class="nx">f</span><span class="o">=</span><span class="nx">t</span><span class="p">.</span><span class="nx">documentElement</span><span class="p">.</span><span class="nx">innerHTML</span><span class="p">;</span><span class="nx">t</span><span class="p">.</span><span class="nx">open</span><span class="p">(),</span><span class="nx">t</span><span class="p">.</span><span class="nx">write</span><span class="p">(</span><span class="s1">&#39;&lt;!DOCTYPE html&gt;&#39;</span><span class="p">),</span><span class="nx">t</span><span class="p">.</span><span class="nx">close</span><span class="p">(),</span><span class="nx">t</span><span class="p">.</span><span class="nx">documentElement</span><span class="p">.</span><span class="nx">innerHTML</span><span class="o">=</span><span class="nx">f</span><span class="p">,</span><span class="nx">r</span><span class="p">(</span><span class="s1">&#39;script&#39;</span><span class="p">)[</span><span class="nx">l</span><span class="p">](</span><span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">){</span><span class="nx">e</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">replaceChild</span><span class="p">(</span><span class="nx">m</span><span class="p">.</span><span class="nx">shift</span><span class="p">(),</span><span class="nx">e</span><span class="p">)}),</span><span class="nx">r</span><span class="p">(</span><span class="s1">&#39;*&#39;</span><span class="p">)[</span><span class="nx">l</span><span class="p">](</span><span class="nx">c</span><span class="p">),</span><span class="nx">c</span><span class="p">(</span><span class="nx">t</span><span class="p">),</span><span class="nx">a</span><span class="p">[</span><span class="nx">l</span><span class="p">](</span><span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">){</span><span class="nx">t</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span><span class="nx">e</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">){</span><span class="nx">e</span><span class="p">.</span><span class="nx">stopPropagation</span><span class="p">()},</span><span class="o">!</span><span class="mi">0</span><span class="p">)});</span><span class="kd">var</span> <span class="nx">p</span><span class="o">=</span><span class="nx">t</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;style&#39;</span><span class="p">);</span><span class="nx">p</span><span class="p">.</span><span class="nx">innerHTML</span><span class="o">=</span><span class="s1">&#39;*{-webkit-user-select:text!important;-moz-user-select:text!important;user-select:text!important;}&#39;</span><span class="p">,</span><span class="nx">t</span><span class="p">.</span><span class="nx">body</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">p</span><span class="p">)}(</span><span class="nb">document</span><span class="p">);</span>
</span></span></code></pre></div><h2 id="禁用js执行">禁用js执行</h2>
<p>有两种方法可以禁用网站的js</p>
<p>有两种方法可以禁用网站的js</p>
<ol>
<li>直接在浏览器中禁用js;以google浏览器为例,直接输入新开tab: chrome://settings/content/javascript 回车即可找到禁用入口;在禁止栏, 输入要该站点的网址即可完成;</li>
<li>在网站中添加一段js代码,禁用js;</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-javascript" data-lang="javascript"><span class="line"><span class="cl"><span class="nx">javascript</span><span class="o">:</span><span class="k">void</span><span class="p">(</span><span class="nx">$</span><span class="o">=</span><span class="p">{});</span>
</span></span></code></pre></div><h2 id="开发者工具不能打开">开发者工具不能打开</h2>
<p>一般多数情况会使用开发者工具或者禁用js脚本,来进行规避,但有些时候开发者工具打不开,比如一打开就出现debugger,放行会跳空页面,百度的文心一言就是这样。 但是不要担心,用户拥有js代码最高控制权,所以就算百度自己有浏览器也没办法阻止用户调试注入代码。</p>
<p>但是解决百度这个问题可以不用代码注入,解决思路为,先设置禁用断点在进入对应网站。在其它页面打开开发者工具,选择“Sources”,点亮禁用断点,然后在地址栏输入https://yiyan.baidu.com/访问文心一言,就能正常使用开发者工具。</p>
<p>解决百度这个问题可以不用代码注入,解决思路为,先设置禁用断点在进入对应网站。具体操作步骤,在其它页面打开开发者工具,选择“Sources”,点亮禁用断点,然后在地址栏输入https://yiyan.baidu.com/访问文心一言,就能正常使用开发者工具。</p>
</div>
<div id="post_footer" class="post_footer">
<div class="meta">
Expand Down
2 changes: 1 addition & 1 deletion docs/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@
<link>https://whiteppure.github.io/iblog/posts/essays/accelerate-access-github/</link>
<pubDate>Thu, 21 Mar 2024 00:00:00 +0000</pubDate>
<guid>https://whiteppure.github.io/iblog/posts/essays/accelerate-access-github/</guid>
<description>为什么我们打开Github速度很慢?很卡甚至于访问不了,原因是中间有个域名通过DNS解析的过程,将域名解析为对应的ip地址,主要时间都是花在了DNS解析上了。</description>
<description>为什么我们打开Github速度很慢?很卡甚至于访问不了,原因是中间有个域名通过DNS解析的过程,将域名解析为对应的ip地址,主要时间都花在了DNS解析上。 我们</description>
</item>
<item>
<title>Java资源干货,持续更新...</title>
Expand Down
2 changes: 1 addition & 1 deletion docs/page/4/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ <h2><a href='/iblog/posts/essays/accelerate-access-github/'>快速打开Github</

<div class="list">
<div class="post_content markdown">
<p>为什么我们打开Github速度很慢?很卡甚至于访问不了,原因是中间有个域名通过DNS解析的过程,将域名解析为对应的ip地址,主要时间都是花在了DNS解析上了。......</p>
<p>为什么我们打开Github速度很慢?很卡甚至于访问不了,原因是中间有个域名通过DNS解析的过程,将域名解析为对应的ip地址,主要时间都花在了DNS解析上。 我们......</p>
</div>
</div>

Expand Down
4 changes: 2 additions & 2 deletions docs/posts/essays/accelerate-access-github/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@



<meta name="description" content="为什么我们打开Github速度很慢?很卡甚至于访问不了,原因是中间有个域名通过DNS解析的过程,将域名解析为对应的ip地址,主要时间都是花在了DNS解析上了。" />
<meta name="description" content="为什么我们打开Github速度很慢?很卡甚至于访问不了,原因是中间有个域名通过DNS解析的过程,将域名解析为对应的ip地址,主要时间都花在了DNS解析上。 我们" />



Expand Down Expand Up @@ -148,7 +148,7 @@ <h2 id="post_single_title">快速打开Github</h2>
</span>

</div>
<div class="post_content markdown"><p>为什么我们打开Github速度很慢?很卡甚至于访问不了,原因是中间有个域名通过DNS解析的过程,将域名解析为对应的ip地址,主要时间都是花在了DNS解析上了</p>
<div class="post_content markdown"><p>为什么我们打开Github速度很慢?很卡甚至于访问不了,原因是中间有个域名通过DNS解析的过程,将域名解析为对应的ip地址,主要时间都花在了DNS解析上</p>
<p>我们在浏览器输入 GitHub 的网址时,会向 DNS 服务器发送一个请求,获取到 GitHub 网站所在的服务器 IP 地址,从而进行访问。如果 DNS 告诉了你错误的地址、或者请求被拦截、再或者 DNS 挂了,都会导致你无法访问网站。</p>
<p>可以通过修改 hosts 文件,解决: GitHub 访问速度慢的问题,推荐<a href="https://github.com/521xueweihan/GitHub520">GitHub520</a></p>
<ul>
Expand Down
Loading

0 comments on commit 714e51c

Please sign in to comment.