今天早上,将我的Firefox浏览器升级到最新版本(从22到23),我的后台(网站)的一些关键方面停止了工作.
查看Firebug日志,报告了以下错误:
Blocked loading mixed active content "http://code.jquery.com/ui/1.8.10/themes/smoothness/jquery-ui.css"
Blocked loading mixed active content "http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.10/jquery-ui.min.js"`
Run Code Online (Sandbox Code Playgroud)
除了上面两个中的后者没有被加载导致的其他错误.
以上是什么意思,我该如何解决?
我正在尝试将jquery-ui添加到Greasemonkey脚本中.我的完整代码test.user.js:
// ==UserScript==
// @name Test
// @namespace rajat.khandelwal
// @description Test script
// @include *
// @require js/jquery-1.6.2.min.js
// @require js/jquery-ui-1.8.16.custom.min.js
// @require css/ui-darkness/jquery-ui-1.8.16.custom.css
// ==/UserScript==
alert('hi');
Run Code Online (Sandbox Code Playgroud)
在当前目录中我添加了JS和CSS目录.它抛出错误说syntax error in css
Error: syntax error
Source File: file:///C:/Users/Rajat/AppData/Roaming/Mozilla/Firefox/Profiles/poxivdqy.default/gm_scripts/test/jquery-ui-1816custom.css
Line: 13
Run Code Online (Sandbox Code Playgroud)
第13行是:
.ui-helper-hidden { display: none; }
Run Code Online (Sandbox Code Playgroud)
问题是什么?如何添加jquery-ui并在我的用户脚本中使用它?