我有一个网站脚本,如果尝试禁用网站中的反右键单击保护,ti 在最后会做的事情之一
if($("span[class=MembersNameDisplay]").exists()){
var list_row = document.getElementsByTagName('script');
if(list_row != null){
list_row[0].parentNode.removeChild(list_row[0]);
}
}
document.oncontextmenu=new Function("return true");
在 google chrome 中这是有效的,但是在带有 Greasemonkey 的 Firefox 中,最后一行失败并且保护未被删除。
Error: Component is not available Line: 171
如何解决这个问题,为什么它在 Firefox 下失败?
最佳答案
几乎没有搜索Userscripts.org向我展示了多种解决方案。
关于javascript - Document.oncontextmenu,组件不可用(firefox),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2008108/