网页便签

想在那个网页展示 就在@match填哪个网页,不同网站数据不互通(可以写多个@match)

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Аўтар
cgl556
Усталяванняў за дзень
0
Усяго ўсталяванняў
1
Рэйтынг
0 0 0
Версія
2023.7.7
Створаны
16.04.2023
Абноўлены
07.07.2023
Памер
12.2 КБ
Ліцэнзія
MIT
Ужываецца на
Усе сайты

@match ****一定要自己改==想在那个网页展示 就在@match填哪个网页,不同网站数据不互通(可以写多个@match)



实现便签(注释用中文)创建一个div class=box,先获取本地存放的坐标和宽高还有内容,如果本地不存在默认在右上角宽高260px;内容:“hello ikun”
如果存在就用存在的数据去创建。
box的里面创建一个可以输入的标签,内容就绑定在里面,输入的内容存储到本地。
在box右上角外面创建一个div标签class=‘xiao’,点击xiao时 xiao和box隐藏,并创建一个div class=‘yuan’ 高宽50px;样式绿色圆形,位置就在box的指标, yuan可以用鼠标拖动移动位置,点击yuan时隐藏yuan 显示 box 和 xiao。
在box 的顶部中间外围创建一个div class=‘yi’ 作用是鼠标拖动该元素时,box 和 xiao 和 yi 一起跟着鼠标一起移动,移动的位置存储到本地。
在box右下角可以改变box的宽高,并存储到本地。