Browser Data Filtering via API HOOK Function
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current browser-based solutions for filtering web page data, such as advertisements, require different plug-ins for various browsers, leading to increased development workload and maintenance due to browser-specific characteristics.
Innovation Solution
A method and apparatus that utilize a HOOK function within an Application Programming Interface (API) to filter data requests, allowing compatibility with all browsers without the need for specific plug-ins, by receiving data requests, invoking the API, and filtering data using the HOOK function.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If browser-specific plug-ins are used to filter web page data, then filtering functionality is achieved, but development workload and maintenance complexity increase due to the need to develop separate plug-ins for each browser
Solution Approach 1:
The patent applies universality by developing a single filtering plug-in that can operate across multiple browser types (Chrome, Firefox, Safari, etc.) through the use of a common JavaScript interface. Instead of creating separate plug-ins for each browser, the invention uses universal JavaScript code that leverages the HOOK mechanism to intercept and filter data requests in any browser that supports JavaScript, thereby reducing development workload while maintaining filtering functionality.
Solution Approach 2:
The patent uses the HOOK function as an intermediary mechanism between the filtering plug-in and the browser's data request process. The HOOK function acts as a mediator that intercepts data requests at a fundamental level, allowing the plug-in to filter advertisements and other unwanted content without needing to integrate deeply with each browser's specific architecture. This intermediary approach enables cross-browser compatibility with a single plug-in implementation.
2Adaptability or versatility
If browser-specific plug-ins are developed for each browser type, then compatibility with each browser is ensured, but the number of plug-ins and maintenance requirements increase
Solution Approach 1:
The invention achieves broad browser compatibility through a single universal plug-in implementation that works across Chrome, Firefox, Safari, and other JavaScript-enabled browsers. By using standard JavaScript and the HOOK mechanism rather than browser-specific APIs, the plug-in maintains adaptability to multiple browsers without requiring separate versions, thereby reducing maintenance effort.
Solution Approach 2:
The patent merges the functionality of multiple browser-specific plug-ins into a single universal plug-in. Instead of maintaining separate plug-ins for Chrome, Firefox, Safari, and other browsers, the invention combines all filtering functionality into one plug-in that uses the HOOK mechanism to achieve cross-browser compatibility, thereby simplifying deployment and maintenance.
3Object-generated harmful factors
If traditional plug-in methods are used for filtering, then advertisement filtering is achieved, but the solution requires post-maintenance and updates for each browser version
Solution Approach 1:
The HOOK function serves as an intermediary that intercepts data requests at a fundamental level in the browser's data flow. This intermediary approach allows the filtering plug-in to operate independently of browser-specific implementation details and version changes. Since the HOOK mechanism operates at a stable, fundamental level of the browser architecture, the plug-in requires minimal updates when browser versions change, reducing maintenance time while maintaining effective advertisement filtering.
Data Source
AI summary
A method, an apparatus and a system for filtering data of a web page are described. According to embodiments of the invention, a data request message sent through a browser is received, a corresponding Application Programming Interface is invoked based on the data request message. The Application Programming Interface includes a HOOK function, and the data request message is filtered by using the HOOK function in the Application Programming Interface. Since almost all kinds of browsers may utilize Application Programming Interface(s) for requesting data, the solution has good compatibility, no specific plug-ins need to be developed for various browsers, no post-maintenance is required, the workload of development is small and the implementation is flexible.


