为什么不能居中显示?
为什么不能居中显示?
https://video.isyour.love/ 这个网站里面的“一键播放6 "拖动到收藏夹,为什么都显示在居边,不能居中,而百分,360等谷歌浏览器都会自动居中显示。希望老大修复。
Re: 为什么不能居中显示?
楼1网站中,截图里“一键播放”拖动到书签栏,再点击后,JS运行的弹窗,为什么会在浏览里的左面,而不居中。其它浏览器都会自动居中呢。希望修复。
Re: 为什么不能居中显示?
viewtopic.php?t=1095
%的问题!要手动修改一下
下面是执行正常的代码!
%的问题!要手动修改一下
下面是执行正常的代码!
代码: 全选
javascript:(function(){window._jumpName=function(_na){window.open("https://video.isyour.love/search/search?id=%22+document.getElementById(%22_videoName%22).value);_close()};window._close=function(){var%20d=document.getElementById(%22_j%22);if(d){d.remove();return%20true}};if(_close()){return};var%20_co1=getSelection().toString();var%20_code=`%3Cdiv%20id=%22_j%22style=%22position:%20fixed;background-color:%20#f1fff7;text-align:%20center;z-index:%2099999;top:%200px;left:%2024%25;right:%2024%25;border-radius:%200px%200px%2030px%2030px;padding:%2014px;box-shadow:%200px%200px%208px%203px%20#4279ff;%22%3E%3Ch4%20style=%22margin-bottom:15px;%22%3E%3Ca%20target=%22_blank%22href=%22https://video.isyour.love%22%3E%E9%82%A6%E5%AE%81%E4%BA%91%E6%92%AD-%E9%A6%96%E9%A1%B5%3C/a%3E%3C/h4%3E%3Ch4%20style=%22margin-bottom:15px;%22%3E%3Ca%20target=%22_blank%22href=%22https://video.isyour.love/search/search?id=_u_&t=*t%22%3E%E5%B0%9D%E8%AF%95%E6%92%AD%E6%94%BE%E6%AD%A4%E9%A1%B5%E9%9D%A2%3C/a%3E%3C/h4%3E%3Ch4%20style=%22display:none;margin-bottom:15px;%22%3E%3Ca%20id=%22_cid%22target=%22_blank%22href=%22https://video.isyour.love/search/search?id=_c_%22%3E%E6%90%9C%E7%B4%A2%EF%BC%9A%3Cspan%20style=%22color:red;%22%3E_c_%3C/span%3E%3C/a%3E%3C/h4%3E%3Cdiv%3E%3Cinput%20style=%22font-size:17px;padding:4px;width:40%25;%22type=%22text%22placeholder=%22%E8%AF%B7%E8%BE%93%E5%85%A5%E5%BD%B1%E7%89%87%E5%90%8D%E7%A7%B0%22id=%22_videoName%22/%3E%3Cbutton%20style=%22font-size:17px;padding:4px;margin-left:3px;%22onclick=%22_jumpName();%22%3E%E6%90%9C%E7%B4%A2%E6%92%AD%E6%94%BE%3C/button%3E%3Cbutton%20style=%22font-size:17px;padding:4px;margin-left:3px;%22onclick=%22_close();%22%3E%E5%85%B3%E9%97%AD%3C/button%3E%3C/div%3E%3Cbr/%3E%3C/div%3E%60;_code=_code.replace(%22_u_%22,location.href).replace(%22*t%22,Date.parse(new%20Date())).replace(/_c_/g,_co1);if(_co1){_code=_code.replace(%22none%22,%22%22)}document.body.insertAdjacentHTML(%22afterbegin%22,_code)})();
Re: 为什么不能居中显示?
书签保存会自动转义,执行要再逆转义回去
自写的函数逻辑比较简单,这就导致%有时候会解析错误,下个版本尝试优化一下
自写的函数逻辑比较简单,这就导致%有时候会解析错误,下个版本尝试优化一下