{"id":21169563,"url":"https://github.com/pellaeon/fb-post-filter","last_synced_at":"2025-08-23T06:37:55.099Z","repository":{"id":146907910,"uuid":"206616629","full_name":"pellaeon/fb-post-filter","owner":"pellaeon","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-22T14:34:44.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T17:25:08.654Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pellaeon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-05T17:07:23.000Z","updated_at":"2024-08-22T14:34:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"43eee3e7-511d-4696-8aa3-783db10d6343","html_url":"https://github.com/pellaeon/fb-post-filter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pellaeon/fb-post-filter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pellaeon%2Ffb-post-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pellaeon%2Ffb-post-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pellaeon%2Ffb-post-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pellaeon%2Ffb-post-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pellaeon","download_url":"https://codeload.github.com/pellaeon/fb-post-filter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pellaeon%2Ffb-post-filter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271745679,"owners_count":24813521,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T15:52:31.034Z","updated_at":"2025-08-23T06:37:55.069Z","avatar_url":"https://github.com/pellaeon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 介紹\n\n這是一個簡單暴力的瀏覽器插件，幫你移除 Facebook 上面不相干的貼文：\n\n- 贊助貼文\n- 煩人的互動式問題\n- 推薦的粉專和社團\n\n目前有如下限制：\n\n- 不能自訂關鍵字，以後有時間再增加這個功能\n- 只有你的 Facebook 顯示語言設為正體中文才會有效\n\n## 安裝方法\n\nhttps://addons.mozilla.org/zh-TW/firefox/addon/facebook-postfilter-tw/\n\n## 開發版安裝方法\n\n1. 點選右邊 Clone or download -\u003e Download ZIP\n2. 下載完 ZIP 檔之後解壓縮\n3. 遵循 [Firefox 說明文件](https://developer.mozilla.org/zh-CN/docs/Mozilla/Add-ons/WebExtensions/Temporary_Installation_in_Firefox) 的指示，載入此附加元件，在文中「打开附加组件的目录」的步驟，使用剛剛解壓縮的資料夾（選取資料夾裡面的任一個檔案）\n4. 重新整理所有 Facebook 分頁\n5. 完成\n\n## 原理\n\nFacebook 會經常修改他們的頁面結構，所以一般常見的利用 class name 和 aria-label 等屬性去抓出貼文元素的方式很容易就會失效。\n\n本專案採用貼文元素的結構和元素的大小作為判斷，應該比較不容易受改版影響。\n\n抓取了貼文的元素之後，檢查每一篇貼文的文字內容（使用 `Element.textContent` ），只要包含「贊助」等字串，則刪除該貼文的 DOM 元素。\n\n因為追求簡單暴力，沒打算做多國語言支援。\n\n## 參考\n\n如果你需要更進階的自訂功能，可以使用 [SocialFixer](https://addons.mozilla.org/zh-TW/firefox/addon/socialfixer/)。但他的貼文過濾功能似乎不是很可靠，贊助過濾功能也是。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpellaeon%2Ffb-post-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpellaeon%2Ffb-post-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpellaeon%2Ffb-post-filter/lists"}