Method and terminal for adding quick link
AssigneeTencent Technology (Shenzhen) Company Limited
InventorLei Wang
Life of this patent
Estimating the term…
Abstract
Disclosed are a method and terminal for adding a quick link. The method includes: receiving a URL and a title of a quick link to be added to a main page, the URL and the title being input by a user; searching in a pre-stored mapping relationship between URLs and icons according to the URL of the quick link; and if a corresponding icon is found, adding the corresponding icon to the main page, drawing the title of the quick link on the corresponding icon, and binding the URL of the quick link to the corresponding icon. The terminal includes: a receiving module, a searching module, and an adding module. With the method, network traffic is saved and user experience is improved.
Claims9
A method for adding a quick link, comprising:
- receiving a uniform resource locator (URL) and a title of a quick link to be added to a main page of a web browser running on a mobile device, the URL and the title being input by a user;
- searching an icon in a pre-stored mapping relationship between URLs and icons according to the URL of the quick link, wherein the icons and the mapping relationship between URLs and icons are pre-stored in the mobile device applying the method during an installation of the web browser;
- determining whether a corresponding icon is found in the pre-stored mapping relationship between URLs and icons according to the URL of the quick link;
- and
- in accordance with a determination that no corresponding icon is found in the pre-stored mapping relationship between URLs and icons and a web page corresponding to the quick link has been opened:
- displaying the web page corresponding to the quick link;
- capturing a screenshot for the web page corresponding to the quick link;
- generating an icon from the captured screenshot for the web page as the icon of the quick link;
- adding the icon of the quick link to the main page;
- drawing the title of the quick link on the icon of the quick link;
- binding the URL of the quick link to the icon of the quick link;
- in accordance with a determination that no corresponding icon is found in the pre-stored mapping relationship between URLs and icons and a web page corresponding to the quick link has not been opened:
- acquiring a pre-stored default icon;
- adding the default icon to the main page;
- drawing the title of the quick link on the default icon;
- and
- binding the URL of the quick link to the default icon.
A mobile terminal for adding a quick link, comprising one or more processors;
- and a non-transitory computer-readable storage medium storing one or more programs that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:
- receiving a uniform resource locator (URL) and a title of a quick link to be added to a main page of a web browser running on the mobile terminal, the URL and the title being input by a user;
- searching an icon in a pre-stored mapping relationship between URLs and icons according to the URL of the quick link, wherein the icons and the mapping relationship between URLs and icons are pre-stored in the mobile terminal during an installation of the web browser;
- determining whether a corresponding icon is found in the pre-stored mapping relationship between URLs and icons according to the URL of the quick link;
- and
- in accordance with a determination that no corresponding icon is found in the pre-stored mapping relationship between URLs and icons and a web page corresponding to the quick link has been opened:
- displaying the web page corresponding to the quick link;
- capturing a screenshot for the web page corresponding to the quick link;
- generating an icon from the captured screenshot for the web page as the icon of the quick link;
- adding the icon of the quick link to the main page;
- drawing the title of the quick link on the icon of the quick link;
- binding the URL of the quick link to the icon of the quick link;
- in accordance with a determination that no corresponding icon is found in the pre-stored mapping relationship between URLs and icons and a web page corresponding to the quick link has not been opened:
- acquiring a pre-stored default icon;
- adding the default icon to the main page;
- drawing the title of the quick link on the default icon;
- and
- binding the URL of the quick link to the default icon.
A non-transitory computer-readable medium storing instructions, the instructions, when executed by one or more processors, cause the one or more processors to perform operations comprising:
- receiving a uniform resource locator (URL) and a title of a quick link to be added to a main page of a web browser running on a mobile device, the URL and the title being input by a user;
- searching an icon in a pre-stored mapping relationship between URLs and icons according to the URL of the quick link, wherein the icons and the mapping relationship between URLs and icons are pre-stored in the mobile device applying the method during an installation of the web browser;
- determining whether a corresponding icon is found in the pre-stored mapping relationship between URLs and icons according to the URL of the quick link;
- and
- in accordance with a determination that no corresponding icon is found in the pre-stored mapping relationship between URLs and icons and a web page corresponding to the quick link has been opened:
- displaying the web page corresponding to the quick link;
- capturing a screenshot for the web page corresponding to the quick link;
- generating an icon from the captured screenshot for the web page as the icon of the quick link;
- adding the icon of the quick link to the main page;
- drawing the title of the quick link on the icon of the quick link;
- binding the URL of the quick link to the icon of the quick link;
- in accordance with a determination that no corresponding icon is found in the pre-stored mapping relationship between URLs and icons and a web page corresponding to the quick link has not been opened:
- acquiring a pre-stored default icon;
- adding the default icon to the main page;
- drawing the title of the quick link on the default icon;
- and
- binding the URL of the quick link to the default icon.
Dependencies are inferred from the claim text.