火狐扩展程序推荐_使用Firefox的RIP扩展程序自定义Web
火狐擴展程序推薦
Remove It Permanently (RIP) is a Firefox addon that let you modify a web page layout by blocking HTML elements—very useful when we want to change the look and feel of a web page.
永久刪除(RIP)是Firefox的一個插件,可讓您通過阻止HTML元素來修改網(wǎng)頁布局–在我們要更改網(wǎng)頁外觀時非常有用。
We like to use RIP for creating a printer friendly page or removing advertisements from web pages. We can click on any elements on a web page and remove the elements by selecting the appropriate command from the UI. The second method is by specifying the XPath to the HTML elements that we want to block.
我們喜歡使用RIP創(chuàng)建易于打印的頁面或從網(wǎng)頁中刪除廣告。 我們可以單擊網(wǎng)頁上的任何元素,然后通過從UI中選擇適當?shù)拿顏韯h除這些元素。 第二種方法是通過指定要阻止HTML元素的XPath。
Let us take a look at how we can block HTML elements by selecting them and remove it from the UI.
讓我們看一下如何通過選擇HTML元素并將其從UI中刪除來阻止它們。
刪除廣告 (Removing Advertisements)
Regular Geek is one of the many Tech Blogs that I regularly visited to get a daily dose of geek stuff. Let’s take a look at one of his article.
Regular Geek是我經(jīng)常訪問的每天都會收到大量geek東西的眾多技術博客之一。 讓我們看一下他的一篇文章。
.
。
RIP allows us to remove any advertisement from the webpage by selecting each individual ad on the web page.
RIP允許我們通過選擇網(wǎng)頁上的每個廣告來從網(wǎng)頁中刪除任何廣告。
This is what the article looks like after we remove all the advertisement on the page.
這是我們刪除頁面上所有廣告后的樣子。
創(chuàng)建一個打印機友好的網(wǎng)頁 (Creating a Printer Friendly Webpage)
This is what Regular Geek article looks like out of the printer. Look at the wasted top space by text fields the tabs. We can remove those unnecessary items using RIP to create a cleaner print out of the article.
這是打印機上無法看到的Regular Geek文章。 通過選項卡的文本字段查看浪費的頂部空間。 我們可以使用RIP刪除那些不必要的項目,以使文章更整潔。
RIP has a feature where we can remove web page elements by specifying its Xpath.
RIP具有一項功能,我們可以通過指定Xpath來刪除網(wǎng)頁元素。
XPath is a language for finding information in an XML document that we can use to identify specific web elements and remove them from the web page.
XPath是一種用于在XML文檔中查找信息的語言,我們可以用來識別特定的Web元素并將其從Web頁面中刪除。
The Regular Geek’s article header’s XPath looks like this:
Regular Geek的文章標題的XPath如下所示:
//div[@id='headers']
//div[@id='grand_effectbar']
//div[@id='headers']
//div[@id='grand_effectbar']
The article has a better print layout without the header.
沒有標題的文章具有更好的打印布局。
XPath幫助 (Help on XPath)
Xpath can be a little bit daunting if you do not have any experience with it before. A good place to start learning XPath is by reading W3C’s introduction to XPath. Alternatively we can install Firefox plugin such as X-Ray that gives a good visualisation on the web page’s structure.
如果您以前沒有任何經(jīng)驗,那么Xpath可能會有些令人生畏。 閱讀W3C對XPath的介紹是開始學習XPath的好地方。 或者,我們可以安裝Firefox插件(例如X-Ray) ,以在網(wǎng)頁結(jié)構上提供良好的可視化效果。
結(jié)論 (Conclusion)
RIP is one option that we can use to remove unwanted web page elements to create a more readable web page. There are other alternatives such as Clippable , an easy to use bookmarklet to produce a printer friendly page version of a web page.
RIP是我們可以用來刪除不需要的網(wǎng)頁元素以創(chuàng)建更具可讀性的網(wǎng)頁的一種選擇。 還有其他選擇,例如Clippable ,這是一種易于使用的書簽,用于生成網(wǎng)頁的打印機友好頁面版本。
翻譯自: https://www.howtogeek.com/53438/customize-the-web-with-the-rip-extension-for-firefox/
火狐擴展程序推薦
總結(jié)
以上是生活随笔為你收集整理的火狐扩展程序推荐_使用Firefox的RIP扩展程序自定义Web的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【笔记本维修】【基础知识】【二极管 三极
- 下一篇: tirm php,PHP中trim 会导