How to Select Footer Elements for All Websites and Hide Them

Abstract: Hide footer elements on all websites using uBlock Origin global cosmetic filters to remove unwanted page sections.

Created: 2026-08-09 by

To hide footer elements across all websites, use uBlock Origin’s custom filter rules with CSS selectors like footer or specific class names prefixed with .*/. This method allows you to permanently remove unwanted page sections without modifying the site’s code, providing a cleaner browsing experience on any domain.

Understanding Custom Filter Rules in uBlock Origin

uBlock Origin is a widely used browser extension that blocks ads and trackers by default. However, its true power lies in its ability to let users create custom cosmetic filters. These filters allow you to hide specific HTML elements based on their CSS selectors, classes, IDs, or attributes. When you apply these rules globally, they affect every website you visit, ensuring a consistent layout regardless of the platform. This approach is particularly useful for removing repetitive footers, cookie banners, or promotional sidebars that clutter your view. Unlike simple ad blocking lists, custom rules give you granular control over what remains visible on the screen. You can target elements that are not blocked by standard filters because they do not match known ad patterns. For more advanced customization techniques, such as managing context menus in Firefox, you might also find value in reading How to Remove 'Open Link in New Tab' from the Right-Click Menu in Firefox, which explores further ways to tailor your browser interface.

Identifying the Target Footer Elements

Before writing a rule, you must identify the exact CSS selector for the footer element you wish to hide. Different websites structure their footers differently. Some use semantic HTML tags like <footer>, while others rely on generic divs with classes like .site-footer, #footer, or .bottom-bar. To find the correct selector, open your browser’s developer tools. In most browsers, you can access this by right-clicking on the footer and selecting "Inspect" or "Inspect Element." Once the inspector opens, look at the HTML structure. Note the tag name, class, or ID associated with the outermost container of the footer. If the footer contains multiple nested elements, try to select the highest-level parent that encompasses the entire footer area. Hiding the parent element will automatically hide all child elements within it, reducing the complexity of your filter rule. Avoid targeting individual links or paragraphs inside the footer unless necessary, as this may leave gaps or broken layouts.

Creating Global Cosmetic Filters

Once you have identified the selector, you can create a global rule using uBlock Origin’s dashboard. Open the extension menu and click on the dashboard icon, usually represented by three horizontal lines or a gear symbol. Navigate to the "My filters" tab. This section is dedicated to user-defined rules that persist across sessions. To apply the rule to all websites, you must prefix the selector with .*/. This syntax tells uBlock Origin to apply the rule universally, regardless of the domain. For example, if the footer has the class .footer-container, your rule should look like this:
.*/##.footer-container
The ## syntax indicates a cosmetic filter, which hides the element after the page loads. If you want to block network requests associated with the footer (such as scripts or stylesheets), you would use different syntaxes, but for visual hiding, ## is sufficient. After entering the rule, click the "Apply changes" button located at the top of the panel. The extension will reload, and the specified footer should disappear from all websites immediately. If the footer persists, double-check the selector in the developer tools to ensure there are no typos or missing characters.

Troubleshooting Specific Selectors

Sometimes, a general selector like .*/##footer might not work if the website uses inline styles or JavaScript to dynamically inject content. In such cases, inspect the element again to see if additional classes are applied only when the page is fully loaded. You may need to combine selectors, such as .*/##div.footer-wrapper, to be more precise. If you encounter issues with conflicting styles, consider using !important flags in CSS, though uBlock Origin handles specificity automatically in most cases. For deeper dives into CSS layering and positioning, refer to Z-index in CSS: Parent vs Child Elements, which explains how overlapping elements interact.

Managing and Testing Your Filters

Regularly review your custom filters to ensure they remain effective. Websites often update their designs, changing class names or restructuring HTML. If a previously hidden footer reappears, revisit the developer tools to find the new selector and update your rule accordingly. You can test your filters by visiting various websites. Check common sites like news portals, blogs, and e-commerce platforms to verify that the footer is consistently hidden. If a rule causes layout issues on a specific site, you can disable it temporarily by adding a comment at the beginning of the line, using !. Additionally, consider organizing your filters with comments to make them easier to manage. Group related rules together and add notes explaining what each rule targets. This practice simplifies future updates and helps you understand the purpose of each entry. For those interested in styling web components, understanding how to edit font colors in Bootstrap 5 can complement your footer customization efforts, as detailed in How to Edit Font Color in Bootstrap 5: A Tech Support Guide.

Alternative Methods for Fine-Tuning

While uBlock Origin is the most efficient tool for this task, alternative methods exist. Browser extensions like Stylish allow you to write custom CSS for specific domains. However, these require manual maintenance for each site and do not offer the same ease of global application. Another option is using browser flags to enable experimental features, but these rarely provide direct control over DOM elements. Therefore, sticking with uBlock Origin’s cosmetic filters remains the best practice for hiding footers across all websites. It is lightweight, secure, and highly customizable. Remember to keep your extension updated to benefit from the latest performance improvements and bug fixes. Regular updates ensure that your filters continue to work smoothly as new browser versions are released.

Frequently Asked Questions

Will hiding the footer break website functionality?

Hiding a footer using cosmetic filters generally does not break functionality, as it only affects visibility. However, if the footer contains essential navigation links or legal information, removing it may impact user experience. Always verify that critical links are still accessible elsewhere on the page.

Can I hide footers on specific websites only?

Yes, you can create domain-specific rules by replacing .*/ with the actual domain name, such as example.com##.footer. This allows you to customize the appearance of individual sites without affecting others. Use this feature when a universal rule causes issues on certain platforms.

Why does my custom filter not work on some sites?

If a filter fails, the selector may have changed due to a website update, or the element might be loaded dynamically via JavaScript. Inspect the element again to confirm the current class or ID. Additionally, some sites use shadow DOM, which requires special handling in uBlock Origin.

Is it safe to use global cosmetic filters?

Global cosmetic filters are safe as long as you trust the source of the rules. uBlock Origin runs locally in your browser, so no data is sent to external servers. However, avoid copying unverified rules from unknown sources to prevent potential conflicts or unintended side effects.

How do I revert to the original footer if I made a mistake?

To revert changes, open uBlock Origin’s dashboard, go to "My filters," and either delete the problematic rule or comment it out by adding ! at the start. Click "Apply changes" to restore the default view. You can then adjust the selector if needed.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More