{"id":21134981,"url":"https://github.com/rudxain/ubo-rules","last_synced_at":"2026-03-19T19:02:12.386Z","repository":{"id":220735941,"uuid":"752462264","full_name":"Rudxain/uBO-rules","owner":"Rudxain","description":"uBlock-Origin rule-set boilerplates for admins and regular users (including me)","archived":false,"fork":false,"pushed_at":"2024-10-24T03:29:41.000Z","size":263,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-24T20:44:56.219Z","etag":null,"topics":["adblock","admin","advanced","boilerplate","browsing","filters","hostnames","network","noscript","preferences","prefs","privacy","profiles","security","sys-admin","templates","ublock-origin","ublock-rulesets","users","web"],"latest_commit_sha":null,"homepage":"","language":"Adblock Filter List","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rudxain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2024-02-03T22:55:45.000Z","updated_at":"2024-10-24T03:29:45.000Z","dependencies_parsed_at":"2024-02-26T01:38:07.090Z","dependency_job_id":"7f9647d9-fa5c-4059-a073-0f4c16625c0e","html_url":"https://github.com/Rudxain/uBO-rules","commit_stats":null,"previous_names":["rudxain/ubo-rules"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rudxain%2FuBO-rules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rudxain%2FuBO-rules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rudxain%2FuBO-rules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rudxain%2FuBO-rules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rudxain","download_url":"https://codeload.github.com/Rudxain/uBO-rules/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243581061,"owners_count":20314163,"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","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":["adblock","admin","advanced","boilerplate","browsing","filters","hostnames","network","noscript","preferences","prefs","privacy","profiles","security","sys-admin","templates","ublock-origin","ublock-rulesets","users","web"],"created_at":"2024-11-20T06:40:00.932Z","updated_at":"2026-03-17T18:10:24.229Z","avatar_url":"https://github.com/Rudxain.png","language":"Adblock Filter List","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [uBO-R](https://github.com/gorhill/uBlock/wiki/Dashboard:-My-rules)\n\u003e [!important]\n\u003e This requires [Advanced Mode](https://github.com/gorhill/uBlock/wiki/Advanced-user-features) to be enabled\n\n\u003e [!tip]\n\u003e If you just want to read text, I recommend a [TUI](https://en.wikipedia.org/wiki/Text-based_user_interface) web-browser such as [ELinks](https://github.com/rkd77/elinks).\n\u003e Not loading a JIT-interpreter is much more efficient than not using it, same goes for audio-visual decoding+rendering.\n\u003e\n\u003e If you're on Android, [Termux has your back](https://github.com/termux/termux-packages/tree/2a52d78475b92184d280dc978c35611a19476a1b/packages/elinks)! (`pkg i elinks`)\n\u003e\n\u003e gluegle (and other domains) only forces you to run JS if the browser supports it.\n\nTip: Don't just 📋CP. Remember to search commented-out rules and filters. They are optional, but can enhance the experience on specific devices and scenarios.\n\nYou can easily find them using these regexes (`*.ubo` \u0026 `*.abp` respectively):\n```regex\n^#\\S.+\n```\n```regex\n^!\\S.+\n```\n\n## Profiles\nAKA \"User Types\".\n\nAll file-names that have a stem ([`basename`](https://pubs.opengroup.org/onlinepubs/9799919799/utilities/basename.html) without extension) in common are considered to belong to the same profile. When you apply a profile to uBO, you are expected to use **all** files from said profile.\n\nTo check if a list of files are part of the same profile, use the `common_stem` fn:\n```ts\nconst get_stem = (path: string) =\u003e {\n\t// `-1` is implicitly offset to `0`,\n\t// this is intentional.\n\tconst basename = path.substring(path.lastIndexOf('/') + 1)\n\tconst dot_i = basename.lastIndexOf('.')\n\treturn dot_i == -1 ? basename : basename.substring(0, dot_i)\n}\n\nconst common_stem = (paths: ReadonlySet\u003cstring\u003e) =\u003e\n\t[...paths].every((path, _, path_ls) =\u003e\n\t\tget_stem(path_ls[0]) == get_stem(path)\n\t)\n```\nThese fns are intended to be \"normative\", therefore, any bugs in them should be considered \"specification mistakes\" rather than \"implementation bugs\". I am 100% confident that both fns are bug-free!\n\n### Admin\nFor privileged (Administrator) accounts. These are the only users with (partial) `root`/`System` access (AKA \"sudoers\"), so they need **ABSOLUTELY MAXIMUM SECURITY** at the cost of convenience. Since admins don't need to browse many websites, the strict-blocking doesn't affect them much.\n\n\u003e [!tip]\n\u003e Disable JIT-compilation:\n\u003e - [Moz](https://consumerrights.wiki/w/Mozilla) [Firefox](https://consumerrights.wiki/w/Firefox): use `Securefox.js`, and uncomment [these options](https://github.com/yokoffing/Betterfox/blob/c5fca2dbf7289c8dbce901c040683f3cdfdd7926/Securefox.js#L1131-L1162)\n\u003e - Chromium (e.g. [gluegle](https://consumerrights.wiki/w/Google) [chrome](https://consumerrights.wiki/w/Google_Chrome), [M$](https://consumerrights.wiki/w/Microsoft) [edging](https://consumerrights.wiki/w/Microsoft_Edge), ...): CLI arg `--js-flags=\"--jitless\"`.\n\u003e \t- add it to the desktop shortcut (to make it persistent): This can be done on [winbloats](https://consumerrights.wiki/w/Windows) (Properties -\u003e Shortcut -\u003e Target) and any system that supports the [FD spec](https://specifications.freedesktop.org/desktop-entry-spec/latest/exec-variables.html)\n\n### User\nAny human user, usually my family or friends. They shouldn't be using \"Medium-Mode\", because literally any site they visit could break, and that's an inconvenience.\n\nMost rules are \"just-in-case\", for the sake of future-proofing, and lack of information about the behavior of sites.\n\n### Rx\n\u003e [!tip]\n\u003e Install [Libredirect](https://github.com/libredirect/browser_extension) and [YT-DLP](https://github.com/yt-dlp/yt-dlp)\n\nMy own personal rule-set. Designed for my needs, desires, and convictions.\n\n## Syntax\n[uBO doesn't support comments on dyn-rules](https://github.com/gorhill/uBlock/issues/333).\n\nuBO auto-removes syntactically-invalid lines, and [`#` is unlikely to become valid](https://github.com/gorhill/uMatrix/issues/314#issuecomment-128793820), so this hack _works_... as long as each comment is placed on **its own line** (side-comments will turn the **whole** line into a comment), so be careful\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frudxain%2Fubo-rules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frudxain%2Fubo-rules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frudxain%2Fubo-rules/lists"}