UserPreferences

ShowSelectionJs


// Show Slectionexample user script // version 0.1 ALPHA // 2005-09-15 // Copyright (c) 2005, Raymond Yee // Released under the GPL license // http://www.gnu.org/copyleft/gpl.html // //
// // This is a Greasemonkey user script. To install it, you need // Greasemonkey 0.3 or later: http://greasemonkey.mozdev.org/ // Then restart Firefox and revisit this script. // Under Tools, there will be a new menu item to "Install User Script". // Accept the default configuration and install. // // To uninstall, go to Tools/Manage User Scripts, // select "Hello World", and click Uninstall. // //
// // ==UserScript== // @name Show Selection prototype // @namespace http://raymondyee.net/projects/greasemonkey/ // @description example script to show the parameters of the selection object on every page // @include * // ==/UserScript==

GM_registerMenuCommand("Show selection", function() { if (window.getSelection) {

} });