smooth-dl.py: support downloading from a local file in download_file()
[smooth-dl.git] / scripts / SilverSpoof.user.js
1 // SilverSpoof - spoof Silverlight client installation
2 //
3 // Copyright (C) 2010  Antonio Ospite <ospite@studenti.unina.it>
4 //
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.
9 //
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.
14 //
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/>.
17 //
18 // --------------------------------------------------------------------
19 //
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.
25 //
26 // To uninstall, go to Tools/Manage User Scripts,
27 // select "SilverSpoof", and click Uninstall.
28 //
29 // --------------------------------------------------------------------
30 //
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.
34 //
35 // ==UserScript==
36 // @name          SilverSpoof
37 // @namespace     http://ao2.it
38 // @description   Script to spoof Silverlight client installation
39 // ==/UserScript==
40
41 unsafeWindow.Silverlight.isInstalled = function(version) {
42   return true;
43 };