|
阅读:2652回复:3
有没有朋友会修改这个脚本或是有类似脚本(解除网页右键菜单限制)
GM脚本http://userscripts.org/scripts/show/82338
这个脚本在Firefox 4.0b9以后就失效了,能不能修改一下呢? // ==UserScript==
// @name 解除网页右键菜单和复制限制
// @include *
// @exclude http*://mail.google.com/*
// @exclude http://maps.google.com/*
// @author tomchen1989
// @version 0.2
// @description Fixes pages that disable context menus and text selection.
// ==/UserScript==
function restore(){
with (document.wrappedJSObject || document) {
onmouseup = null;
onmousedown = null;
oncontextmenu = null;
}
var arAllElements = document.getElementsByTagName('*');
for (var i = arAllElements.length - 1; i >= 0; i--) {
var elmOne = arAllElements[i];
with (elmOne.wrappedJSObject || elmOne) {
onmouseup = null;
onmousedown = null;
}
}
}
window.addEventListener('load',restore,true);
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
addGlobalStyle("html, * {-moz-user-select:text!important;}"); |
|
|
1楼#
发布于:2011-01-23 21:42
这个功能可以直接在选项里面设置啊。
工具,选项,内容,启用javascript,高级,把上下文菜单的勾选去掉。 |
|
|
2楼#
发布于:2011-01-23 21:42
|
|
|
3楼#
发布于:2011-01-23 21:42
|
|