General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Flash player logo
Posted by: DaComboMan
Date: June 06, 2007 12:27PM

Hi,

Is it possible to have the Flash player logo/icon that appears on webpages replaced by a user determined text or something else like simply have it disappear or become a dot?

Options: ReplyQuote
Re: Flash player logo
Posted by: JohnHell
Date: June 06, 2007 02:38PM

It can be done modifying the embed.jar (is more complicated but I'm not going to explain here).

I also want to do it but I haven't done it yet, so..., if someone makes a modified version of the flashblock.css, it would be very wellcome.

Oh, another thing I point here is that if flashblock is enabled, then, when you filter content through your usercontent.css file, the blocked flashes are still shown... I mean that flashblock.css settings overrides the usercontent.css.

As I said I'll have to do in a large list, but if anyone helps... is wellcome smiling smiley

Options: ReplyQuote
Re: Flash player logo
Posted by: JohnHell
Date: June 09, 2007 02:34AM

I did my own modifications, with a result worst than I expected but well, I'm not here for that.

As no one tell you how to do:

1.- Search for the chrome folder inside the K-meleon installation directory.

2.- Make a backup of embed.jar. Open the embed.jar with a compressor that supports jar files. I use Winrar.

3.- You'll see a folder named "flashblock". Open it, open the next folder "content" and the next one "flashblock". Inside you'll find all the images used for the placeholder.

4.- Now, if you don't want to do a hard work, find your preferred images for the placeholder, rename them as appear in the jar file and drag&drop inside the window (I'm talking about winrar). It will be automatically recompressed.

5.- To see the result open K-meleon and browse smiling smiley

Oh, if you want them replaced by a text you must edit the xml file but I don't know if you have the skills.



Edited 1 time(s). Last edit at 06/09/2007 02:36AM by JohnHell.

Options: ReplyQuote
Re: Flash player logo
Posted by: DaComboMan
Date: June 11, 2007 11:58AM

Hi John,

Thanks for the info.! I'm a bit late to respond as i was away for a few days.
Will give it a shot. Perhaps a future build will give an option to have text displayed instead. It would be much less annoying that a big dot.

Options: ReplyQuote
Re: Flash player logo
Posted by: JohnHell
Date: June 11, 2007 02:20PM

Quote
DaComboMan
[...about text...]It would be much less annoying that a big dot.
That's for sure smiling smiley

What is annoying for me is the size and/or the replacement of the flash/sockwave.

The thing is that the XML and the javascript code inside tells to change the embed element for a div and as that div, even taking the id, sometimes haven't an ID, you can't hide it, so if you have it filtered through usercontent.css, then it doesn't work and you have a lot of big dots that you don't have to see because you already filtered them :/

Options: ReplyQuote
Re: Flash player logo
Posted by: DaComboMan
Date: June 12, 2007 05:51PM

John,

It's me again!

I didn't want to install a trialware just for a one shot deal on my newly re-installed pc so i tried using PowerDesk Pro. It brings me up to the flashblock.css file but the later is opened in FrontPage.

Thanks for your help!

This is the data that is automatically opened in FrontPage:

/*
* Flash Click to View by Ted Mielczarek (luser_mozilla@perilith.com)
* Original code by Jesse Ruderman (jruderman@hmc.edu)
* taken from http://www.squarefree.com/userstyles/xbl.html
*
* Change XBL binding for <object> tags, click to view flash
*/

/*
* Flash identifiers.
*/
object[classid*="grinning smiley27CDB6E-AE6D-11cf-96B8-444553540000"],
object[codebase*="swflash.cab"],
object[data*=".swf"],
embed[type="application/x-shockwave-flash"],
embed[src*=".swf"],
object[type="application/x-shockwave-flash"],
object[src*=".swf"]
{ -moz-binding: url("chrome://flashblock/content/flashblock.xml#flash") !important; }

/*
* Director identifiers.
*/
object[classid*=":166B1BCA-3F9C-11CF-8075-444553540000"],
object[codebase*="sw.cab"],
object[data*=".dcr"],
embed[type="application/x-director"],
embed[src*=".dcr"],
object[type="application/x-director"],
object[src*=".dcr"]
{ -moz-binding: url("chrome://flashblock/content/flashblock.xml#director") !important; }

/*
* Authorware identifiers.
*/
object[classid*=":15B782AF-55D8-11D1-B477-006097098764"],
object[codebase*="awswaxf.cab"],
object[data*=".aam"],
embed[type="application/x-authorware-map"],
embed[src*=".aam"],
object[type="application/x-authorware-map"],
object[src*=".aam"]
{ -moz-binding: url("chrome://flashblock/content/flashblock.xml#authorware") !important; }

/*
* Broken Objects.
*/
object
{ -moz-binding: url("chrome://flashblock/content/flashblock.xml#brokenobject") !important; }

/*
* Java identifiers.
*/
/*
applet,
object[classid*=":8AD9C840-044E-11D1-B3E9-00805F499D93"],
object[classid^="clsid:CAFEEFAC-"],
object[classid^="java:"],
object[type="application/x-java-applet"],
embed[classid*=":8AD9C840-044E-11D1-B3E9-00805F499D93"],
embed[classid^="clsid:CAFEEFAC-"],
embed[classid^="java:"],
embed[type="application/x-java-applet"]
{
-moz-binding: none !important;
}
*/

/* sIFR styles */
.sIFR-flash, .sIFR-flash object, .sIFR-flash embed,
.sIFR-replaced div[style*="chrome://flashblock"] {
-moz-binding: url("chrome://flashblock/content/flashblock.xml#sifr-replaced") !important;
}

span.sIFR-alternate {
-moz-binding: url("chrome://flashblock/content/flashblock.xml#sifr-alternate") !important;
position: static !important;
letter-spacing: normal !important;
}



Edited 1 time(s). Last edit at 06/13/2007 12:03PM by DaComboMan.

Options: ReplyQuote
Re: Flash player logo
Posted by: JohnHell
Date: June 18, 2007 02:46PM

No look, you'll have to edit the flashblock.xml and replace this:


BUT CAUTION, I HAVEN'T TESTED, BACKUP THE EMBED.JAR AND THE XML FILE

YOUR PROFILE SHOULDN'T BE COMPROMISED BECAUSE IT IS A K-M RELATED THING BUT BACKUP IT TOO


function flashblockCreatePlaceholder(isStandalone) {
	// Create placeholder
	var flashblockCreateElement;
	var placeholder;
	try {
		flashblockCreateElement = nativeMethod(document, "createElement");
		placeholder = flashblockCreateElement("div");
	} catch (e) {
		placeholder = document.createElementNS( "http://www.w3.org/1999/xhtml";, "div"); 
	}
	placeholder.isStandalone = isStandalone;
	return placeholder;
}

for this:
function flashblockCreatePlaceholder(isStandalone) {
	// Create placeholder
	var flashblockCreateElement;
	var placeholder;
	try {
		flashblockCreateElement = nativeMethod(document, "createElement");
		placeholder = document.write("text here");
	} catch (e) {
		placeholder = document.write( "text here"); 
	}
	placeholder.isStandalone = isStandalone;
	return placeholder;
}


Options: ReplyQuote


K-Meleon forum is powered by Phorum.