CN106951429B - Method, browser and equipment for enhancing webpage comment display - Google Patents

Method, browser and equipment for enhancing webpage comment display Download PDF

Info

Publication number
CN106951429B
CN106951429B CN201610012529.4A CN201610012529A CN106951429B CN 106951429 B CN106951429 B CN 106951429B CN 201610012529 A CN201610012529 A CN 201610012529A CN 106951429 B CN106951429 B CN 106951429B
Authority
CN
China
Prior art keywords
comment
nodes
reply
tree
display
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
CN201610012529.4A
Other languages
Chinese (zh)
Other versions
CN106951429A (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.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN201610012529.4A priority Critical patent/CN106951429B/en
Publication of CN106951429A publication Critical patent/CN106951429A/en
Application granted granted Critical
Publication of CN106951429B publication Critical patent/CN106951429B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Computing Systems (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to a method, a browser and equipment for enhancing webpage comment display. The method comprises the following steps: extracting webpage content and a plurality of comment data corresponding to the webpage content; constructing a comment tree according to the comment time sequence, the reply corresponding relation and the reply corresponding relation priority algorithm of the comment data, wherein the comment tree takes the webpage content as a root and takes the comment data as nodes; and displaying the plurality of comment data in animation according to a depth-first traversal algorithm of the comment tree while displaying the web page content. The method and the device can enable the display of the webpage comments to be vivid, thereby improving the reading experience of the user and being suitable for the webpage browser.

Description

Method, browser and equipment for enhancing webpage comment display
Technical Field
The invention relates to a web browser, in particular to a method, a browser and equipment for enhancing web comment display.
Background
The increasing popularity of the internet has caused tremendous changes in people's lifestyle. The participation habits of common users in internet news websites are gradually changed from reading news edited and published by the websites to watching news and publishing comments, and even some users are changed to mainly watching comments and replying comments.
Currently, most news websites still display the user's comments and responses to the comments in a static manner. Generally, due to the large number of comments and the nested hierarchical relationship between comments and replies, web page developers can only place comments at the end of the news text or need to open another web page, and need to display a large number of comments by pagination. Some comments are specifically directed to specific sentences in the web page content, and the comments are not displayed together with the text, so that a user may need to turn pages or scroll the web page to find specific text sentences when reading the comments, which causes inconvenience.
Common users may have a need to read comments together when browsing web page content, and even some users have a main interest in reading comments of others and performing interactive responses. The more and more complicated the interactive reply, the less the static type flat typesetting can meet the requirements of users.
As shown in fig. 1, a certain news item on the internet news site has a total of up to 26620 posts (i.e., comments). The web page developer can only place these comments on additional web pages and the user can open the web page shown on the right by clicking on the "follow 26620" hyperlink in the content of the web page shown on the left in fig. 1, with some comments forming an interactive response relationship therebetween. When there are many such replies, the complexity of the web page display and the difficulty of reading by the user increase.
Disclosure of Invention
To overcome the above problems, the present invention provides a technique for enhancing the display of web page comments, which enables the display of comments to be vivid.
According to one aspect of the present invention, there is provided a method for enhancing the display of web page reviews, the method comprising the steps of: extracting webpage content and a plurality of comment data corresponding to the webpage content; constructing a comment tree according to the comment time sequence, the reply corresponding relation and the reply corresponding relation priority algorithm of the comment data, wherein the comment tree takes the webpage content as a root and takes the comment data as nodes; and displaying the plurality of comment data in animation according to a depth-first traversal algorithm of the comment tree while displaying the web page content.
Preferably, in the step of displaying the plurality of comment data, the corresponding comment data may be displayed in an animation form corresponding to a feature of each node of the comment tree, which may include normal, multiple replies, deep replies, multi-person support/opposition, a group constituting a specific effect, and the like. In this way, the display of the comment can become vivid three-dimensional by emphasizing the nodes of different characteristics, i.e., the comment, in the form of the corresponding animation.
Optionally, in the step of constructing the comment tree, the comment tree may be constructed after the plurality of comment data are deduplicated and condensed. In this way, the display of the comments can be concise, and the reading experience of the user is better.
According to another aspect of the present invention, there is provided a browser for enhancing a display of comments on a web page, the browser comprising: extracting means for extracting web page content and a plurality of comment data corresponding to the web page content; the processing device is used for constructing a comment tree according to the comment time sequence, the reply corresponding relation and the reply corresponding relation priority algorithm of the comment data, wherein the comment tree takes the webpage content as a root and takes the comment data as nodes; and the display device is used for displaying the webpage content and displaying the comment data in animation according to the depth-first traversal algorithm of the comment tree.
According to yet another aspect of the present invention, there is provided an apparatus for enhancing a display of a comment of a web page, the apparatus comprising: a memory for storing web page contents downloaded from a network and a plurality of comment data corresponding to the web page contents; the processor is used for extracting the webpage content and the comment data from the memory, and constructing a comment tree according to the comment time sequence, the reply corresponding relation and the reply corresponding relation priority algorithm of the comment data, wherein the comment tree takes the webpage content as a root and the comment data as nodes; and a display, wherein the processor controls the display such that the display animates the plurality of comment data according to a depth-first traversal algorithm of the comment tree while displaying the web page content.
According to the method and the device, the web page content is displayed, and meanwhile the comment data are displayed in the animation mode, so that the comment is displayed vividly, and the reading experience of a user is improved.
Drawings
The features and advantages of the present invention will become more apparent by describing in more detail exemplary embodiments thereof with reference to the attached drawings, in which:
FIG. 1 is a screenshot illustrating a prior art web page review display;
FIG. 2 is a flow diagram of a method for enhancing a web page review display in accordance with an embodiment of the present invention;
FIG. 3 is a block diagram of an apparatus for enhancing the display of web page reviews, according to an embodiment of the invention;
FIG. 4 is a screenshot illustrating the manner in which a review of a news web page is displayed in the prior art; and
fig. 5 is a screenshot illustrating a display of the news web review according to the present invention in comparison with fig. 4.
Detailed Description
Preferred embodiments of the present invention will be described in more detail below with reference to the accompanying drawings.
FIG. 2 illustrates a flow of a method for enhancing a web page review display in accordance with an embodiment of the present invention.
In step S21, web page content and a plurality of pieces of comment data corresponding to the web page content are extracted. Web page content and corresponding comment data are downloaded from a network (e.g., the internet), typically temporarily stored in local storage, and extracted when needed.
In step S22, a comment tree is constructed in accordance with the comment time order and the reply correspondence of the plurality of comment data and the reply correspondence priority algorithm. The comment tree takes webpage content as a root and takes a plurality of comment data as each node. Optionally, the comment tree may be constructed after the plurality of comment data are subjected to deduplication and compaction processing, so that the constructed comment tree is concise.
Some of the multiple review data may be reviews of the web page content directly, and some may be replies to other reviews. In the constructed comment tree, a plurality of comment data directly for the web page content are arranged in a comment time order, a plurality of comment data as direct replies to the same comment data are also arranged in a comment time order, and lower comment data as direct replies to upper comment data constitute child nodes of the upper comment data (i.e., parent nodes).
For example, via step S22, the web page content and all corresponding comments may form a comment tree of the following structure:
web page content
Review A
Review B
D comments replied to "B comments
E comment replied to "D comment
F comment in reply to "B comment
C comments
G comments in reply to "C comment
……
At step S23, a plurality of comment data are animated in accordance with the depth-first traversal algorithm of the comment tree while the web page content is displayed. With the comment tree example of the above structure, the display order of the respective comment data is a-B-D-E-F-C-G … … according to the depth-first traversal algorithm of the comment tree. Thus, when a user reads the webpage content, the user can see a plurality of comment data which are sequentially displayed in animation on the same webpage.
For example, fig. 4 illustrates a display manner of a news web review in the prior art, and in contrast, fig. 5 illustrates a display manner of the news web review according to the present invention. As shown in fig. 5, while web page content is displayed, a plurality of comments for the web page content are sequentially animated one after another on the web page.
Preferably, in step S23, the corresponding comment data may be displayed in an animated form corresponding to the characteristics of the respective nodes of the comment tree. The characteristics of the individual nodes may include general, multiple replies, deep replies, multi-person support/objection, groups constituting special effects, etc.
For example, according to the characteristics of each node in the comment tree, each node may be classified as: common nodes, multiple reply nodes (many people are interested in), deep reply nodes (the root of a topic), nodes supported/opposed by multiple people, and node groups constituting specific effects (e.g. regional attack, XX from ancient second floor). According to the node feature categories, different animation display modes can be implemented: the common nodes are displayed as soon as possible according to the time sequence; the multi-reply node and the deep reply node stay on the screen, and the importance of the node is emphasized through the animation child node; the multi-person supported/objected node passes through the screen at a speed slower than that of the common node and is emphasized by the supported/objected animation effect; the node group constituting the specific effect is displayed in the form of a colored egg. In this way, the individual comments are classified by the node features and emphasized in a corresponding animation display manner (emphasis of general attention, emphasis of topic origin, emphasis support, emphasis reverse, and the like), so that the display of the individual comments becomes vivid and stereoscopic.
Fig. 3 illustrates the structure of an apparatus 30 for enhancing the display of web page reviews, according to an embodiment of the invention. Device 30 may perform the method for enhancing the display of web page reviews described above with reference to fig. 2. As shown in fig. 3, the device 30 includes a memory 31, a processor 32, and a display 33.
The memory 31 may store web page content downloaded from a network and a plurality of comment data corresponding to the web page content. The processor 32 may extract the web page content and the plurality of comment data from the memory 31, and construct a comment tree in accordance with a comment time order and a reply correspondence of the plurality of comment data and a reply correspondence priority algorithm. The comment tree takes the webpage content as a root and takes the comment data as each node. Alternatively, the processor 32 may construct the comment tree after performing deduplication and compaction processing on the plurality of comment data, so that the constructed comment tree is concise. Further, the processor 32 may control the display 33 such that the display 33 animates the plurality of review data according to a depth-first traversal algorithm of the review tree while displaying the web page content.
Preferably, the processor 32 may control the display 33 such that the display 33 displays the corresponding comment data in an animated form corresponding to the characteristics of the respective nodes of the comment tree. The characteristics of the individual nodes may include general, multiple replies, deep replies, multi-person support/objection, groups constituting special effects, etc.
Furthermore, the invention may also be implemented as a computer program comprising computer program code instructions for carrying out the steps of the above-described methods of the invention. Alternatively, the invention may also be implemented as a computer program product comprising a computer readable medium having stored thereon a computer program for executing the steps of the above-mentioned method of the invention.
For example, the present invention may be implemented as a display enhancement sub-module in a comment management module within a browser running in a computer. Besides the display enhancer module, the comment management module can also comprise a detection injection submodule, a loading submodule and a prompt submodule.
The detection injection sub-module simply detects when a new webpage is loaded to judge whether the webpage is applicable to the invention, and injects the display enhancement sub-module into the webpage execution environment when the webpage is judged to be applicable to the invention, otherwise quits the comment management module. For example, the detection injection sub-module may scan a web page, and determine that the present invention may be applied if the keywords "comment", or "post" are found in the web page.
And the loading submodule determines whether the special file needs to be additionally loaded aiming at the current webpage or not according to the domain name and the webpage address characteristics. For example, the display enhancer module code to be injected may contain domain names, web page address features, and a special file mapping table, such as:
Figure BDA0000901432920000051
Figure BDA0000901432920000061
according to the codes, the loading submodule determines that comment display enhancement of 2 channels of the New wave network and 1 channel of the Internet is supported, wherein the New wave News channel needs to be additionally loaded with a special comment-advance-news-sina-v1.0. js file, and other channels only use general files.
The prompt sub-module displays a prompt interface on the web page to prompt the user that the web page may support enhanced review display. The user may select to enable or disable the comment display enhancement scheme by clicking "on" or "off" on the prompt interface. If the user selects not to start, the display enhancement sub-module is not operated, and other influences on the webpage are not caused.
The display enhancement submodule, which is used to perform the steps of the method of the present invention described above with reference to fig. 2, may include an extraction component, a processing component, and a display component, which correspond to the steps S21 to S23 of the method, respectively.
Those skilled in the art will appreciate that the various illustrative logical blocks, modules, and components described above may be implemented as electronic hardware, computer software, or combinations of both.
The foregoing description of the embodiments of the invention has been presented for purposes of illustration and not limitation. Based on the above description, one of ordinary skill in the art will readily recognize various modifications and changes to the embodiments of the present invention, which are within the scope of the present invention. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (6)

1. A method for enhancing the display of web page reviews, comprising the steps of:
extracting webpage content and a plurality of comment data corresponding to the webpage content;
constructing a comment tree according to the comment time sequence, the reply corresponding relation and the reply corresponding relation priority algorithm of the comment data, wherein the comment tree takes the webpage content as a root and takes the comment data as nodes;
displaying the plurality of comment data in animation according to a depth-first traversal algorithm of the comment tree while displaying the web page content,
wherein, the corresponding comment data is displayed in the form of animation corresponding to the characteristics of each node of the comment tree, the characteristics of each node comprise ordinary, multi-reply, deep reply, multi-person support/objection and group forming special effect,
wherein, the animation display mode comprises at least one of the following modes:
displaying the common nodes according to the time sequence;
for the multi-reply node and the deep reply node, the nodes stay on the screen, and the importance of the nodes is emphasized through the animation child nodes;
for the nodes supported/objected by multiple persons, the nodes pass through the screen at a slower speed than the common nodes, and are emphasized by the supporting/objecting animation effect;
the node group constituting a specific effect is displayed in the form of a colored egg.
2. The method of claim 1, wherein in the step of constructing a comment tree, the comment tree is constructed after the plurality of comment data are subjected to deduplication and compaction processing.
3. A browser for enhancing the display of web page reviews, comprising:
extracting means for extracting web page content and a plurality of comment data corresponding to the web page content;
the processing device is used for constructing a comment tree according to the comment time sequence, the reply corresponding relation and the reply corresponding relation priority algorithm of the comment data, wherein the comment tree takes the webpage content as a root and takes the comment data as nodes;
a display device for displaying the web page content and displaying the comment data in animation according to the depth-first traversal algorithm of the comment tree, wherein the display device displays the corresponding comment data in animation corresponding to the characteristics of each node of the comment tree, the characteristics of each node include normal, multi-reply, deep reply, multi-person support/objection, and group forming specific effect,
wherein, the animation display mode comprises at least one of the following modes:
displaying the common nodes according to the time sequence;
for the multi-reply node and the deep reply node, the nodes stay on the screen, and the importance of the nodes is emphasized through the animation child nodes;
for the nodes supported/objected by multiple persons, the nodes pass through the screen at a slower speed than the common nodes, and are emphasized by the supporting/objecting animation effect;
the node group constituting a specific effect is displayed in the form of a colored egg.
4. The browser according to claim 3, wherein the processing means reconstructs a comment tree after performing deduplication and compaction processing on the plurality of comment data.
5. An apparatus for enhancing the display of web page reviews, comprising:
a memory for storing web page contents downloaded from a network and a plurality of comment data corresponding to the web page contents;
the processor is used for extracting the webpage content and the comment data from the memory, and constructing a comment tree according to the comment time sequence, the reply corresponding relation and the reply corresponding relation priority algorithm of the comment data, wherein the comment tree takes the webpage content as a root and the comment data as nodes;
a display device is arranged on the base plate,
wherein the processor controls the display to display the web page content and simultaneously display the comment data in animation according to a depth-first traversal algorithm of the comment tree, wherein the display is caused to display the corresponding comment data in animation form corresponding to the characteristics of each node of the comment tree, the characteristics of each node include normal, multi-reply, deep-reply, multi-person support/objection, and a group constituting a specific effect,
wherein, the animation display mode comprises at least one of the following modes:
displaying the common nodes according to the time sequence;
for the multi-reply node and the deep reply node, the nodes stay on the screen, and the importance of the nodes is emphasized through the animation child nodes;
for the nodes supported/objected by multiple persons, the nodes pass through the screen at a slower speed than the common nodes, and are emphasized by the supporting/objecting animation effect;
the node group constituting a specific effect is displayed in the form of a colored egg.
6. The apparatus of claim 5, wherein the processor reconstructs the review tree after de-duplicating and compacting the plurality of review data.
CN201610012529.4A 2016-01-06 2016-01-06 Method, browser and equipment for enhancing webpage comment display Active CN106951429B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610012529.4A CN106951429B (en) 2016-01-06 2016-01-06 Method, browser and equipment for enhancing webpage comment display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610012529.4A CN106951429B (en) 2016-01-06 2016-01-06 Method, browser and equipment for enhancing webpage comment display

Publications (2)

Publication Number Publication Date
CN106951429A CN106951429A (en) 2017-07-14
CN106951429B true CN106951429B (en) 2020-07-31

Family

ID=59465285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610012529.4A Active CN106951429B (en) 2016-01-06 2016-01-06 Method, browser and equipment for enhancing webpage comment display

Country Status (1)

Country Link
CN (1) CN106951429B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2019399660A1 (en) * 2018-12-10 2021-06-24 Tipeme Holdings Pty Ltd. A system, method and data structure for allowing users to electronically post comments
CN109725803B (en) 2018-12-20 2020-02-04 网易(杭州)网络有限公司 Comment information processing method and device, storage medium and electronic equipment
CN113157165A (en) * 2021-05-12 2021-07-23 北京字跳网络技术有限公司 Information display method and device, electronic equipment and program product

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345347A (en) * 2013-07-17 2013-10-09 华为技术有限公司 Method and device for commenting page content
JP2015057896A (en) * 2006-12-11 2015-03-26 株式会社ドワンゴ Comment distribution system, terminal device, comment distribution method, and program

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7904500B1 (en) * 2007-03-22 2011-03-08 Google Inc. Advertising in chat system without topic-specific rooms
US20120173508A1 (en) * 2010-10-14 2012-07-05 Cheng Zhou Methods and Systems for a Semantic Search Engine for Finding, Aggregating and Providing Comments
CN104462132A (en) * 2013-09-23 2015-03-25 华为技术有限公司 Comment information display method and device
CN104133862A (en) * 2014-07-16 2014-11-05 北京奇虎科技有限公司 Search page commenting method and search page commenting device
CN104572883B (en) * 2014-12-22 2019-01-25 东软集团股份有限公司 The implementation method and device of clue between quickly revert and comment
CN105045899A (en) * 2015-08-03 2015-11-11 北京金山安全软件有限公司 Comment content providing method and device and terminal equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015057896A (en) * 2006-12-11 2015-03-26 株式会社ドワンゴ Comment distribution system, terminal device, comment distribution method, and program
CN103345347A (en) * 2013-07-17 2013-10-09 华为技术有限公司 Method and device for commenting page content

Also Published As

Publication number Publication date
CN106951429A (en) 2017-07-14

Similar Documents

Publication Publication Date Title
US10185782B2 (en) Mode identification for selective document content presentation
CN103544176B (en) Method and apparatus for generating the page structure template corresponding to multiple pages
KR101667344B1 (en) Method and system for providing search results
US9569541B2 (en) Evaluating preferences of content on a webpage
JP7395475B2 (en) System and method for generating and editing text content in a website construction system
CN109271594B (en) Recommendation method of electronic book, electronic equipment and computer storage medium
CN104991962B (en) A kind of method and device generating recommendation information
US20140019441A1 (en) Custom web page themes
US20150193386A1 (en) System and Method of Facilitating Font Selection and Manipulation of Fonts
US20130339840A1 (en) System and method for logical chunking and restructuring websites
CN101288067A (en) Methods and apparatuses to assemble, extract and deploy content from electronic documents
WO2014127535A1 (en) Systems and methods for automated content generation
CN103577171B (en) A kind of method and mobile terminal of display web page contents
CA2817554A1 (en) Mobile content management system
CN104035753A (en) Double-WebView customized page display method and system
US20180157763A1 (en) System and method for generating an electronic page
CN102065114A (en) Method and device for mobile terminal to access webpage
US9390168B1 (en) Customer keyword-based item recommendations
CN103838862B (en) Video searching method, device and terminal
CN111382192B (en) Data list display method and device and electronic equipment
CN106951429B (en) Method, browser and equipment for enhancing webpage comment display
US10867119B1 (en) Thumbnail image generation
US10198408B1 (en) System and method for converting and importing web site content
CN106951405A (en) Data processing method and device based on typesetting engine
KR20210098813A (en) Apparatus of crawling and analyzing text data and method thereof

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200709

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping B radio square 14 storey tower

Applicant before: GUANGZHOU UCWEB COMPUTER TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant