2012-07-02 53 views

回答

0

那么,你可以在github.com上禁用Javascript,但是附加数据没有加载,你只会看到没有最后一次签入的文件夹名称。我认为这是唯一的方法。

1

在GitHub的页面上,输入到这个网址吧:

javascript:(function(){jQuery.fx.off=true;})(); 

您还可以创建一个bookmarklet避免粘贴这一切的时候。

1

如果您的浏览器支持扩展,应该很容易创建一个禁用所有GitHub页面上的jQuery FX。

var killFX = document.createElement("script"); 
killFX.text = "jQuery.fx.off=true;"; 
document.body.appendChild(killFX); 

更新13年10月4日: GitHub上已添加或更改的内容安全,策略标题为禁止内嵌JavaScript:在Safari中使用时,作为“结束脚本”下面的工作对我来说

X-WebKit-CSP : default-src *; script-src https://github.com https://a248.e.akamai.net https://jobs.github.com https://ssl.google-analytics.com https://secure.gaug.es https://gist.github.com; style-src https://github.com https://a248.e.akamai.net https://jobs.github.com https://ssl.google-analytics.com https://secure.gaug.es https://gist.github.com 'unsafe-inline'; object-src https://github.com https://a248.e.akamai.net 

...它打破了Safari浏览器扩展:

Refused to execute inline script because of Content-Security-Policy. 

调查。

+0

更多内容请访问https://github.com/blog/1477-content-security-policy – VonC

相关问题