X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

Problem with 'spread the word' badge?

Posted

I used the first (smaller vertical) badge at https://www.mozilla.org/en-US/plugincheck/ on my Wordpress blog but although it shows the badge, it also shows the second half of the HTML: "var pfsNextImage = "https://www.mozilla.org/img/covehead/plugincheck/wb/en-US/180_150/safe.png";var pfsUpdateImage = "https://www.mozilla.org/img/covehead/plugincheck/wb/en-US/180_150/upyourplug.png";" If I remove that part, it just shows the badge, but do I lose anything but not including the part I've removed?

The whole code is:

<a href="https://www.mozilla.org/en-US/plugincheck/"><img id="mozilla_plugin_checker_badge" src="https://www.mozilla.org/img/covehead/plugincheck/wb/en-US/180_150/loading.png" width="180" height="150" alt="We can check your plugins and stuff" border="0" /></a><script type="text/javascript">var pfsNextImage = "https://www.mozilla.org/img/covehead/plugincheck/wb/en-US/180_150/safe.png";var pfsUpdateImage = "https://www.mozilla.org/img/covehead/plugincheck/wb/en-US/180_150/upyourplug.png";</script><script src="https://www.mozilla.org/js/plugincheck_badge.js"></script>

Modified by cor-el

Additional System Details

Installed Plug-ins

  • Next Generation Java Plug-in 1.6.0_31 for Mozilla browsers
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Shockwave Flash 11.1 r102
  • Adobe Shockwave for Director Netscape plug-in, version 11.6.4.634
  • Google Update
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • Adobe PDF Plug-In For Firefox and Netscape 10.1.2
  • Windows Presentation Foundation (WPF) plug-in for Mozilla browsers

Application

  • User Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2

More Information

Application Basics
Name
Firefox
Version
10.0.2
User Agent
Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
Profile Directory
Open Containing Folder
Enabled Plugins
about:plugins
Build Configuration
about:buildconfig
Crash Reports
about:crashes
Memory Use
about:memory
Extensions
Name
Version
Enabled
ID
Adblock Plus
2.0.3
true
{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}
Java Console
6.0.31
true
{CAFEEFAC-0016-0000-0031-ABCDEFFEDCBA}
Java Quick Starter
1.0
true
jqs@sun.com
Microsoft .NET Framework Assistant
0.0.0
true
{20a82645-c095-46ed-80e3-08825760534b}
AVG Safe Search
12.0.0.1912
false
{1E73965B-8B48-48be-9C8D-68B920ABC1C4}
Babylon
1.2.0
false
ffxtlbr@babylon.com
Modified Preferences
Name
Value
browser.places.smartBookmarksVersion
2
browser.startup.homepage
about:home
browser.startup.homepage_override.buildID
20120215223356
browser.startup.homepage_override.mstone
rv:10.0.2
browser.tabs.loadInBackground
false
browser.tabs.warnOnClose
false
extensions.lastAppVersion
10.0.2
gfx.blacklist.direct2d
2
gfx.blacklist.layers.direct3d10
2
gfx.blacklist.layers.direct3d10-1
2
gfx.blacklist.layers.direct3d9
2
gfx.blacklist.layers.opengl
2
gfx.blacklist.suggested-driver-version
6.14.10.4764
gfx.blacklist.webgl.angle
2
gfx.blacklist.webgl.msaa
2
gfx.blacklist.webgl.opengl
2
network.cookie.prefsMigrated
true
network.http.max-persistent-connections-per-server
4
network.protocol-handler.warn-external.dnupdate
false
places.database.lastMaintenance
1330775077
places.history.expiration.transient_current_max_pages
33329
places.history.expiration.transient_optimal_database_size
53325168
plugin.disable_full_page_plugin_for_types
audio/x-wav,audio/mpeg,application/sdp,application/x-sdp,application/smil
privacy.cpd.siteSettings
true
privacy.donottrackheader.enabled
true
privacy.sanitize.migrateFx3Prefs
true
privacy.sanitize.timeSpan
0
security.warn_viewing_mixed
false
Graphics
Adapter Description
Mobile Intel(R) 915GM/GMS,910GML Express Chipset Family
Vendor ID
8086
Device ID
2592
Adapter RAM
Unknown
Adapter Drivers
ialmrnt5
Driver Version
6.14.10.4609
Driver Date
6-6-2006
Vendor ID (GPU #2)
8086
Device ID (GPU #2)
2792
Adapter RAM (GPU #2)
Unknown
Adapter Drivers (GPU #2)
Unknown
Driver Version (GPU #2)
6.14.10.4609
Driver Date (GPU #2)
6-6-2006
WebGL Renderer
Blocked for your graphics driver version. Try updating your graphics driver to version 6.14.10.4764 or newer.
GPU Accelerated Windows
0/1. Blocked for your graphics driver version. Try updating your graphics driver to version 6.14.10.4764 or newer.

cor-el
  • Top 10 Contributor
  • Moderator
10739 solutions 96651 answers

That text is part of a script tag, so you shouldn't be seeing it.

Can you post a link to your blog site so we can check the code for errors?

Do you see any red text if you inspect the page source via the right-click context menu?

Helpful Reply

Thanks for replying. My blog is at http://adeunsheep.wordpress.com/

You will see two versions of the badge on my blog, on the right sidebar. One is 'cleaned up' where I've removed the script tag (and the link seems to work fine), the other, further down, shows the badge with the whole text including the script tag.

Not sure what "inspect the page source" means but I've tried both 'view page source' and 'inspect element' on the text both on the Firefox page where I found the badge and on my blog (from within the widget placing area, on the blog itself logged in and logged out); 'view page source' shows red text, namely numbers preceded by a #, forward slashes (/), &, >,   (there's also a lot of blue and purple, and some bold black); 'inspect element' shows no red text.

As I say, I've found a workaround but figured it was worth pointing out. I must admit I don't understand how the link works without the script tag but then, I'm a complete novice where code of any sort is concerned!

cor-el
  • Top 10 Contributor
  • Moderator
10739 solutions 96651 answers

If you look at the page source then you will notice that the script tags are missing, so that text in now normal text and rendered as such.
So in this case there isn't an error in the text, but only the script tags got lost.
If you didn't do that then maybe the blog software did (removing unrecognized or not white-listed tags).

<li id="text-4" class="widget widget_text">
<h2 class="widgettitle">test</h2>
<div class="textwidget">
<a href="https://www.mozilla.org/en-US/plugincheck/">
 <img src="https://www.mozilla.org/img/covehead/plugincheck/wb/en-US/180_150/loading.png" width="180" height="150" alt="We can check your plugins and stuff" border="0" />
</a>
<!-- this text should be in a script tag -->
var pfsNextImage = "https://www.mozilla.org/img/covehead/plugincheck/wb/en-US/180_150/safe.png";
var pfsUpdateImage = "https://www.mozilla.org/img/covehead/plugincheck/wb/en-US/180_150/upyourplug.png";
</div>
</li>

Modified by cor-el

Question owner

You're quire correct. I've just gone through the whole process again, made sure it says " </a><script type="text/javascript"> " before hitting save (on the wiget page of my WordPress blog), and lo and behold, when I hit save it removes it! Why? Guess that's a question for WordPress.

Thanks for your help, cor-el.

Question owner

Sorry that should have been "quite correct" !

Question owner

I've just visited WordPress's Help page for widgets and discovered that Javascript is not allowed as it can be used for malicious reasons. They allow it for YouTube and Google though as they are "trusted partners" - about time they made Firefox a trusted partner! Given that YouTube is owned by Google, I wonder if WordPress has some kind of special deal going with Google to disadvantage Firefox users?