How to use
Drag the blue square below to the favorites bar and release the mouse, the browser will automatically create a bookmark.
Then we open a website at random, click this bookmark, and the poster girl will appear on the web page!
This method can only be used for PC browsers, not mobile phones.
And some websites, such as Bing, will prohibit loading external resources, and these websites will fail to summon.
Baidu, Bilibili, Think No, and Nuggets can all be used.
Loading may be a bit slow, so you need to wait patiently.
How it is implemented
In addition to collecting URLs, the browser’s favorites can also collect javascript codes. We can execute the javascript code by clicking on it.
Like the example below:
|
|
We copy these codes and create a new bookmark, paste the code into the URL
column and save it.
Then we open a website at random and click on this bookmark, and a dialog box will pop up to display the title of the current web page.
However, if the code you execute has a return value, you need to add a line void(0);
at the end of the js code, otherwise clicking the bookmark will jump to another page and display the return value on that page.
The principle of summoning the poster girl
The code is as follows:
|
|
The code adds two tags to the head
tag, a link
tag and a script
tag. They will load the styles required by the poster girl and the initialization code of the poster girl, so that the poster girl will appear on your web page.
ps: Direct dragging and dropping is a good way to bookmark a link with one click.