forked from ozten/Perfidies-of-the-Web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmessages.js
executable file
·63 lines (50 loc) · 2.69 KB
/
messages.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* L10N Note: The following block of strings are used by JavaScript
for the plugin detection part of the page */
/*jslint browser: true, plusplus: false */
/*global Pfs_external, window*/
var Pfs_internal = [];
// General Copy
Pfs_internal[0] = "Checking with Mozilla on the status of your plugins";
Pfs_internal[1] = "Loading Data";
Pfs_internal[2] = "View All Your Plugins";
// label and status for plugin detection table
Pfs_internal[3] = "Disable Now"; //DISABLE
Pfs_internal[4] = "Vulnerable No Fix"; //DISABLE
Pfs_internal[5] = "Update Now"; //VULNERABLE
Pfs_internal[6] = "Vulnerable"; //VULNERABLE
Pfs_internal[7] = "Update"; //OUTDATED
Pfs_internal[8] = "Outdated Version"; //OUTDATED
Pfs_internal[9] = "Up to Date"; //CURRENT
// no plugin_latest_status... It is set to the Version number detected
Pfs_internal[10] = "Research"; //UNKNOWN
Pfs_internal[11] = "Unknown plugin"; //UNKNOWN
/* At the top of the table is an overall summary about the "worst"
plugin situation you have. */
Pfs_internal[12] = ""; //Bug#523145
Pfs_internal[13] = "Out of date plugins:";
Pfs_internal[14] = "Vulnerable plugins:";
Pfs_internal[15] = "Potentially vulnerable plugins:";
//Or if there weren't any "bad" plugins we show one of these:
Pfs_internal[16] = "The plugins listed below are up to date";
Pfs_internal[17] = "No plugins were detected";
//The button for unknown plugins use a search engine so the user can Research their plugin
Pfs_internal[18] = "http://www.google.com/search?q=";
/*search terms before the plugin name...
Example if there was a plugin named "DivX Media Player" that we couldn't detect, then we would
search google for "current version plugin DivX Media Player */
Pfs_internal[19] = "current version plugin";
// more labels and status for plugin detection table
Pfs_internal[20] = "Update Now"; //MAYBE_VULNERABLE
Pfs_internal[21] = "Potentially Vulnerable"; //MAYBE_VULNERABLE
Pfs_internal[22] = "Update"; //MAYBE_OUTDATED
Pfs_internal[23] = "Potentially Outdated Version"; //MAYBE_OUTDATED
// Bug#553661 Vulnerability details
Pfs_internal[24] = "<p>This plugin version has a security vulnerability that websites can exploit and potentially harm your computer. It is recommended that you update this plugin or if an update is not available, <a href='#howto-disable'>disable it</a>.</p><p>For more information, read the <a href='#' class='vulner-url'>plugin vendor's vulnerability information</a>.</p><p><a class='qtip-closer'>Close</a></p>";
Pfs_internal[25] = " (more info)";
if (window.Pfs_external && Pfs_external.length) {
for (var i = 0; i < Pfs_external.length; i++) {
if (typeof Pfs_external[i] !== 'undefined') {
Pfs_internal[i] = Pfs_external[i];
}
}
}