1 // SilverSpoof - spoof Silverlight client installation
3 // Copyright (C) 2010 Antonio Ospite <ospite@studenti.unina.it>
5 // This program is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation, either version 3 of the License, or
8 // (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program. If not, see <http://www.gnu.org/licenses/>.
18 // --------------------------------------------------------------------
20 // This is a Greasemonkey user script. To install it, you need
21 // Greasemonkey 0.3 or later: http://greasemonkey.mozdev.org/
22 // Then restart Firefox and revisit this script.
23 // Under Tools, there will be a new menu item to "Install User Script".
24 // Accept the default configuration and install.
26 // To uninstall, go to Tools/Manage User Scripts,
27 // select "SilverSpoof", and click Uninstall.
29 // --------------------------------------------------------------------
31 // This script spoofs a Silverlight installation, allowing the User Agent to
32 // acess the <object></object> element relative to some Silverlight content
33 // even if Silverlight (or Moonlight) is not installed.
37 // @namespace http://ao2.it
38 // @description Script to spoof Silverlight client installation
41 unsafeWindow.Silverlight.isInstalled = function(version) {