我想将这些书签脚本合并成一个脚本,通过单击书签栏中的脚本来切换图像亮度:
javascript:(function(){!function(e) {e.head.appendChild(e.createElement("style"))
.innerText = ".img,img{-webkit-filter:brightness(50%)}"}(document)})()
并且:
javascript:(function(){!function(e) {e.head.appendChild(e.createElement("style"))
.innerText = ".img,img{-webkit-filter:brightness(100%)}"}(document)})()
我曾试图自己完成,但由于我很久没有使用JavaScript,所以失败了。希望能得到编码或指引的帮助。
谢谢!