Coder Social home page Coder Social logo

fb-post-filter's Introduction

介紹

這是一個簡單暴力的瀏覽器插件,幫你移除:

  • facebook 上面的贊助貼文
  • 煩人的互動式問題

目前有如下限制:

  • 不能自訂關鍵字,以後有時間再增加這個功能
  • 只有你的 Facebook 顯示語言設為正體中文才會有效

安裝方法

  1. 點選右邊 Clone or download -> Download ZIP
  2. 下載完 ZIP 檔之後解壓縮
  3. 遵循 Firefox 說明文件 的指示,載入此附加元件,在文中「打开附加组件的目录」的步驟,使用剛剛解壓縮的資料夾(選取資料夾裡面的任一個檔案)
  4. 重新整理所有 Facebook 分頁
  5. 完成

注意: 因為目前沒有上架到 addons.mozilla.org ,每次重新打開 Firefox 都要照上面步驟重新安裝一次。

原理

檢查每一篇貼文的文字內容(使用 Element.textContent ),只要包含「贊助」等字串,則刪除該貼文的 DOM 元素。

因為追求簡單暴力,沒打算做多國語言支援。

參考

如果你需要更進階的自訂功能,可以使用 SocialFixer。但他的貼文過濾功能似乎不是很可靠,贊助過濾功能也是。

fb-post-filter's People

Contributors

pellaeon avatar

Stargazers

Cycatz avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.