CN106933629B - Method for loading browser plug-in icon and browser - Google Patents

Method for loading browser plug-in icon and browser Download PDF

Info

Publication number
CN106933629B
CN106933629B CN201710138985.8A CN201710138985A CN106933629B CN 106933629 B CN106933629 B CN 106933629B CN 201710138985 A CN201710138985 A CN 201710138985A CN 106933629 B CN106933629 B CN 106933629B
Authority
CN
China
Prior art keywords
plug
browser
icon
container
browser plug
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710138985.8A
Other languages
Chinese (zh)
Other versions
CN106933629A (en
Inventor
郭晓龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Hongxiang Technical Service Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201710138985.8A priority Critical patent/CN106933629B/en
Publication of CN106933629A publication Critical patent/CN106933629A/en
Application granted granted Critical
Publication of CN106933629B publication Critical patent/CN106933629B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons

Abstract

The invention discloses a method for loading browser plug-in icons and a browser. The method comprises the following steps: setting a plug-in container for displaying browser plug-in icons in an available space in a browser address bar corresponding to each webpage in advance, and constructing a mapping relation set of the webpage and the length of the plug-in container; after the webpage loading of the browser is monitored, a pre-stored mapping relation set of the webpage and the length of the plug-in container is inquired, the length of the plug-in container mapped by the loaded webpage is obtained, and the browser plug-in icon is loaded in the plug-in container according to the obtained length of the plug-in container. By applying the method and the device, the content display effect in the browser page can be improved.

Description

Method for loading browser plug-in icon and browser
Technical Field
The invention relates to a browser plug-in display technology, in particular to a method for loading a browser plug-in icon based on a browser display interface and a browser.
Background
The browser plug-in is a program written according to a certain standard Application Programming Interface (API) for supplementing the browser function, and can be automatically executed along with the start of an IE browser (browser for short). For example, after installing the relevant plug-in the browser, the browser is enabled to directly call the installed plug-in for processing a specific type of file. Among them, the common browser plug-ins include: flash plug-ins, RealPlayer plug-ins, MMS plug-ins, advertisement interception plug-ins, ActiveX plug-ins, etc.
The browser is a client program most frequently used by communication equipment, and generally supports extended browser Plug-ins in two formats, namely, a Netscape Plug-in Application Programming Interface (NPAPI) and a Pepper Plug-in Application Programming Interface (PPAPI), and the browser Plug-ins can assist in enhancing the functions of the browser. The NPAPI plug-in is a browser third-party extension program composed of js/dll files and the like, so that Java Script codes can call native binary codes. The code running in the NPAPI plug-in has all the rights of the current user and cannot utilize the sandbox technology and other security technologies of Google Chrome. The PPAPPI is developed on the basis of the NPAPI, and the NPAPI is modified to be safer and have better portability and performance.
Before the browser plug-in is used, the browser plug-in needs to be installed, after the browser plug-in is installed, the browser needs to be restarted to enable the installed plug-in to take effect, and the browser plug-in icon is loaded on a browser display interface, so that a user can start, stop or upgrade the browser plug-in by clicking the displayed browser plug-in icon. The loaded browser plug-in ICONs (ICON) exclusively use one row in a toolbar of a browser display interface, and a plurality of browser plug-in ICONs are sequentially arranged in the row.
As can be seen from the above, in the existing method for loading a browser plug-in icon on a browser display interface, a row of toolbars needs to be monopolized for the browser plug-in icon displayed on the browser display interface, so that the displayable height of the content in the browser page is reduced, the display effect of the content in the browser page is affected, and the user service experience is reduced; furthermore, the positions of the browser plug-in icons loaded in the browser display interface are all fixed, a user can only set whether to display and hide the browser plug-in icons through configuration, and after the browser plug-in icons are selected to be hidden, the corresponding positions in the browser display interface are empty areas and reserved for areas displayed by the subsequent browser plug-in icons, so that the dynamic adjustment of the browser plug-in icons cannot be realized; moreover, the browser plug-in icon is set by a static method, which cannot reflect the update information of some browser plug-ins in real time, for example, for an advertisement blocking plug-in, after the advertisement blocking plug-in is started, the blocked advertisement increases along with time, while the existing advertisement blocking plug-in cannot provide related advertisement blocking information, cannot meet the personalized requirements of users, and reduces the service experience of users.
Disclosure of Invention
In view of the above, the present invention has been made to provide a method of loading a browser plug-in icon and a browser that overcome or at least partially solve the above problems.
According to one aspect of the invention, a method for loading a browser plug-in icon is provided, which comprises the following steps:
setting a plug-in container for displaying browser plug-in icons in an available space in a browser address bar corresponding to each webpage in advance, and constructing a mapping relation set of the webpage and the length of the plug-in container;
after the webpage loading of the browser is monitored, a pre-stored mapping relation set of the webpage and the length of the plug-in container is inquired, the length of the plug-in container mapped by the loaded webpage is obtained, and the browser plug-in icon is loaded in the plug-in container according to the obtained length of the plug-in container.
According to another aspect of the present invention, there is provided a browser, including: a mapping relation set building module and a browser plug-in icon loading module, wherein,
the mapping relation set building module is used for setting a plug-in container for displaying browser plug-in icons in an available space in a browser address bar corresponding to each webpage and building a mapping relation set of the webpage and the length of the plug-in container;
the browser plug-in icon loading module is used for inquiring a mapping relation set of a webpage page and a plug-in container length which are stored in advance after monitoring that the webpage page is loaded by the browser, acquiring the plug-in container length mapped by the loaded webpage page, and loading the browser plug-in icon in the plug-in container according to the acquired plug-in container length.
According to the method for loading the browser plug-in icons and the browser, the plug-in containers for displaying the browser plug-in icons can be arranged in the available space in the browser address bar corresponding to each webpage in advance, and the mapping relation set of the webpage and the length of the plug-in containers is constructed; after the webpage loading of the browser is monitored, a pre-stored mapping relation set of the webpage and the length of the plug-in container is inquired, the length of the plug-in container mapped by the loaded webpage is obtained, and the browser plug-in icon is loaded in the plug-in container according to the obtained length of the plug-in container. Therefore, the technical problem that the browser plug-in icon needs to occupy one line in a toolbar independently is solved, and the beneficial effects of improving the content display effect in a browser page, realizing the dynamic adjustment of the browser plug-in icon and reflecting the update information of some browser plug-ins in real time are achieved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flowchart illustrating a method for loading a browser plug-in icon according to an embodiment of the present invention;
FIG. 2 is a first structural diagram of a display interface of a browser according to an embodiment of the present invention;
FIG. 3 is a second structural diagram of a display interface of a browser according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an operation function menu popped up after selecting a plug-in application icon and clicking a right button according to an embodiment of the present invention; and the number of the first and second groups,
fig. 5 is a schematic view of a browser structure according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Browser plug-in icons loaded in a browser display interface currently occupy one line of a toolbar of the browser display interface independently, so that the displayable height of content in a browser page is reduced, and the display effect of the content in the browser page is influenced; furthermore, the number of browser plug-ins installed by a user is generally not more than five, but a toolbar in a row is occupied, and under the condition that the number of installed browser plug-ins is limited, the toolbar space in the row is not effectively utilized, so that the space utilization rate of a browser page is reduced.
Currently, all interface components of an operating system default are generally loaded in a browser display interface, including browser plug-ins and non-browser plug-ins. Wherein, the interface component that non-browser plug-in corresponds includes: the browser comprises a browser address bar, a browser search bar, a Tab page, a start page, a status bar, a toolbar and the like, and the interface component corresponding to the browser plug-in comprises a browser plug-in bar. Wherein the content of the first and second substances,
the browser address bar is used for inputting website address information, such as Uniform Resource Locator (URL) information to access a website, and occupies a fixed length in a browser display interface, and the browser address bar is long, typically 200 characters long.
In the embodiment of the invention, the longer length of the address bar of the browser is considered, and after the website information, such as uniform resource locator information, is input, the longer available space is not effectively utilized, so that the browser plug-in icon can be set by utilizing the available space. Therefore, the browser plug-in icon does not need to be additionally arranged to occupy one line of the toolbar independently, the height of the content in the browser page which can be displayed can be increased, and the display effect of the content in the browser page is improved.
Fig. 1 is a flowchart illustrating a method for loading a browser plug-in icon according to an embodiment of the present invention. Referring to fig. 1, the process includes:
step 101, setting a plug-in container for displaying browser plug-in icons in an available space in a browser address bar corresponding to each webpage in advance, and constructing a mapping relation set of the webpage and the length of the plug-in container;
in this step, based on the same browser, in different web pages, because the lengths of the website information corresponding to different web pages are different, and the lengths of the browser address bars are the same in each web page, the available spaces in the browser address bars corresponding to different web pages may be the same or different. And the mapping relation set comprises the mapping relation between each webpage page and the length of the corresponding plug-in container. Thus, as an alternative embodiment, constructing a mapping relationship set of web page and plug-in container (browseractioncontainer) length includes:
a11, acquiring the character length occupied by the website information corresponding to the webpage;
in this step, each web page corresponds to a website information. For example, for a 360 navigation page, the corresponding website information is: http:// hao.360. cn/? 1004, for the most full recruitment information page, the corresponding website information is: http:// www.liepin.com/event/landingpage/sojob2.shtmlmscid ═ t _ dx _013& utm _ source ═ 360 calinixihuan & utm _ medium ═ cpc & utm _ snapshot ═ work & utm _ content ═ general word & utm _ term ═ full recruitment information.
In the embodiment of the invention, the website information length is marked by the character length. For each determined web page, the character length of the corresponding web address information may also be determined.
A12, calculating the character length of the plug-in container corresponding to the webpage according to the character length of the browser address bar and the character length occupied by the website information corresponding to the webpage.
In this step, because the lengths of the website information are different, the available space in the browser address bar where each piece of website information is located is also different. That is, the character lengths of the plug-in containers corresponding to (mapping) different web pages may also be different.
In the embodiment of the invention, because the website information length corresponding to the webpage can be determined, the character length of the corresponding plug-in container can be calculated for each webpage, namely the mapping relation between the webpage and the plug-in container length is constructed. Wherein, the length of the plug-in container can be calculated by the following formula:
Li=L-Lurli
in the formula (I), the compound is shown in the specification,
Lithe length of a plug-in container corresponding to the ith webpage is obtained, wherein i is a natural number;
l is the length of the address bar of the browser;
Lurliand the length of the website information corresponding to the ith webpage is obtained.
In practical applications, in the browser upgrading process, upgrading is usually achieved by means of a built-in function, that is, a built-in program in the browser, and in order to facilitate browsing and operating habits of a user, in the embodiment of the present invention, the built-in program in the browser may also be displayed in an address bar of the browser, and thus, as another optional embodiment, the method may further include:
and setting a browser built-in function container for displaying browser built-in function program icons in an available space in a browser address bar.
In this step, since the number of the browser built-in function program icons is determined, the length occupied by the browser built-in function program icons may be a constant value.
As an alternative embodiment, the browser built-in function container is arranged at the end of the browser address bar and extends forwards for a predetermined set length, wherein the beginning of the browser address bar is used for inputting website information, i.e. the left side of the browser address bar, and the predetermined set length is the total length of one or more browser built-in function program icons in the browser built-in function container.
Thus, the insert container length can be calculated by the following formula:
Li=L-Lurli-Ln
in the formula (I), the compound is shown in the specification,
Lnthe length of the function container is built in the browser. In the embodiment of the invention, in order to further improve the display effect of the content in the browser page, aggregation processing can be performed on other related icons in the browser display interface, that is, modular management is performed on the icons in the browser display interface. The method further comprises the following steps:
toolbar buttons are provided, along with a search bar, at available spatial locations in line with the browser's address bar.
In this step, since the length of the address bar of the browser is generally 200, the screen width of the display interface of the browser is not covered, that is, a certain available space remains on the left and right sides of the address bar of the browser, so that corresponding toolbar buttons and search bars can be set in the available space for performing aggregation processing on the icons. By aggregating other related icons in the browser display interface into a toolbar or search bar. Therefore, the available space of the display interface of the browser can be effectively improved, and the display space of the content in the browser page is larger and the display effect is better. Regarding aggregating other related icons in the browser display interface to a toolbar or search bar, the technology is well known, and the detailed description is omitted here.
As an alternative embodiment, the tool bar is arranged at the left side of the address bar of the browser as the starting end, and the search field is arranged at the right side of the address bar of the browser as the tail end. That is, the right side of the toolbar is adjacent to the left side of the browser address bar, and the left side of the search bar is adjacent to the right side of the browser address bar.
In the embodiment of the present invention, the browser plug-in includes but is not limited to: the system comprises a chat software client plug-in, a virtual machine desktop plug-in, a mail reminding plug-in, other plug-ins with message reminding functions, a Flash plug-in, a RealPlayer plug-in, an MMS plug-in, an advertisement interception plug-in, an ActiveX plug-in and the like.
Fig. 2 is a first structural diagram of a display interface of a browser according to an embodiment of the present invention. Referring to fig. 2, the display interface of the browser is provided with three mutually independent parts, which are respectively: toolbar buttons, address bar (browser), and search bar. In the address bar, after reserving the available space of the website information, a plug-in container and a browser built-in function are also arranged.
The position of the plug-in container may be set to the left side of the browser built-in function, if the user cancels to display (hide) the browser built-in function, the plug-in container may be directly arranged from the end (right side) of the browser address bar, and if the browser built-in function is set, the plug-in container may be arranged from the left side of the browser built-in function.
Logically, the plug-in container (browseractioncontainer) belongs to a child element of the browser address bar, and thus, the layout of the plug-in container is controlled by the position and size of the browser address bar. Specifically, in the embodiment of the present invention, the maximum available space length of the card container is: the total length of the address bar of the browser is subtracted by the length of the built-in function of the browser, and then the length of the website information (URL) is subtracted. The total length of the browser address bar is generally 200, if the available space of the plug-in container is not enough to accommodate the display of all plug-ins, the website information length can be compressed, as long as the principle of URL display can be preferentially ensured, and the display of some browser plug-in icons in the plug-in container is hidden.
The toolbar button includes: a home button, a forward button, a back button, a refresh button, a resume close button, a favorites button, and a full function button. As an alternative embodiment, the toolbar button is located on the left side of the browser toolbar and displays the "toolbar button" script.
In the embodiment of the present invention, the browser may be a Firefox browser (Firefox), Google browser (Google Chrome), 360-security browser, or the like, but it should be understood that the specific type of the browser is not limited in the embodiment of the present invention.
It should be noted that step 101 need only be performed once, and need not be performed each time a browser plug-in icon is loaded.
Step 102, after monitoring that a webpage page is loaded by a browser, inquiring a mapping relation set of the webpage page and the length of a plug-in container stored in advance, acquiring the length of the plug-in container mapped by the loaded webpage page, and loading a browser plug-in icon in the plug-in container according to the acquired length of the plug-in container.
In this step, as an optional embodiment, a management page for performing unified management on the browser plug-in icons may be set in the browser, where the management page is provided with browser plug-in icon information that needs to be displayed by the user, that is, a browser plug-in icon set to be loaded, and in the browser plug-in icon set to be loaded, each browser plug-in icon that needs to be displayed and does not need to be displayed, which is set by the user, is stored. Therefore, after the browser is started each time, the browser plug-in icon sets to be loaded are the same for different webpage pages, and the difference is that the number of browser plug-ins capable of being loaded in the plug-in container is different based on the lengths of the plug-in containers corresponding to the different webpage pages.
As an alternative embodiment, loading a browser plug-in icon in the plug-in container according to the acquired plug-in container length includes:
calculating the total length of all browser plug-in icons in a browser plug-in icon set to be loaded;
judging whether the calculated total length is larger than the acquired plug-in container length, if so, selecting a browser plug-in icon which meets a preset loading strategy from the browser plug-in icon set to be loaded, and loading the browser plug-in icon into the plug-in container; otherwise, loading all browser plug-in icons in the browser plug-in icon set to be loaded into the plug-in container.
In this step, as an optional embodiment, selecting a browser plug-in icon that meets a preset loading policy includes:
according to the priority of the browser plug-in icons, sequencing the browser plug-in icons which are arranged to be displayed in the browser plug-in icon set to be loaded;
in this step, the user may set a priority for the browser plug-in icon in the set of browser plug-in icons to be loaded. In this way, when the space in the plug-in container is limited, the browser plug-in icon having a high priority is preferentially loaded. Of course, the browser plug-in icon priority may also be set by the browser according to the function of the plug-in, the number of times the plug-in is downloaded, and other information.
And calculating the aggregation length of the browser plug-in icons of N positions before the sequencing so that the calculated aggregation length is not more than the acquired plug-in container length, and taking the browser plug-in icons of N positions before the sequencing as the browser plug-in icons meeting a preset loading strategy, wherein N is a natural number.
Of course, in practical applications, as another alternative embodiment, the selecting the browser plug-in icon that meets the preset loading policy includes:
sequencing the browser plug-in icons in the browser plug-in icon set to be loaded according to the loading count value of the browser plug-in icons;
in this step, after the browser is started each time, the loaded browser plug-in icons are counted, and the browser icons set to be displayed are sorted according to the count value, so that the degree of the need of the user for the browser plug-ins can be reflected.
And calculating the aggregation length of the browser plug-in icons at the N positions before the sequencing so that the calculated aggregation length is not more than the acquired plug-in container length, and taking the browser plug-in icons at the N positions before the sequencing as the browser plug-in icons meeting the preset loading strategy.
Preferably, in the displayed browser plug-in icon, the user may perform hiding processing on the displayed browser plug-in icon according to actual needs. Thus, as an alternative embodiment, the method further comprises:
103, receiving a hiding instruction output by the browser plug-in icon in the plug-in container, hiding the browser plug-in icon outputting the hiding instruction, and adjusting the position of the browser plug-in icon in the plug-in container.
In this step, if a user needs to hide one or more browser plug-in icons in the browser address bar, the user may trigger the pop-up pull-down menu after selecting the browser plug-in icon that needs to be hidden, or may hide the browser plug-in icon from the current position by clicking a right key to pop-up the pull-down menu and selecting to hide from the pop-up pull-down menu.
Specifically, the user clicks a right key on an extended sub-menu under a displayed plug-in container menu bar, and can select a hidden control (button), thereby triggering to change the dynamically added sub-element, namely the attribute of the browser plug-in icon browser actionview class to be hidden, from visible (visible) to false, and then notifying the parent View of the plug-in class, namely the browser address bar, to perform the re-layout of the browser plug-in icon. That is, a hiding instruction output by the browser plug-in icon in the plug-in container is received, and the browser plug-in icon hiding the output hiding instruction comprises:
when the condition that the user clicks a hidden button is monitored, the browser sends an extensionSettingsEnable message transmission List parameter to the HANDLER through JS;
in this step, the List parameter is List value entries, which is a string List including two items of content, the first item of content is an ID of the browser plug-in icon, the second item of content is a state corresponding to the ID, and the state is represented by a string, where the string is "true" indicating that the browser plug-in is enabled, i.e., enabled for decision (EnableExtension), and the string is "false" indicating that the browser plug-in is disabled or hidden, i.e., disabled or hidden (disablextension).
In the embodiment of the present invention, the character string in the List parameter is "false".
An extensionSerivce class in the browser receives the List parameter and sends a notification to a plug-in container (BrowseraActionsContainer), wherein the notification contains the received List parameter;
and hiding the corresponding browser plugin icon by the BrowserActionremoved function or the BrowserActionAdded function of the plugin container according to the 'false' character string in the received List parameter.
In this step, a BrowserActionRemoved function or a BrowserActionAdded function is used to dynamically add or hide (enable or disable) operations to a selected browser plug-in. And finally, calling the rearrangement of the address bar to rearrange the relative positions of the address bar and the sub-elements (the plug-in container and the built-in functions of the browser).
As an alternative embodiment, adjusting the browser plug-in icon position in the plug-in container comprises:
and sequentially moving the browser plug-in icons positioned on the left side of the hidden browser plug-in icons to the right. Therefore, after the corresponding browser plug-in icon position in the browser display interface is an empty area, the dynamic adjustment of the browser plug-in icon can be realized. Specifically, in embodiments of the present invention where the layout of the plug-in container traverses sub-elements, the hidden extensions do not arrange the layout for deactivated. For example, when a plug-in is hidden from the currently displayed plug-ins, the layout of the remaining plug-ins is as follows:
the maximum available space of the plug-in container is the total address bar length-the built-in browser function length-std:::::::::: (URL length of address bar, 200). The starting point X value of the plug-in container is the first built-in function X value of the browser-the total length of the plug-in container.
As another alternative embodiment, after hiding the browser plug-in icon and sequentially moving the browser plug-in icon located at the left side of the hidden browser plug-in icon to the right, the method may further include:
and reading the browser plug-in icons which are sequenced behind the hidden browser plug-in icons in the browser plug-in icon set, and loading the browser plug-in icons to the leftmost position in the plug-in container.
In the embodiment of the present invention, as an optional embodiment, in order to facilitate a user to perform unified management and setting on the browser plug-in icons, each browser plug-in icon has the same size. Of course, in practical applications, different browser plug-in icons may be set to have different sizes.
Further, for the situation that the browser plug-in includes the update information, in the embodiment of the present invention, the update information of the browser plug-in may also be displayed in the browser address bar, so as to meet the personalized service requirements and experiences of the user. For example, for an advertisement blocking plugin, since the number of advertisements blocked by the advertisement blocking plugin increases with time after the advertisement blocking plugin is started, the number of advertisements blocked by the advertisement blocking plugin can be dynamically displayed on the displayed advertisement blocking plugin icon. The method further comprises the following steps:
and the browser acquires dynamic update information of the browser plug-in corresponding to the displayed browser plug-in icon, and loads the acquired dynamic update information to the corresponding browser plug-in icon.
In this step, taking the advertisement blocking plugin as an example, the dynamic update information may be the number of advertisements blocked by the advertisement blocking plugin, or version upgrade information of the advertisement blocking plugin, and the like.
As another alternative embodiment, the method may further include:
reading updating information corresponding to a browser plug-in icon displayed in a browser address bar plug-in container;
and updating the browser plug-in icons corresponding to the browser plug-in icon set to be loaded in the management page according to the read updating information.
In this step, the management page performs unified management on the browser plug-in icons corresponding to all the web pages through the browser plug-in icon set to be loaded, for example, in the browser plug-in icon set to be loaded, the browser plug-in icon displayed in the browser address bar plug-in container is set to be displayed, and other browser plug-in icons are set to be hidden, and the numbers in the browser plug-in icons are updated in real time. Therefore, the user can select the browser plug-in icon to be displayed through the management page so as to meet the personalized service requirement of the user. In practical application, the information of the extension plug-in may also be obtained from a configuration file saved on the browser side, and the information of the corresponding extension plug-in is updated in real time or at regular time.
As an alternative embodiment, the browser plug-in icon further contains a browser plug-in name.
As an alternative embodiment, the browser generates the (WEB) management page by creating a Chrome built-in domain name (Chrome:// myextensions).
Fig. 3 is a schematic diagram of a second structure of a display interface of a browser according to an embodiment of the present invention. Referring to FIG. 3, the browser display interface is Youkao (www.youku.com)A web page in which a star icon, a thunder icon, a two-dimensional code icon, a built-in advertisement filtering number icon, and a plug-in application (App) number icon are displayed in an address bar corresponding to the favorite web page,
the star icon, the thunder icon, the two-dimension code icon and the built-in advertisement filtering digital icon are icons in built-in functions of the browser, and the plug-in application program icon is an icon in a plug-in container. That is, the browser address bar window is used as a parent window, and windows corresponding to the star icon, the thunder icon, the two-dimensional code icon, the built-in advertisement filtering digital icon and the plug-in application digital icon are used as child windows and are drawn in the browser address bar used as the parent window. The star icon is a favorite icon, the thunder icon is a mode switching button icon, the two-dimensional code icon is a two-dimensional code address identification icon of the mobile device, the built-in advertisement filtering digital icon is browser built-in advertisement filtering, the number 2 represents that the number of advertisements filtered by a built-in program of the browser is 2, the plug-in application program icon can be set to be an APP with a red background so as to be distinguished from the built-in function of the browser, and the number 10 represents that the number of the advertisements filtered is 10. The numbers in the built-in advertisement filtering number icons and the plug-in application program icons can be updated in real time according to the number of the filtered advertisements.
Fig. 4 is a schematic diagram of an operation function menu popped up after selecting a plug-in application icon and clicking a right button according to the embodiment of the invention. Referring to fig. 4, the menu of right key operation functions set by the advertisement filter plug-in corresponding to the plug-in application icon includes: adblock Plus controls, options controls, disable controls, delete controls, hide button controls, manage controls, and review pop-up content controls. For example, if the user clicks the disable control, the operation of the advertisement filter plug-in may be suspended to save memory resources, and if the user clicks the hide button control, the currently displayed advertisement filter plug-in may be hidden and the currently displayed browser plug-in icon in the dynamic adjustment plug-in container may be triggered.
In the embodiment of the present invention, because the lengths of the plug-in containers mapped by different web pages are different, when a web page is switched, the browser plug-in icon displayed in the browser address bar of the browser display interface can be dynamically adjusted, and the method further includes:
and 104, monitoring the switching of the webpage, and loading a browser plug-in icon in a plug-in container corresponding to the switched webpage according to the length of the plug-in container mapped by the switched webpage.
In the embodiment of the invention, the data state of the browser plug-in needs to be independently presented on each webpage, for example, the special ICON of the browser plug-in (such as weather of weather forecast), and related characters or data (such as the number of advertisement blocks).
As an alternative embodiment, the step specifically includes:
creating a corresponding data structure for each webpage in the browser plug-in icon set to be loaded, and storing browser plug-in updating information in the created data structure;
in this step, a corresponding data structure is created in the corresponding web page, i.e., WebContents. As an alternative embodiment, the data structure of the corresponding web page is created at the same time as the web page is opened. The creation of the data structure can be realized by creating a data structure statement corresponding to a class of a webpage page, for example, a C + + class code written for realizing a function and inheriting a content:: WebContentsUserData template class. Finally, the created data structure statement (e.g., AdfilterTabHelper:: CreateForWebContents (web _ Contents);) is added to the BrowserTabContents:: AttachTabHelers browser page initialization static process. Thus, each time a browser page is created, a plug-in management class (e.g., AdfilterTabHelper) is automatically created.
As an alternative embodiment, in the class associated with the Tab, the browser plug-in's own data state, i.e. update information, is saved.
The browser monitors that a system TabStripModel is called, wherein an ActivateTabAt function sends an ActiveTabChanged message notification to an address bar of the browser;
in this step, when the browser tag (web page) is switched, an activatetabbatch function, which is called by the system tabstrip model, is generated, and then an ActiveTabChanged message notification is sent.
The browser address bar receives the message notification of the ActiveTabChanged, calls an Update function of the plug-in container, and traverses a data structure corresponding to each webpage in the browser plug-in icon set to be loaded;
in this step, since the plug-in container belongs to a child element of the browser address bar view, after the browser address bar receives the message notification of the ActiveTabChanged, the Update function of the plug-in container is called, and each child element is traversed to Update, so that switching along with the label can be completed, and the Update of the browser plug-in icon is realized.
The method comprises the steps of obtaining a data structure corresponding to a switched webpage, reading stored browser plug-in updating information, generating a browser plug-in icon according to the read browser plug-in updating information, and loading the browser plug-in icon into a plug-in container.
In this step, data related to the icon of the personalized browser plug-in is obtained. That is, after the notification (call of Update function) that needs to be updated is obtained, the corresponding data structure (such as the addertrabhelper class) can be extracted through the current page (switched web page). The relevant codes are:
AdfilterTabHelper*ad_filter=AdfilterTabHelper::FromWebContents(web_contents);
and extracting the related data (browser plug-in updating information) through the data structure corresponding to the extracted page. For example, if the browser plug-in update information is N pieces of interception information, the number N may be displayed in a browser plug-in icon generated in the memory.
The specific process of extracting the relevant data from the data structure corresponding to the page is as follows: because the data is stored in the TAB related class which is AdfilterTabHelper, the related data is obtained by obtaining the pointer of the related class, namely by obtaining the class pointer through AdfilterTabHelper ad _ filter:FromWebContents (web _ contents), and accessing the class member by using the class pointer.
As an alternative embodiment, generating the browser plug-in icon comprises:
creating a blank picture (gfx:: Canvas) with the same size as the background picture, and drawing the background picture on the created blank picture Canvas;
drawing a digital background (the width of the red background is drawn according to the size of the digits of the numbers to be displayed) on the lower right corner of the blank picture Canvas to realize overlapping coverage;
and calculating XY coordinate values of the initial drawing of the numbers by using the positions of the digital backgrounds, and continuously superposing the digital pictures on the blank picture Canvas.
Thus, through the three processes, the browser plug-in ICON for final display obtained through the three-layer drawing can be obtained. And resetting the ICON to be the ICON picture of the plug-in button, thereby completing the whole real-time updating operation. Since all of this is done on an in-memory Canvas, the processing speed is very fast and the user does not feel any stuck.
As an alternative embodiment, after the user installs the browser plug-in through the browser, the installed browser plug-in icon may be displayed in the browser address bar in real time. The method further comprises the following steps:
and after the installation of the browser plug-in is monitored to be finished, acquiring a browser plug-in icon, and placing the acquired browser plug-in icon in the plug-in container.
In this step, placing the acquired browser plug-in icon in the plug-in container includes:
judging whether the available length in a plug-in container in a browser address bar can be matched with the browser plug-in icon, if so, placing the browser plug-in icon in the plug-in container, otherwise, deleting the browser plug-in icon in the plug-in container so that the available length in the plug-in container can be matched with the acquired browser plug-in icon, and placing the acquired browser plug-in icon in the plug-in container.
Specifically, the browserActionContainer dynamically adds and deletes a child element (browserActionView) in the browser address bar, i.e., a browser plug-in icon, by listening to an event message for loading an extension module of the browser plug-in, for example, a install event message (browserActionAdded) or an uninstall event message (browserActionRemoved).
As can be seen from the above, the method for loading the browser plug-in icon according to the embodiment of the present invention provides convenient maintenance and management by performing unified management (display, hiding, disabling, and uninstalling) on the browser plug-in (extension program), and reduces the time cost for the user to operate the browser plug-in; meanwhile, the residual space layout of the browser address bar is effectively utilized, and a redundant area cannot be created to extrude the toolbar space, so that the height of the content in the browser page which can be displayed is increased, the display effect of the content in the browser page is improved, and the browser is more reasonable and simpler in visual point of view; furthermore, the interface of the toolbar can be simplified by right-clicking the corresponding browser plug-in icon to select hiding, and the display and starting states of the browser plug-in icon can be quickly maintained by matching with the unified management page, so that the dynamic adjustment of the browser plug-in icon is realized; moreover, the browser plug-in can maintain a corresponding set of data structure for each TAB page (webpage), so that the data state of the plug-in related to the page can be stored by switching the TAB label, the state of the browser plug-in can be displayed in different states along with the difference of the currently displayed page, the browser plug-in can automatically change during page switching, the update information of the browser plug-in can be reflected in real time, the personalized requirements of users are met, the service experience of the users is improved, and the browser plug-in can be particularly used for displaying the number of advertisement interception.
Fig. 5 is a schematic view of a browser structure according to an embodiment of the present invention. Referring to fig. 5, the browser includes: a mapping relation set building module and a browser plug-in icon loading module, wherein,
the mapping relation set building module is used for setting a plug-in container for displaying browser plug-in icons in an available space in a browser address bar corresponding to each webpage and building a mapping relation set of the webpage and the length of the plug-in container;
in the embodiment of the present invention, the mapping relationship set constructing module includes: a plug-in container setting unit, a length obtaining unit, and a mapping relationship set constructing unit (not shown in the figure), wherein,
the system comprises a plug-in container setting unit, a browser address bar setting unit and a plug-in container setting unit, wherein the plug-in container setting unit is used for setting a plug-in container for displaying a browser plug-in icon in an available space in the browser address bar corresponding to each webpage;
the length acquisition unit is used for acquiring the character length occupied by the website information corresponding to the webpage;
and the mapping relation set building unit is used for calculating the character length of the plug-in container corresponding to the webpage according to the character length of the address bar of the browser and the character length occupied by the website information corresponding to the webpage, building a corresponding mapping relation and generating a mapping relation set according to a plurality of mapping relations.
As an alternative embodiment, the mapping relationship set building module further includes:
and the built-in unit is used for setting a browser built-in function container for displaying browser built-in function program icons in an available space in the browser address bar.
The browser plug-in icon loading module is used for inquiring a mapping relation set of a webpage page and a plug-in container length which are stored in advance after monitoring that the webpage page is loaded by the browser, acquiring the plug-in container length mapped by the loaded webpage page, and loading the browser plug-in icon in the plug-in container according to the acquired plug-in container length.
In the embodiment of the present invention, the browser plug-in icon loading module includes: a query unit, a calculation unit, and a load processing unit (not shown), wherein,
the query unit is used for querying a mapping relation set of a webpage and the length of a plug-in container stored in advance after monitoring that the webpage is loaded by the browser, and acquiring the length of the plug-in container mapped by the loaded webpage;
the computing unit is used for computing the total length of all browser plug-in icons in the browser plug-in icon set to be loaded;
the loading processing unit is used for judging whether the calculated total length is larger than the acquired plug-in container length or not, if so, selecting a browser plug-in icon which meets a preset loading strategy from the browser plug-in icon set to be loaded, and loading the browser plug-in icon into the plug-in container; otherwise, loading all browser plug-in icons in the browser plug-in icon set to be loaded into the plug-in container.
In the embodiment of the present invention, as an optional embodiment, selecting a browser plug-in icon that meets a preset loading policy includes:
according to the priority of the browser plug-in icons, sequencing the browser plug-in icons which are arranged to be displayed in the browser plug-in icon set to be loaded;
and calculating the aggregation length of the browser plug-in icons at the N positions before the sequencing so that the calculated aggregation length is not more than the acquired plug-in container length, and taking the browser plug-in icons at the N positions before the sequencing as the browser plug-in icons meeting the preset loading strategy.
As another alternative embodiment, selecting a browser plug-in icon that meets a preset loading policy includes:
sequencing the browser plug-in icons in the browser plug-in icon set to be loaded according to the loading count value of the browser plug-in icons;
and calculating the aggregation length of the browser plug-in icons at the N positions before the sequencing so that the calculated aggregation length is not more than the acquired plug-in container length, and taking the browser plug-in icons at the N positions before the sequencing as the browser plug-in icons meeting the preset loading strategy.
As an alternative embodiment, the browser further comprises:
the browser plug-in icon hiding processing module is used for receiving a hiding instruction output by the browser plug-in icon in the plug-in container, hiding the browser plug-in icon outputting the hiding instruction and adjusting the position of the browser plug-in icon in the plug-in container.
In the embodiment of the present invention, the browser plug-in icon hiding processing module includes: a monitoring unit, a notification unit, a hiding unit and an adjustment unit (not shown in the figure), wherein,
the browser sends extension SettingsEnable message transmission List parameters to the HANDLER through JS after monitoring that the user clicks a hidden button;
a notification unit, configured to receive the List parameter and send a notification to a plug-in container (browseractioncontainers), where the notification includes the received List parameter;
the hiding unit is used for hiding the corresponding browser plug-in icon according to the 'false' character string in the received List parameter;
and the adjusting unit is used for sequentially moving the browser plug-in icons on the left side of the hidden browser plug-in icons to the right.
As an alternative embodiment, the browser plug-in icon hiding processing module further includes:
and the reloading unit is used for reading the browser plug-in icons which are sequenced behind the hidden browser plug-in icons in a centralized manner, and loading the browser plug-in icons to the leftmost position in the plug-in container.
As another alternative embodiment, the browser further comprises:
and the page switching processing module is used for loading browser plug-in icons in the plug-in containers corresponding to the switched webpage pages according to the lengths of the plug-in containers mapped by the switched webpage pages after monitoring the switching of the webpage pages.
In the embodiment of the present invention, the page switching processing module includes: a creation unit, a monitoring unit, a traversal unit, and a page switch processing unit (not shown in the figure), wherein,
the system comprises a creating unit, a judging unit and a judging unit, wherein the creating unit is used for creating a corresponding data structure for each webpage in a browser plug-in icon set to be loaded, and storing plug-in length information and browser plug-in updating information in the created data structure;
the monitoring unit is used for sending an ActiveTabChanged message notification to the address bar of the browser after monitoring that the ActivateTabAt function is called in the system TabStrepModel;
the traversal unit is used for receiving the message notification of the ActiveTabChanged, calling an Update function of the plug-in container, and traversing a data structure corresponding to each webpage in the plug-in icon set of the browser to be loaded;
and the page switching processing unit is used for acquiring a data structure corresponding to the switched webpage, reading the stored browser plug-in updating information, generating a browser plug-in icon according to the read browser plug-in updating information and the plug-in length information, and loading the browser plug-in icon into the plug-in container.
In the embodiment of the present invention, a specific process for extracting relevant data from a data structure corresponding to a page is as follows: because the data is stored in the TAB related class which is AdfilterTabHelper, the related data is obtained by obtaining the pointer of the related class, namely by obtaining the class pointer through AdfilterTabHelper ad _ filter:FromWebContents (web _ contents), and accessing the class member by using the class pointer.
As an alternative embodiment, the browser may further include:
the management page module is used for reading the updating information corresponding to the browser plug-in icon displayed in the browser address bar plug-in container; and updating the browser plug-in icons corresponding to the browser plug-in icon set to be loaded in the management page according to the read updating information.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in a browser according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet web server or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (29)

1. A method of loading a browser plug-in icon, comprising:
setting a plug-in container for displaying browser plug-in icons in an available space in a browser address bar corresponding to each webpage in advance, and constructing a mapping relation set of the webpage and the length of the plug-in container;
after the webpage loading of the browser is monitored, a pre-stored mapping relation set of the webpage and the length of the plug-in container is inquired, the length of the plug-in container mapped by the loaded webpage is obtained, and the browser plug-in icon is loaded in the plug-in container according to the obtained length of the plug-in container.
2. The method of claim 1, wherein constructing the set of mappings of web page to plug-in container length comprises:
acquiring the character length occupied by website information corresponding to a webpage;
and calculating the character length of the plug-in container corresponding to the webpage according to the character length of the address bar of the browser and the character length occupied by the website information corresponding to the webpage.
3. The method of claim 2, the method further comprising:
and setting a browser built-in function container for displaying browser built-in function program icons in an available space in a browser address bar.
4. The method of claim 1, the method further comprising:
toolbar buttons are provided, along with a search bar, at available spatial locations in line with the browser's address bar.
5. The method of claim 3, wherein loading a browser plug-in icon in the plug-in container according to the obtained plug-in container length comprises:
calculating the total length of all browser plug-in icons in a browser plug-in icon set to be loaded;
judging whether the calculated total length is larger than the acquired plug-in container length, if so, selecting a browser plug-in icon which meets a preset loading strategy from the browser plug-in icon set to be loaded, and loading the browser plug-in icon into the plug-in container; otherwise, loading all browser plug-in icons in the browser plug-in icon set to be loaded into the plug-in container.
6. The method of claim 5, wherein selecting a browser plug-in icon that meets a preset loading policy comprises:
according to the priority of the browser plug-in icons, sequencing the browser plug-in icons which are arranged to be displayed in the browser plug-in icon set to be loaded;
and calculating the aggregation length of the browser plug-in icons at the N positions before the sequencing so that the calculated aggregation length is not more than the acquired plug-in container length, and taking the browser plug-in icons at the N positions before the sequencing as the browser plug-in icons meeting the preset loading strategy.
7. The method of claim 5, wherein selecting a browser plug-in icon that meets a preset loading policy comprises:
sequencing the browser plug-in icons in the browser plug-in icon set to be loaded according to the loading count value of the browser plug-in icons;
and calculating the aggregation length of the browser plug-in icons at the N positions before the sequencing so that the calculated aggregation length is not more than the acquired plug-in container length, and taking the browser plug-in icons at the N positions before the sequencing as the browser plug-in icons meeting the preset loading strategy.
8. The method of any of claims 1 to 7, further comprising:
and receiving a hiding instruction output by the browser plug-in icon in the plug-in container, hiding the browser plug-in icon outputting the hiding instruction, and adjusting the position of the browser plug-in icon in the plug-in container.
9. The method of claim 8, wherein the receiving of the hiding instruction for the browser plug-in icon output in the plug-in container comprises:
when the condition that the user clicks a hidden button is monitored, the browser sends an extensionSettingsEnable message transmission List parameter to the HANDLER through JS;
an ExtensionSerivce class in the browser receives the List parameters and sends a notice to the plug-in container, wherein the notice contains the received List parameters;
and hiding the corresponding browser plugin icon by the BrowserActionremoved function or the BrowserActionAdded function of the plugin container according to the 'false' character string in the received List parameter.
10. The method of claim 9, the method further comprising:
and reading the browser plug-in icons which are sequenced behind the hidden browser plug-in icons in the browser plug-in icon set, and loading the browser plug-in icons to the leftmost position in the plug-in container.
11. The method of claim 8, the adjusting a browser plug-in icon position in the plug-in container comprising:
and sequentially moving the browser plug-in icons positioned on the left side of the hidden browser plug-in icons to the right.
12. The method of any of claims 1 to 7, further comprising:
and the browser acquires dynamic update information of the browser plug-in corresponding to the displayed browser plug-in icon, and loads the acquired dynamic update information to the corresponding browser plug-in icon.
13. The method of any of claims 1 to 7, further comprising:
reading updating information corresponding to a browser plug-in icon displayed in a browser address bar plug-in container;
and updating the browser plug-in icons corresponding to the browser plug-in icon set to be loaded in the management page according to the read updating information.
14. The method of claim 13, the method further comprising:
and the browser generates the management page by creating a Chrome built-in domain name.
15. The method of any of claims 1 to 7, further comprising:
monitoring webpage page switching, and loading a browser plug-in icon in a plug-in container corresponding to a switched webpage page according to the length of the plug-in container mapped by the switched webpage page.
16. The method of claim 15, wherein the monitoring of the switching of the web page, and the loading of the browser plug-in icon in the plug-in container corresponding to the switched web page according to the length of the plug-in container mapped by the switched web page comprises:
creating a corresponding data structure for each webpage in the browser plug-in icon set to be loaded, and storing browser plug-in updating information in the created data structure;
the browser monitors that a system TabStripModel is called, wherein an ActivateTabAt function sends an ActiveTabChanged message notification to an address bar of the browser;
the browser address bar receives the message notification of the ActiveTabChanged, calls an Update function of the plug-in container, and traverses a data structure corresponding to each webpage in the browser plug-in icon set to be loaded;
the method comprises the steps of obtaining a data structure corresponding to a switched webpage, reading stored browser plug-in updating information, generating a browser plug-in icon according to the read browser plug-in updating information, and loading the browser plug-in icon into a plug-in container.
17. The method of claim 16, the generating a browser plug-in icon comprising:
creating a blank picture with the same size as the background picture, and drawing the background picture on the created blank picture;
drawing a digital background on the lower right corner of the blank picture to realize superposition coverage;
and calculating XY coordinate values of the initial drawing of the number by using the position of the digital background, and continuously superposing the digital picture on the blank picture.
18. The method of any of claims 1 to 7, further comprising:
and after the installation of the browser plug-in is monitored to be finished, acquiring a browser plug-in icon, and placing the acquired browser plug-in icon in the plug-in container.
19. The method of claim 18, the placing the retrieved browser plug-in icon in the plug-in container comprising:
judging whether the available length in a plug-in container in a browser address bar can be matched with the browser plug-in icon, if so, placing the browser plug-in icon in the plug-in container, otherwise, deleting the browser plug-in icon in the plug-in container so that the available length in the plug-in container can be matched with the acquired browser plug-in icon, and placing the acquired browser plug-in icon in the plug-in container.
20. A browser, the browser comprising: a mapping relation set building module and a browser plug-in icon loading module, wherein,
the mapping relation set building module is used for setting a plug-in container for displaying browser plug-in icons in an available space in a browser address bar corresponding to each webpage and building a mapping relation set of the webpage and the length of the plug-in container;
the browser plug-in icon loading module is used for inquiring a mapping relation set of a webpage page and a plug-in container length which are stored in advance after monitoring that the webpage page is loaded by the browser, acquiring the plug-in container length mapped by the loaded webpage page, and loading the browser plug-in icon in the plug-in container according to the acquired plug-in container length.
21. The browser of claim 20, the set of mapping relationships construction module comprising: a plug-in container setting unit, a length obtaining unit, and a mapping relation set constructing unit, wherein,
the system comprises a plug-in container setting unit, a browser address bar setting unit and a plug-in container setting unit, wherein the plug-in container setting unit is used for setting a plug-in container for displaying a browser plug-in icon in an available space in the browser address bar corresponding to each webpage;
the length acquisition unit is used for acquiring the character length occupied by the website information corresponding to the webpage;
and the mapping relation set building unit is used for calculating the character length of the plug-in container corresponding to the webpage according to the character length of the address bar of the browser and the character length occupied by the website information corresponding to the webpage, building a corresponding mapping relation and generating a mapping relation set according to a plurality of mapping relations.
22. The browser of claim 21, the map set building module further comprising:
and the built-in unit is used for setting a browser built-in function container for displaying browser built-in function program icons in an available space in the browser address bar.
23. The browser of claim 22, the browser plug-in icon loading module comprising: a query unit, a calculation unit and a loading processing unit, wherein,
the query unit is used for querying a mapping relation set of a webpage and the length of a plug-in container stored in advance after monitoring that the webpage is loaded by the browser, and acquiring the length of the plug-in container mapped by the loaded webpage;
the computing unit is used for computing the total length of all browser plug-in icons in the browser plug-in icon set to be loaded;
the loading processing unit is used for judging whether the calculated total length is larger than the acquired plug-in container length or not, if so, selecting a browser plug-in icon which meets a preset loading strategy from the browser plug-in icon set to be loaded, and loading the browser plug-in icon into the plug-in container; otherwise, loading all browser plug-in icons in the browser plug-in icon set to be loaded into the plug-in container.
24. The browser of any one of claims 20 to 23, the browser further comprising:
the browser plug-in icon hiding processing module is used for receiving a hiding instruction output by the browser plug-in icon in the plug-in container, hiding the browser plug-in icon outputting the hiding instruction and adjusting the position of the browser plug-in icon in the plug-in container.
25. The browser of claim 24, the browser plug-in icon hiding processing module comprising: a monitoring unit, a notification unit, a hiding unit and an adjusting unit, wherein,
the browser sends extension SettingsEnable message transmission List parameters to the HANDLER through JS after monitoring that the user clicks a hidden button;
the notification unit is used for receiving the List parameters and sending a notification to the plug-in container, wherein the notification comprises the received List parameters;
the hiding unit is used for hiding the corresponding browser plug-in icon according to the 'false' character string in the received List parameter;
and the adjusting unit is used for sequentially moving the browser plug-in icons on the left side of the hidden browser plug-in icons to the right.
26. The browser of claim 25, the browser plug-in icon hiding processing module further comprising:
and the reloading unit is used for reading the browser plug-in icons which are sequenced behind the hidden browser plug-in icons in a centralized manner, and loading the browser plug-in icons to the leftmost position in the plug-in container.
27. The browser of any one of claims 20 to 23, the browser further comprising:
and the page switching processing module is used for loading browser plug-in icons in the plug-in containers corresponding to the switched webpage pages according to the lengths of the plug-in containers mapped by the switched webpage pages after monitoring the switching of the webpage pages.
28. The browser of claim 27, the page switch processing module comprising: a creating unit, a monitoring unit, a traversing unit and a page switching processing unit, wherein,
the system comprises a creating unit, a judging unit and a judging unit, wherein the creating unit is used for creating a corresponding data structure for each webpage in a browser plug-in icon set to be loaded, and storing plug-in length information and browser plug-in updating information in the created data structure;
the monitoring unit is used for sending an ActiveTabChanged message notification to the address bar of the browser after monitoring that the ActivateTabAt function is called in the system TabStrepModel;
the traversal unit is used for receiving the message notification of the ActiveTabChanged, calling an Update function of the plug-in container, and traversing a data structure corresponding to each webpage in the plug-in icon set of the browser to be loaded;
and the page switching processing unit is used for acquiring a data structure corresponding to the switched webpage, reading the stored browser plug-in updating information, generating a browser plug-in icon according to the read browser plug-in updating information and the plug-in length information, and loading the browser plug-in icon into the plug-in container.
29. The browser of any one of claims 20 to 23, the browser further comprising:
the management page module is used for reading the updating information corresponding to the browser plug-in icon displayed in the browser address bar plug-in container; and updating the browser plug-in icons corresponding to the browser plug-in icon set to be loaded in the management page according to the read updating information.
CN201710138985.8A 2014-06-13 2014-06-13 Method for loading browser plug-in icon and browser Active CN106933629B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710138985.8A CN106933629B (en) 2014-06-13 2014-06-13 Method for loading browser plug-in icon and browser

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710138985.8A CN106933629B (en) 2014-06-13 2014-06-13 Method for loading browser plug-in icon and browser
CN201410265195.2A CN104021016B (en) 2014-06-13 2014-06-13 Method and browser for loading browser plug-in icons

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201410265195.2A Division CN104021016B (en) 2014-06-13 2014-06-13 Method and browser for loading browser plug-in icons

Publications (2)

Publication Number Publication Date
CN106933629A CN106933629A (en) 2017-07-07
CN106933629B true CN106933629B (en) 2021-01-15

Family

ID=51437788

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201410265195.2A Active CN104021016B (en) 2014-06-13 2014-06-13 Method and browser for loading browser plug-in icons
CN201710138985.8A Active CN106933629B (en) 2014-06-13 2014-06-13 Method for loading browser plug-in icon and browser

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201410265195.2A Active CN104021016B (en) 2014-06-13 2014-06-13 Method and browser for loading browser plug-in icons

Country Status (1)

Country Link
CN (2) CN104021016B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104021016B (en) * 2014-06-13 2017-04-12 北京奇虎科技有限公司 Method and browser for loading browser plug-in icons
CN107087230A (en) * 2016-02-16 2017-08-22 阿里巴巴集团控股有限公司 Player plug-in loading method and its device
CN108121484A (en) * 2016-11-29 2018-06-05 北京嘀嘀无限科技发展有限公司 Order generation method and by bus order generating means by bus
CN106921657A (en) * 2017-02-10 2017-07-04 北京浩瀚深度信息技术股份有限公司 A kind of online website anti-hijacking analysis method and device based on BS structures
CN108536540B (en) * 2017-03-01 2022-02-22 腾讯科技(深圳)有限公司 Method and device for acquiring mouse message of desktop icon
CN110362416B (en) * 2018-03-26 2022-03-25 腾讯科技(深圳)有限公司 Page component loading method and device, electronic equipment and storage medium
CN113590995B (en) * 2019-01-14 2023-08-01 广州虎牙信息科技有限公司 Page display method, device and storage medium
CN110321178A (en) * 2019-06-28 2019-10-11 百度在线网络技术(北京)有限公司 Starting processing method, device, equipment and the storage medium of attached application end

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8091042B2 (en) * 2001-11-15 2012-01-03 Siebel Systems, Inc. Apparatus and method for displaying selectable icons in a toolbar for a user interface
US8209622B2 (en) * 2007-01-30 2012-06-26 Oracle International Corporation Drag and drop browser extension
CN101582039A (en) * 2009-06-18 2009-11-18 深圳市汇海科技开发有限公司 Plug-in loading method for saving memory cost
CN102043645B (en) * 2009-10-20 2014-01-08 阿里巴巴集团控股有限公司 Plug-in loading method and device
JP5510147B2 (en) * 2010-07-22 2014-06-04 株式会社リコー Image forming apparatus and screen control method
US9378297B2 (en) * 2011-03-07 2016-06-28 Microsoft Technology Licensing, Llc Task-based address bar and tabs scaling
CN103218425B (en) * 2013-04-03 2016-04-13 北京奇虎科技有限公司 The disposal route of browser extension item and device
CN103677823B (en) * 2013-12-06 2017-05-24 北京奇虎科技有限公司 Method and device for managing browser plug-ins
CN104021016B (en) * 2014-06-13 2017-04-12 北京奇虎科技有限公司 Method and browser for loading browser plug-in icons

Also Published As

Publication number Publication date
CN106933629A (en) 2017-07-07
CN104021016A (en) 2014-09-03
CN104021016B (en) 2017-04-12

Similar Documents

Publication Publication Date Title
CN106933629B (en) Method for loading browser plug-in icon and browser
KR102436987B1 (en) Method and terminal device for extracting web page content
US8386955B1 (en) User-optimized content for web browsing windows
CN103034517B (en) Browser controls tool loads method and apparatus
US10542123B2 (en) System and method for generating and monitoring feedback of a published webpage as implemented on a remote client
CN110209966B (en) Webpage refreshing method, webpage system and electronic equipment
US7716687B2 (en) System and method for sharing resources between web applications
US20150074561A1 (en) Customizable themes for browsers and web content
US8726189B2 (en) Multiple tab stack user interface
CN103677823B (en) Method and device for managing browser plug-ins
US9633208B2 (en) Apparatus and method for displaying computer health index
CN106293352B (en) Page construction method, terminal and server
CN104035753A (en) Double-WebView customized page display method and system
US20150220496A1 (en) Dynamic sprite based theme switching
US20150058713A1 (en) Method and apparatus for sharing media content and method and apparatus for displaying media content
CN104346463A (en) Loading method and device of page label and browser client
CN103034518A (en) Method and browser for loading browser control tool
CN105787034A (en) Data presentation method and device
US10445412B1 (en) Dynamic browsing displays
CN103034495A (en) Browser capable of isolating plug-in in webpage and webpage plug-in isolating method
CN110506267A (en) The rendering of digital assembly background
CN104063484A (en) Webpage presenting method and device and electronic device
CN111367518A (en) Page layout method and device, computing equipment and computer storage medium
US10592063B1 (en) Controlling actions for browser extensions
CN110866208B (en) Page response type layout method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220728

Address after: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee after: 3600 Technology Group Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230713

Address after: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: Beijing Hongxiang Technical Service Co.,Ltd.

Address before: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee before: 3600 Technology Group Co.,Ltd.