Method and device for rewriting browser pop-up box by using external application program

An external application and program rewriting technology, applied in the field of mobile communication, can solve problems such as difficulty, increase in difficulty, and high complexity of browsers, and achieve the effect of strong compatibility.

Active Publication Date: 2015-08-26
ALIBABA (CHINA) CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, it is very difficult for external applications to modify the interface of the browser, which is caused by the high complexity of the browser.
In particular, there are many kinds of browsers used in the terminal. When an application needs to modify the interface of different browsers, the difficulty will be greatly increased.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for rewriting browser pop-up box by using external application program
  • Method and device for rewriting browser pop-up box by using external application program
  • Method and device for rewriting browser pop-up box by using external application program

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0058] How to modify the confirmation box

[0059] Modifying the confirmation box is mainly realized by modifying the window.confirm function of the Javascript engine. After the confirm function is replaced with a custom CONFIRM function, the custom CONFIRM function will be dispatched when the webpage executes confirm.

[0060] During the entire process of monitoring messages and modifying browser pop-up boxes, the following steps will be executed sequentially: image 3 The flow shown:

[0061] S301: The Javascript engine pops up a confirmation box confirm in response to the request of the webpage;

[0062] S302: The Javascript engine throws a message of popping up a confirmation box, ie, transmits the confirm message to an external application program. Because the method provided by the present invention can modify some system interfaces of the Javascript engine, therefore, in the process of monitoring the message thrown by the Javascript engine, once it is found that the ...

example 2

[0073] Modify the right-click menu interface, adjust the menu items of the right-click menu, and let users download the interface, close the web page, and view the source code of the web page.

[0074] The process of modifying the right-click menu is as follows: Figure 4 Shown:

[0075] S401: The Javascript engine pops up a right-click menu in response to the webpage request;

[0076] S402: The Javascript engine throws a message of popping up the right-click menu, that is, the message of popping up the right-click menu is transmitted to an external application program. Because the method provided by the present invention can modify some system interfaces of the Javascript engine, therefore, in the process of monitoring the message thrown by the Javascript engine, once it is found that the Javascript engine throws a message about the right-click menu pop-up, it can be thrown in the Javascript engine. The message of the pop-up right-click menu will be passed to the external a...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and a device for rewriting a browser pop-up box by an external application program. The method includes: monitoring and capturing messages thrown by a Javascript engine of a browser; transmitting the captured messages to the external application program; interrupting transmission of a message, requiring modification of a browser interface by the external application program, in the captured messages thrown by the Javascript engine so as to disable the browser to redraw a UI (user interface) which is related to the message requiring modification of a browser interface by the external application program; allowing the external application program to redraw the UI according to the messages thrown by the Javascript engine; after the external application program finishes redrawing the UI, returning to execution flow of the Javascript engine of the browser, and allowing the browser to continue operating. The compatibility problem of the browser can be overcome, and modification of the browser interface is simpler.

Description

technical field [0001] The present invention relates to the technical field of mobile communication, and more specifically, relates to a method and a device for rewriting a pop-up box of a browser by using an external application program. Background technique [0002] With the rise of the Internet, various WebApps (web applications) are in full bloom, and the browser has become the most shining star among them. A variety of browser-based external applications have also emerged: Flash (the main way to display animations on web pages), Aoyou (applications based on the IE kernel), Thunder (providing powerful download modules for browsers), etc. [0003] Moreover, the popularity and application of portable mobile terminals such as mobile phones also makes people increasingly use wireless access terminals to access networks to obtain information. Different from ordinary PC access terminals, when portable mobile terminals such as mobile phones use browsers to browse webpages, due...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/44
Inventor 俞永福何小鹏朱顺炎黄伟忠陈德志梁延俊王欣李小龙
Owner ALIBABA (CHINA) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products