CN104216929A - Method and device for intercepting page elements - Google Patents

Method and device for intercepting page elements Download PDF

Info

Publication number
CN104216929A
CN104216929A CN201310291180.9A CN201310291180A CN104216929A CN 104216929 A CN104216929 A CN 104216929A CN 201310291180 A CN201310291180 A CN 201310291180A CN 104216929 A CN104216929 A CN 104216929A
Authority
CN
China
Prior art keywords
domain name
page elements
hidden
file
browser
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.)
Pending
Application number
CN201310291180.9A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310291180.9A priority Critical patent/CN104216929A/en
Priority to PCT/CN2014/081935 priority patent/WO2015003636A1/en
Publication of CN104216929A publication Critical patent/CN104216929A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/951Indexing; Web crawling techniques
    • 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
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • 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/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a method and device for intercepting page elements. The method comprises the steps that a hidden rule file is received; a uniform resource locator (URL) in a current browser is detected, and a current domain name is determined according to the URL; the page elements corresponding to the current domain name and needing to be hidden are obtained from the hidden rule file according to the current domain name; an instruction is sent to the browser, and the browser is indicated to hide the page elements corresponding to the current domain name and needing to be hidden. The page elements needing to be hidden are carried in the hidden rule file, and the page elements corresponding to the current domain name and needing to be hidden are obtained from the hidden rule file by determining the current domain name and according to the current domain name; the page elements need to be hidden are then hidden, and thus the effect that the page elements irrelevant to text are comprehensively and accurately intercepted is achieved.

Description

A kind of hold-up interception method of page elements and device
Technical field
The present invention relates to areas of information technology, particularly a kind of hold-up interception method of page elements and device.
Background technology
By opening the page of webpage, can realize browsing news, reading novel or viewing film etc.Webpage includes a lot of part, is wherein body part concerning the most useful part be also concerned about most user, the text, novel text, film video play area etc. of such as news.
But, after the page is opened, often can see on the page except the content that user is concerned about, other page elements all kinds of in addition, such as: the advertising picture that color is given prominence to and the flash along with harshness.The page elements that the content that these and user are concerned about has nothing to do makes user when browsing pages, and notice ratio is easier to dispersion, and impacts user.
The page elements page due to current webpage existing the multiple content be concerned about with user irrelevant exists, in a jumble and do not follow unified standard, partial page element even blocks page body content, therefore, exist the interception demand of page elements (such as advertisement) always, mainly more existing scheme of tackling page elements, for the interception scheme of advertisement page element, has the following two kinds:
(1) advertising pictures and Flash(animation is tackled during page resource request);
(2) advertisement JS(Javascript is tackled during page resource request, a kind of prototype, succession, OO, regime type, case sensitive client-side scripting language).
But adopt above scheme to realize the interception of page elements, mainly there are the following problems: after interception, original page elements position is stayed white, and the page unsightly; Word class page elements cannot be tackled; The mode of interception JS can block normal content of pages to a certain extent by mistake.
Summary of the invention
Embodiments provide a kind of hold-up interception method and device of page elements, for the page elements that comprehensive and accurate interception and text have nothing to do.
A hold-up interception method for page elements, comprising:
Receive and hide rule file; Detect the uniform resource position mark URL in current browser, and determine current domain name according to URL;
From described hiding rule file, the hiding page elements of the needs corresponding with current domain name is obtained according to current domain name;
Send instruction to browser, indicate described browser to hide the hiding page elements of described corresponding with current domain name needs.
A hold-up interception method for page elements, comprising:
Obtain the domain name of website, and the page elements that the page detecting described website comprises;
Extract the page elements needing in described page elements to hide;
Generate and hide rule file, described hiding rule file comprises: the page elements that domain name and the needs corresponding with domain name are hidden; Described hiding rule file is sent to terminal.
A kind of terminal, comprising:
File reception unit, for receiving hiding rule file;
Domain name detecting unit, for detecting the uniform resource position mark URL in current browser, and determines current domain name according to URL;
Rule unit, the current domain name for determining according to domain name detecting unit obtains the page elements that the needs corresponding with current domain name are hidden from the hiding rule file that described file reception unit receives;
Instruction sending unit, for sending instruction to browser, the page elements that the needs corresponding with current domain name indicating described browser to hide the acquisition of described Rule unit are hidden.
A kind of server, comprising:
Domain Name acquisition unit, for obtaining the domain name of website;
Element detection unit, for and the page elements that comprises of the page detecting described website;
Element extraction unit, for extract described Element detection unit inspection page elements in need the page elements hidden;
File generating unit, for generating hiding rule file, described hiding rule file comprises: the domain name that domain name acquiring unit obtains and the page elements that the needs corresponding with domain name that described element extraction unit extracts are hidden;
File transmitting element, sends to terminal for the hiding rule file described file generating unit generated.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages: hiding rule file carries the page elements needing to hide, by determining current domain name, and from above-mentioned hiding rule file, obtain the hiding page elements of the needs corresponding with current domain name according to current domain name; Then realize hiding the page elements needing to hide, thus reach the effect of the page elements that comprehensive and accurate interception and text have nothing to do.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly introduced, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is embodiment of the present invention method flow schematic diagram;
Fig. 2 is embodiment of the present invention method flow schematic diagram;
Fig. 3 is embodiment of the present invention system architecture schematic diagram;
Fig. 4 is embodiment of the present invention apparatus structure schematic diagram;
Fig. 5 is embodiment of the present invention apparatus structure schematic diagram;
Fig. 6 is embodiment of the present invention terminal structure schematic diagram.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail, and obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of hold-up interception method of page elements, the present embodiment scheme realizes in end side, and what specifically perform the program can be terminal, and also can be the client in terminal, the embodiment of the present invention will not limit this.As shown in Figure 1, comprising:
101: receive and hide rule file; Detect the URL(uniform resource locator) (Uniform Resoure Locator, URL) in current browser, and determine current domain name according to URL;
Above-mentioned hiding rule file carries the page elements that domain name and the needs corresponding with domain name are hidden, and needs the page elements hidden, and except advertisement, can also be the arbitrary content that content that other and user are concerned about has nothing to do, be not limited in advertisement,
102: from above-mentioned hiding rule file, obtain the hiding page elements of the needs corresponding with current domain name according to current domain name;
Alternatively, in above-mentioned 102, before obtaining the hiding page elements of the needs corresponding with current domain name according to current domain name from above-mentioned hiding rule file, also comprise:
Determine whether comprise above-mentioned current domain name in above-mentioned hiding rule file, if comprise, then from above-mentioned hiding rule file, obtain the page elements that the needs corresponding with current domain name are hidden.
Preferably, although the page elements in some place is not the content that user is concerned about, but it does not affect the acquisition of user to its concerned about content, therefore this part page elements can be tackled, also can reduce and determine which page elements needs the detection limit of interception, raise the efficiency, embodiments provide following scheme based on this: the above-mentioned page elements obtaining the needs corresponding with current domain name hiding from above-mentioned hiding rule file according to current domain name comprises:
Obtain from above-mentioned hiding rule file according to current domain name and corresponding with current domain name have to page body the page elements blocked.In other words: need the page elements hidden to be have to page body the page elements blocked.
103: send instruction to browser, indicate above-mentioned browser to hide the hiding page elements of needs corresponding to above-mentioned and current domain name.
Above embodiment, hiding rule file carries the page elements needing to hide, and by determining current domain name, and from above-mentioned hiding rule file, obtains the hiding page elements of the needs corresponding with current domain name according to current domain name; Then realize hiding the page elements needing to hide, thus reach the effect of the page elements that comprehensive and accurate interception and text have nothing to do.
Alternatively, embodiments provide the specific implementation realizing instruction browser hidden page element, as follows: in above-mentioned 103, send instruction to browser, the page elements indicating above-mentioned browser to hide needs corresponding to above-mentioned and current domain name hiding comprises:
CSS (cascading style sheet) (the Cascading Style Sheet carrying the page elements that needs corresponding to above-mentioned and current domain name are hidden is sent to browser, CSS), the setup of attribute of the page elements that needs corresponding for above-mentioned and current domain name are hidden by above-mentioned browser is used to indicate for not show.
The original English text of CSS is Cascading Style Sheet, Chinese is collectively referred to as " CSS (cascading style sheet) " for " CSS (cascading style sheet) " also referred to as " Cascading Style Sheet " application documents, how its definition shows HTML (Hypertext Markup Language) (Hypertext Markup Language, HTML) element, for controlling the outward appearance of Web page; As long as it will be appreciated by persons skilled in the art that the any-mode that can realize indicating browser hidden page element, do not affect the realization of the embodiment of the present invention; And realize indicating browser hidden page element not only to only have CSS mode, therefore the citing of above CSS should not be construed as the unique restriction to the embodiment of the present invention.
Further, said method, also comprises:
Send information for above-mentioned browser display to browser, above-mentioned information is: page elements, the information be blocked and content details that needs corresponding to above-mentioned and current domain name are hidden.
The present embodiment, after cutting page elements, informs that user tackles the details of result and interception.These results and details can be stored in daily record, and user can check daily record, can judge whether interception has problem in some cases.
The embodiment of the present invention additionally provides the hold-up interception method of another kind of page elements, and the present embodiment method realizes at server side, as shown in Figure 2, comprising:
201: the domain name obtaining website, and the page elements that the page detecting above-mentioned website comprises;
202: extract the page elements needing in above-mentioned page elements to hide;
Preferably, although the page elements in some place is not the content that user is concerned about, but it does not affect the acquisition of user to its concerned about content, therefore this part page elements can be tackled, also can reduce and determine which page elements needs the detection limit of interception, raise the efficiency, following scheme is embodiments provided: in above-mentioned 205 based on this, the page elements hidden is needed to comprise in the above-mentioned page elements of said extracted: to extract in above-mentioned page elements and have to page body the page elements blocked, as the page elements needing to hide.
203: generate and hide rule file, above-mentioned hiding rule file comprises: the page elements that domain name and the needs corresponding with domain name are hidden; Above-mentioned hiding rule file is sent to terminal.
Above embodiment, hiding rule file comprises: the page elements that domain name and the needs corresponding with domain name are hidden, terminal is known, and those page elements need to hide, and perform and corresponding hide operation, thus reach the effect of the page elements that comprehensive and accurate interception and text have nothing to do.
Alternatively, in above-mentioned 203, generate and hide rule file, above-mentioned hiding rule file comprises: the page elements that domain name and the needs corresponding with domain name are hidden; Terminal is sent to comprise above-mentioned hiding rule file:
Generation layer stacking style table CSS file, it is the information do not shown that above-mentioned CSS file carries the setup of attribute indicating the page elements hidden by the needs corresponding with above-mentioned domain name; Above-mentioned CSS file is sent to terminal.
The original English text of CSS is Cascading Style Sheet, Chinese is collectively referred to as " CSS (cascading style sheet) " for " CSS (cascading style sheet) " also referred to as " Cascading Style Sheet " application documents, how its definition shows HTML (Hypertext Markup Language) (Hypertext Markup Language, HTML) element, for controlling the outward appearance of Web page; As long as it will be appreciated by persons skilled in the art that the any-mode that can realize indicating browser hidden page element, do not affect the realization of the embodiment of the present invention; And realize indicating browser hidden page element not only to only have CSS mode, therefore the citing of above CSS should not be construed as the unique restriction to the embodiment of the present invention.
In following examples, page elements is advertisement is example, and instruction needs the hiding rule file of interception to use CSS to illustrate for carrier, and previous embodiment illustrates, above citing should not be construed as the unique restriction to the embodiment of the present invention.In addition, need the page elements of interception, except advertisement, can also be the irrelevant arbitrary content of the content be concerned about of other and user, be not limited in advertisement, therefore above the unique restriction to the embodiment of the present invention also be should not be construed as the interception of advertisement.
The scheme of the embodiment of the present invention mainly for affecting the page elements itself browsed or its upper strata container hides Styles to write CSS, and is inserted in the page when page rendering, to reach picture, the flash in hidden page, and the effect of copy.Whole scheme as shown in Figure 3, can comprise four module: CSS and hide rule collection module, browser injection module, regular Domain Name matching module, and user's notification module.
Wherein CSS hides rule collection module and is positioned at server, browser injection module, regular Domain Name matching module, and user's notification module is positioned at client, is understandable that client generally can be installed on terminal device.
Will be described in detail the function of above-mentioned four modules and realization respectively below, as follows:
CSS hides rule and collects module:
This module determines the page elements being shielded which position on which website by CSS hidden function, such as: text position is had to the page elements blocked.Specific implementation flow process is as follows:
First, to the website needing to filter, extract the mark needing page elements or its upper strata container hidden, and to this mark, utilize rule to carry out hiding (such as: arranging element property is display:none).Then, the rule of all expressions is become a CSS file, leave bar corresponding to this website domain name in now.Finally, a CSS rule base that name is classified per domain all domain names and hiding regular weaves thereof is become to use for client.
Regular Domain Name matching module:
The major function of this module detects the current URL of browser, takes out the domain name that URL is corresponding, judge whether in CSS rule base, if, then the CSS rule of taking out this domain name corresponding sends to browser injection module; If not, then do not do any operation.
Browser injection module:
The major function of browser CSS injection module is inserted in current page by the rule file that above-mentioned regular Domain Name matching module returns, and like this, browser will hide the page elements hidden specified by rule file in procedure for displaying.
User's notification module:
After regular Domain Name matching module intercepts advertisement, can inform that user tackles the details of result and interception.User can check daily record, can judge whether interception has problem in some cases.
The embodiment of the present invention additionally provides a kind of terminal, as shown in Figure 4, comprising:
File reception unit 401, for receiving hiding rule file;
Above-mentioned hiding rule file carries the page elements that domain name and the needs corresponding with domain name are hidden, and needs the page elements hidden, and except advertisement, can also be the arbitrary content that content that other and user are concerned about has nothing to do, be not limited in advertisement,
Domain name detecting unit 402, for detecting the uniform resource position mark URL in current browser, and determines current domain name according to URL;
Rule unit 403, the current domain name for determining according to above-mentioned domain name detecting unit 402 obtains the page elements that the needs corresponding with current domain name are hidden from the hiding rule file that above-mentioned file reception unit 401 receives;
Instruction sending unit 404, for sending instruction to browser, the page elements that the needs corresponding with current domain name indicating above-mentioned browser to hide the acquisition of above-mentioned Rule unit 403 are hidden.
Above embodiment, hiding rule file carries the page elements needing to hide, and by determining current domain name, and from above-mentioned hiding rule file, obtains the hiding page elements of the needs corresponding with current domain name according to current domain name; Then realize hiding the page elements needing to hide, thus reach the effect of the page elements that comprehensive and accurate interception and text have nothing to do.
Alternatively, shown instruction sending unit 404, also for sending information for above-mentioned browser display to browser, above-mentioned information is: page elements, the information be blocked and content details that needs corresponding to above-mentioned and current domain name are hidden.
The present embodiment, after cutting page elements, informs that user tackles the details of result and interception.These results and details can be stored in daily record, and user can check daily record, can judge whether interception has problem in some cases.
Preferably, although the page elements in some place is not the content that user is concerned about, but it does not affect the acquisition of user to its concerned about content, therefore this part page elements can be tackled, also can reduce and determine which page elements needs the detection limit of interception, raise the efficiency, following scheme is embodiments provided: above-mentioned Rule unit 403 based on this, current domain name specifically for determining according to above-mentioned domain name detecting unit 402 obtains from the hiding rule file that above-mentioned file reception unit 401 receives corresponding with current domain name has to page body the page elements blocked.In other words: need the page elements hidden to be have to page body the page elements blocked.
Alternatively, embodiments provide the specific implementation realizing instruction browser hidden page element, as follows: above-mentioned instruction sending unit 404, specifically for sending the CSS (cascading style sheet) CSS carrying the page elements that needs corresponding to above-mentioned and current domain name are hidden to browser, be used to indicate the setup of attribute of the page elements that needs corresponding for above-mentioned and current domain name are hidden by above-mentioned browser for not show.
The original English text of CSS is Cascading Style Sheet, Chinese is collectively referred to as " CSS (cascading style sheet) " for " CSS (cascading style sheet) " also referred to as " Cascading Style Sheet " application documents, how its definition shows HTML (Hypertext Markup Language) (Hypertext Markup Language, HTML) element, for controlling the outward appearance of Web page; As long as it will be appreciated by persons skilled in the art that the any-mode that can realize indicating browser hidden page element, do not affect the realization of the embodiment of the present invention; And realize indicating browser hidden page element not only to only have CSS mode, therefore the citing of above CSS should not be construed as the unique restriction to the embodiment of the present invention.
The embodiment of the present invention is also supplied to a kind of server, as shown in Figure 5, comprising:
Domain Name acquisition unit 501, for obtaining the domain name of website;
Element detection unit 502, for and the page elements that comprises of the page detecting above-mentioned website;
Element extraction unit 503, needs for extracting in page elements that above-mentioned Element detection unit 502 detects the page elements hidden;
File generating unit 504, for generating hiding rule file, above-mentioned hiding rule file comprises: the domain name that above-mentioned domain Name acquisition unit 501 obtains and the page elements that the needs corresponding with domain name that above-mentioned element extraction unit 503 extracts are hidden;
File transmitting element 505, sends to terminal for the hiding rule file above-mentioned file generating unit 504 generated.
Above embodiment, hiding rule file comprises: the page elements that domain name and the needs corresponding with domain name are hidden, terminal is known, and those page elements need to hide, and perform and corresponding hide operation, thus reach the effect of the page elements that comprehensive and accurate interception and text have nothing to do.
Alternatively, above-mentioned file generating unit 504, specifically for generation layer stacking style table CSS file, it is the information do not shown that above-mentioned CSS file carries the setup of attribute indicating the page elements hidden by the needs corresponding with above-mentioned domain name;
Above-mentioned file transmitting element 505, sends to terminal specifically for the CSS file above-mentioned file generating unit 504 generated.
The original English text of CSS is Cascading Style Sheet, Chinese is collectively referred to as " CSS (cascading style sheet) " for " CSS (cascading style sheet) " also referred to as " Cascading Style Sheet " application documents, how its definition shows HTML (Hypertext Markup Language) (Hypertext Markup Language, HTML) element, for controlling the outward appearance of Web page; As long as it will be appreciated by persons skilled in the art that the any-mode that can realize indicating browser hidden page element, do not affect the realization of the embodiment of the present invention; And realize indicating browser hidden page element not only to only have CSS mode, therefore the citing of above CSS should not be construed as the unique restriction to the embodiment of the present invention.
Preferably, although the page elements in some place is not the content that user is concerned about, but it does not affect the acquisition of user to its concerned about content, therefore this part page elements can be tackled, also can reduce and determine which page elements needs the detection limit of interception, raise the efficiency, following scheme is embodiments provided: above-mentioned element extraction unit 503 based on this, specifically for extract above-mentioned Element detection unit 502 detect page elements in have to page body the page elements blocked, as need hide page elements.
The embodiment of the present invention additionally provides the another kind of device for realizing the operation of embodiment of the present invention quickly revert, as shown in Figure 6, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to embodiment of the present invention method part.This terminal can for comprising mobile phone, panel computer, PDA(Personal Digital Assistant, personal digital assistant), POS(Point of Sales, point-of-sale terminal), the terminal device arbitrarily such as vehicle-mounted computer, take terminal as mobile phone be example:
Shown in Fig. 6 is the block diagram of the part-structure of the mobile phone relevant to the terminal that the embodiment of the present invention provides.With reference to figure 6, mobile phone comprises: radio frequency (Radio Frequency, RF) parts such as circuit 610, storer 620, input block 630, display unit 640, sensor 650, voicefrequency circuit 660, Wireless Fidelity (wireless fidelity, WiFi) module 670, processor 680 and power supply 690.It will be understood by those skilled in the art that the handset structure shown in Fig. 6 does not form the restriction to mobile phone, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.
Concrete introduction is carried out below in conjunction with Fig. 6 each component parts to mobile phone:
RF circuit 610 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, process to processor 680; In addition, the up data of design are sent to base station.Usually, RF circuit includes but not limited to antenna, at least one amplifier, transceiver, coupling mechanism, low noise amplifier (Low Noise Amplifier, LNA), diplexer etc.In addition, RF circuit 60 can also by radio communication and network and other devices communicatings.Above-mentioned radio communication can use arbitrary communication standard or agreement, include but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA) (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc.
Storer 620 can be used for storing software program and module, and processor 680 is stored in software program and the module of storer 620 by running, thus performs various function application and the data processing of mobile phone.Storer 620 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of mobile phone.In addition, storer 620 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.
Input block 630 can be used for the numeral or the character information that receive input, and generation arranges with the user of mobile phone 600 and function controls the input of relevant key signals.Particularly, input block 630 can comprise contact panel 631 and other input equipments 632.Contact panel 631, also referred to as touch-screen, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on contact panel 631 or near contact panel 631 such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, contact panel 631 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 680, and the order that energy receiving processor 680 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize contact panel 631.Except contact panel 631, input block 630 can also comprise other input equipments 632.Particularly, other input equipments 632 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 640 can be used for the various menus showing information or the information being supplied to user and the mobile phone inputted by user.Display unit 640 can comprise display panel 641, optionally, the form such as liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) can be adopted to configure display panel 641.Further, contact panel 631 can cover display panel 641, when contact panel 631 detects thereon or after neighbouring touch operation, send processor 680 to determine the type of touch event, on display panel 641, provide corresponding vision to export with preprocessor 680 according to the type of touch event.Although in figure 6, contact panel 631 and display panel 641 be as two independently parts to realize input and the input function of mobile phone, but in certain embodiments, can by integrated to contact panel 631 and display panel 641 and realize the input and output function of mobile phone.
Mobile phone 600 also can comprise at least one sensor 650, such as optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 641, proximity transducer when mobile phone moves in one's ear, can cut out display panel 641 and/or backlight.As the one of motion sensor; accelerometer sensor can detect the size of all directions (are generally three axles) acceleration; size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for mobile phone also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 660, loudspeaker 661, microphone 662 can provide the audio interface between user and mobile phone.Voicefrequency circuit 660 can by receive voice data conversion after electric signal, be transferred to loudspeaker 661, by loudspeaker 661 be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone 662, voice data is converted to after being received by voicefrequency circuit 660, after again voice data output processor 680 being processed, through RF circuit 610 to send to such as another mobile phone, or export voice data to storer 620 to process further.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user to send and receive e-mail by WiFi module 670, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 6 shows WiFi module 670, be understandable that, it does not belong to must forming of mobile phone 600, can omit in the scope of essence not changing invention as required completely.
Processor 680 is control centers of mobile phone, utilize the various piece of various interface and the whole mobile phone of connection, software program in storer 620 and/or module is stored in by running or performing, and call the data be stored in storer 620, perform various function and the process data of mobile phone, thus integral monitoring is carried out to mobile phone.Optionally, processor 680 can comprise one or more processing unit; Preferably, processor 680 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 680.
Mobile phone 600 also comprises the power supply 690(such as battery of powering to all parts), preferably, power supply can be connected with processor 680 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.
Although not shown, mobile phone 600 can also comprise camera, bluetooth module etc., does not repeat them here.
In embodiments of the present invention, the processor 680 included by this terminal also has following functions:
Receive and hide rule file; Detect the URL(uniform resource locator) (Uniform Resoure Locator, URL) in current browser, and determine current domain name according to URL; From above-mentioned hiding rule file, the hiding page elements of the needs corresponding with current domain name is obtained according to current domain name; Send instruction to browser, indicate above-mentioned browser to hide the hiding page elements of needs corresponding to above-mentioned and current domain name.
Above-mentioned hiding rule file carries the page elements that domain name and the needs corresponding with domain name are hidden, and needs the page elements hidden, and except advertisement, can also be the arbitrary content that content that other and user are concerned about has nothing to do, be not limited in advertisement,
Above embodiment, hiding rule file carries the page elements needing to hide, and by determining current domain name, and from above-mentioned hiding rule file, obtains the hiding page elements of the needs corresponding with current domain name according to current domain name; Then realize hiding the page elements needing to hide, thus reach the effect of the page elements that comprehensive and accurate interception and text have nothing to do.
Alternatively, before obtaining the hiding page elements of the needs corresponding with current domain name according to current domain name from above-mentioned hiding rule file, also comprise: determine whether comprise above-mentioned current domain name in above-mentioned hiding rule file, if comprise, then from above-mentioned hiding rule file, obtain the page elements that the needs corresponding with current domain name are hidden.
Preferably, although the page elements in some place is not the content that user is concerned about, but it does not affect the acquisition of user to its concerned about content, therefore this part page elements can be tackled, also can reduce and determine which page elements needs the detection limit of interception, raise the efficiency, following scheme is embodiments provided: above-mentionedly from above-mentioned hiding rule file, obtain according to current domain name the page elements that the needs corresponding with current domain name hide and comprise: obtaining from above-mentioned hiding rule file according to current domain name correspondingly with current domain name has to page body the page elements blocked based on this.In other words: need the page elements hidden to be have to page body the page elements blocked.
It should be noted that in above-mentioned terminal and server example, included unit is carry out dividing according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit, also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that all or part of step realized in above-mentioned each embodiment of the method is that the hardware that can carry out instruction relevant by program completes, corresponding program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
These are only the present invention's preferably embodiment; but protection scope of the present invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the embodiment of the present invention discloses, the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (14)

1. a hold-up interception method for page elements, is characterized in that, comprising:
Receive and hide rule file; Detect the uniform resource position mark URL in current browser, and determine current domain name according to URL;
From described hiding rule file, the hiding page elements of the needs corresponding with current domain name is obtained according to current domain name;
Send instruction to browser, indicate described browser to hide the hiding page elements of described corresponding with current domain name needs.
2. method according to claim 1, is characterized in that, also comprise:
Send information for described browser display to browser, described information is: page elements, the information be blocked and content details that needs corresponding to described and current domain name are hidden.
3. method according to claim 1, is characterized in that, describedly from described hiding rule file, obtains according to current domain name the page elements that the needs corresponding with current domain name hide and comprises:
Obtain from described hiding rule file according to current domain name and corresponding with current domain name have to page body the page elements blocked.
4. method according to claims 1 to 3 any one, is characterized in that, sends instruction to browser, and the page elements indicating described browser to hide described corresponding with current domain name needs hiding comprises:
Send the CSS (cascading style sheet) CSS carrying the page elements that the described needs corresponding with current domain name are hidden to browser, be used to indicate the setup of attribute of the page elements that needs corresponding for described and current domain name are hidden by described browser for not show.
5. a hold-up interception method for page elements, is characterized in that, comprising:
Obtain the domain name of website, and the page elements that the page detecting described website comprises;
Extract the page elements needing in described page elements to hide;
Generate and hide rule file, described hiding rule file comprises: the page elements that domain name and the needs corresponding with domain name are hidden; Described hiding rule file is sent to terminal.
6. method according to claim 5, is characterized in that, generate and hide rule file, described hiding rule file comprises: the page elements that domain name and the needs corresponding with domain name are hidden; Terminal is sent to comprise described hiding rule file:
Generation layer stacking style table CSS file, it is the information do not shown that described CSS file carries the setup of attribute indicating the page elements hidden by the needs corresponding with domain name; Described CSS file is sent to terminal.
7. method according to claim 5 or 6, is characterized in that, needs the page elements hidden to comprise in the described page elements of described extraction:
Extract in described page elements and have to page body the page elements blocked, as the page elements needing to hide.
8. a terminal, is characterized in that, comprising:
File reception unit, for receiving hiding rule file;
Domain name detecting unit, for detecting the uniform resource position mark URL in current browser, and determines current domain name according to URL;
Rule unit, the current domain name for determining according to domain name detecting unit obtains the page elements that the needs corresponding with current domain name are hidden from the hiding rule file that described file reception unit receives;
Instruction sending unit, for sending instruction to browser, the page elements that the needs corresponding with current domain name indicating described browser to hide the acquisition of described Rule unit are hidden.
9. terminal according to claim 8, is characterized in that,
Shown in instruction sending unit, also for sending information for described browser display to browser, described information is: page elements, the information be blocked and content details that needs corresponding to described and current domain name are hidden.
10. terminal according to claim 8, is characterized in that,
Described Rule unit, the current domain name specifically for determining according to domain name detecting unit obtains from the hiding rule file that described file reception unit receives corresponding with current domain name has to page body the page elements blocked.
Terminal described in 11. according to Claim 8 to 10 any one, is characterized in that,
Described instruction sending unit, specifically for sending the CSS (cascading style sheet) CSS carrying the page elements that the described needs corresponding with current domain name are hidden to browser, be used to indicate the setup of attribute of the page elements that needs corresponding for described and current domain name are hidden by described browser for not show.
12. 1 kinds of servers, is characterized in that, comprising:
Domain Name acquisition unit, for obtaining the domain name of website;
Element detection unit, for and the page elements that comprises of the page detecting described website;
Element extraction unit, for extract described Element detection unit inspection page elements in need the page elements hidden;
File generating unit, for generating hiding rule file, described hiding rule file comprises: the domain name that domain name acquiring unit obtains and the page elements that the needs corresponding with domain name that described element extraction unit extracts are hidden;
File transmitting element, sends to terminal for the hiding rule file described file generating unit generated.
13., according to server described in claim 12, is characterized in that,
Described file generating unit, specifically for generation layer stacking style table CSS file, it is the information do not shown that described CSS file carries the setup of attribute indicating the page elements hidden by the needs corresponding with domain name;
Described file transmitting element, sends to terminal specifically for the CSS file described file generating unit generated.
14. according to claim 12 or 13 server, it is characterized in that,
Described element extraction unit, specifically for extract described Element detection unit inspection page elements in have to page body the page elements blocked, as the page elements needing to hide.
CN201310291180.9A 2013-07-11 2013-07-11 Method and device for intercepting page elements Pending CN104216929A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310291180.9A CN104216929A (en) 2013-07-11 2013-07-11 Method and device for intercepting page elements
PCT/CN2014/081935 WO2015003636A1 (en) 2013-07-11 2014-07-10 Method and device for interception of page elements

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310291180.9A CN104216929A (en) 2013-07-11 2013-07-11 Method and device for intercepting page elements

Publications (1)

Publication Number Publication Date
CN104216929A true CN104216929A (en) 2014-12-17

Family

ID=52098424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310291180.9A Pending CN104216929A (en) 2013-07-11 2013-07-11 Method and device for intercepting page elements

Country Status (2)

Country Link
CN (1) CN104216929A (en)
WO (1) WO2015003636A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426524A (en) * 2015-12-08 2016-03-23 北京奇虎科技有限公司 Web interface displaying method and device
CN105740026A (en) * 2016-03-01 2016-07-06 深圳市茁壮网络股份有限公司 TV-end application updating method
CN106599105A (en) * 2016-11-29 2017-04-26 珠海市魅族科技有限公司 Display control method and electronic equipment
CN106708502A (en) * 2016-11-10 2017-05-24 腾讯科技(深圳)有限公司 Webpage processing method and device
CN108279818A (en) * 2017-03-08 2018-07-13 广州市动景计算机科技有限公司 Close the method, apparatus and user terminal of webpage floating window
CN108280109A (en) * 2017-04-17 2018-07-13 广州市动景计算机科技有限公司 Page data filter method, device and user terminal
CN114610305A (en) * 2022-03-11 2022-06-10 数坤科技(宁波)有限公司 Development method and device of invisible webpage resources, electronic equipment and medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TR201903148A2 (en) 2019-03-01 2020-09-21 Isildak Insaat Taahhuet Ve Ticaret Anonim Sirketi SEQUENTIAL MOVING PANEL SYSTEM

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080281564A1 (en) * 2004-07-08 2008-11-13 International Business Machines Corporation System, method and program product for forecasting the demand on computer resources
CN101419620A (en) * 2008-12-03 2009-04-29 腾讯科技(深圳)有限公司 Method for shielding web page element and apparatus thereof
CN103034727A (en) * 2012-12-19 2013-04-10 北京奇虎科技有限公司 System for intercepting pop-up window in webpage

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999636B (en) * 2012-12-19 2016-11-16 北京奇虎科技有限公司 Pop-up in webpage is carried out method and the browser of intercept process

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080281564A1 (en) * 2004-07-08 2008-11-13 International Business Machines Corporation System, method and program product for forecasting the demand on computer resources
CN101419620A (en) * 2008-12-03 2009-04-29 腾讯科技(深圳)有限公司 Method for shielding web page element and apparatus thereof
CN103034727A (en) * 2012-12-19 2013-04-10 北京奇虎科技有限公司 System for intercepting pop-up window in webpage

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426524A (en) * 2015-12-08 2016-03-23 北京奇虎科技有限公司 Web interface displaying method and device
CN105426524B (en) * 2015-12-08 2019-05-31 北京奇虎科技有限公司 A kind of web interface methods of exhibiting and device
CN105740026A (en) * 2016-03-01 2016-07-06 深圳市茁壮网络股份有限公司 TV-end application updating method
CN106708502A (en) * 2016-11-10 2017-05-24 腾讯科技(深圳)有限公司 Webpage processing method and device
US10726135B2 (en) 2016-11-10 2020-07-28 Tencent Technology (Shenzhen) Company Limited Web page processing method and apparatus, and storage medium
CN106599105A (en) * 2016-11-29 2017-04-26 珠海市魅族科技有限公司 Display control method and electronic equipment
CN108279818A (en) * 2017-03-08 2018-07-13 广州市动景计算机科技有限公司 Close the method, apparatus and user terminal of webpage floating window
CN108280109A (en) * 2017-04-17 2018-07-13 广州市动景计算机科技有限公司 Page data filter method, device and user terminal
CN114610305A (en) * 2022-03-11 2022-06-10 数坤科技(宁波)有限公司 Development method and device of invisible webpage resources, electronic equipment and medium
CN114610305B (en) * 2022-03-11 2023-11-10 数坤科技(宁波)有限公司 Invisible webpage resource development method and device, electronic equipment and medium

Also Published As

Publication number Publication date
WO2015003636A1 (en) 2015-01-15

Similar Documents

Publication Publication Date Title
CN103455582B (en) The display packing of browser navigation page and mobile terminal
CN104216929A (en) Method and device for intercepting page elements
CN106708496B (en) Processing method and device for label page in graphical interface
US10643021B2 (en) Method and device for processing web page content
CN103616983B (en) A kind of picture display method, device and terminal device
CN104978115A (en) Content display method and device
CN103617165A (en) Picture loading method, device and terminal
CN108984548A (en) Content of pages caching method and device
CN105320687A (en) Webpage display method and device
CN103455571A (en) Method and device for displaying picture in webpage, and terminal
CN104135501A (en) Page sharing method, device and system
US10956653B2 (en) Method and apparatus for displaying page and a computer storage medium
CN104571979B (en) A kind of method and apparatus for realizing split view
CN103605668A (en) Webpage bookmark storing method and device and mobile terminal
CN103310007B (en) Webpage changing method, device and equipment
CN106547844A (en) A kind for the treatment of method and apparatus of user interface
CN104182429A (en) Web page processing method and terminal
CN104267882A (en) Page suspension frame display method and device
CN105955597A (en) Method and device for displaying information
CN104679724A (en) Page noting method and device
CN109491670A (en) A kind of page display method and terminal device
CN104516890A (en) Business processing method, business processing device and electronic equipment
CN104751092A (en) Method and device for processing graphic code
CN103823851B (en) Webpage display process and device
CN104750722B (en) A kind of acquisition of information and methods of exhibiting and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20141217

RJ01 Rejection of invention patent application after publication