MoePlayer / hexo-tag-dplayer

Embed dplayer in Hexo posts/pages
MIT License
210 stars 30 forks source link

利用hexo-blog-encrypt加密,解密之后无法加载该插件 #26

Closed liujw1007 closed 5 years ago

liujw1007 commented 5 years ago

正常情况,没有进行加密

image

进行了加密之后再解密进入页面

image

hexo-blog-encrypt主题上查了一下,说是加密插件覆盖了windows.onload函数,可以通过回调函数解决,目前还没找到解决方案

dixyes commented 5 years ago

seems not supported yet due to hacky tag render method, you can use raw tag {%raw%} before support implemented. 可能是现在这个插入标签的脏方法并不兼容hexo-blog-encrypt, 建议先用raw tag来插入html代码(如果rawtag也不行估计就没法了)。

dixyes commented 5 years ago

emmm 如果是覆盖了window.onload导致的, 可能不只是hexo-tag-dplayer的问题了,可能需要hexo-blog-encrypt做相关的兼容

liujw1007 commented 5 years ago

emmm 如果是覆盖了window.onload导致的, 可能不只是hexo-tag-dplayer的问题了,可能需要hexo-blog-encrypt做相关的兼容

恩恩,谢啦!