catsxp浏览器不能在书签栏实现JS功能
发表于 : 2023年 8月 29日 10:56
希望把JS代码保存为书签,点击后实现JS功能。如:把下面代码保存为书签,实现附件里图片效果。谢谢!
javascript:(function(){window._jumpName=function(_na){window.open("https://www.baidu.com/s?wd="+document.g ... me").value);_close()};window._close=function(){var d=document.getElementById("_j");if(d){d.remove();return true}};if(_close()){return};var _co1=getSelection().toString();var _code=`<div id="_j"style="position: fixed;background-color: #f1fff7;text-align: center;z-index: 99999;top: 0px;left: 24%;right: 24%;border-radius: 0px 0px 30px 30px;padding: 14px;box-shadow: 0px 0px 8px 3px #4279ff;"><h4 style="margin-bottom:15px;"><a target="_blank"href="https://www.baidu.com/">百度-首页</a></h4><h4 </h4><div><input style="font-size:17px;padding:4px;width:40%;"type="text"placeholder="请输入内容"id="_Name"/><button style="font-size:17px;padding:4px;margin-left:3px;"onclick="_jumpName();">百度</button><button style="font-size:17px;padding:4px;margin-left:3px;"onclick="_close();">关闭</button></div><br/></div>%60;_code=_code.replace("_u_",location.href).replace("*t",Date.parse(new Date())).replace(/_c_/g,_co1);if(_co1){_code=_code.replace("none","")}document.body.insertAdjacentHTML("afterbegin",_code)})();
javascript:(function(){window._jumpName=function(_na){window.open("https://www.baidu.com/s?wd="+document.g ... me").value);_close()};window._close=function(){var d=document.getElementById("_j");if(d){d.remove();return true}};if(_close()){return};var _co1=getSelection().toString();var _code=`<div id="_j"style="position: fixed;background-color: #f1fff7;text-align: center;z-index: 99999;top: 0px;left: 24%;right: 24%;border-radius: 0px 0px 30px 30px;padding: 14px;box-shadow: 0px 0px 8px 3px #4279ff;"><h4 style="margin-bottom:15px;"><a target="_blank"href="https://www.baidu.com/">百度-首页</a></h4><h4 </h4><div><input style="font-size:17px;padding:4px;width:40%;"type="text"placeholder="请输入内容"id="_Name"/><button style="font-size:17px;padding:4px;margin-left:3px;"onclick="_jumpName();">百度</button><button style="font-size:17px;padding:4px;margin-left:3px;"onclick="_close();">关闭</button></div><br/></div>%60;_code=_code.replace("_u_",location.href).replace("*t",Date.parse(new Date())).replace(/_c_/g,_co1);if(_co1){_code=_code.replace("none","")}document.body.insertAdjacentHTML("afterbegin",_code)})();