My programs for Opera

Flashblock for Opera 9

,

Internal "FlashHide" in Opera 10.5 (don't block loading of Flash, when Turbo turned off - this bug fixed in Opera 10.70)
Enable an option: opera:config#UserPrefs|EnableOnDemandPlugin


External
Flashblock is an addition for the Opera that blocks all Flash, Silverlight and Java content from loading. It then leaves placeholders on the webpage that allow you to click to download and then view the Flash content.

UserJS-only version for Opera 9.5-10.5: FlashBlock.js

Button: Disable/enable FlashBlock
Or press Ctrl+Shift+F or Ctrl+Alt+F for permanent unblocking on the site; use Ctrl+Click for saving flash-video.

allblock-lite.js - Block any embedded content (Flash, Java, etc). Supported the hotkeys and button above.

All versions for Opera 8-10: Flashblocker.zip

Based on Flashblock for FF and GspuSi Flash blocker for Opera 9.



FAQ

Q: It don't work.
A: It works smile . Please read description (FlashBlocker-info.txt) and do as it is written there. Possibly will become more clear for you, if you will look as it's done in Opera Portable.

Q: It don't work on certain site.
A: It's unlikely, but possibly. Please specify the address of problem site.

Q: Unblock of flash don't work on secure (https) sites.
A: Set UserJavaScriptonHTTPS.


Update
Fixed small problem with FlashBlocker.js.
Blocking of Silverlight is added.
Used icons from AVol.
A tooltip is shown with the address of flash (only if cursor of mouse from below).

Update
Added text buttons (for Opera 8 and 9)
A tooltip now is shown and on YouTube.

Update (08.05.2008)
Added variant flashblocker.zip\show flash size\. It looks fully like flashblock for FF.

Update (28.11.2008)
* Fixed problem on video.mail.ru.
* Loading flashblocker images in "Cached images" mode, commented out. Imho, in Opera 9.5 it not very stable.

Update (02.02.2009)
* Fixed rare problem with unblocking.
* Fixed a result deterioration in acid3 in the version for Opera 10.

Update (06.05.2009)
+ Silverlight blocking.

Update (20.05.2009)
+ Saving flash-video with Ctrl+Click. Supported any services with direct links (rutube.ru, world-art.ru, break.com, etc) plus youtube.com, video.google.com, metacafe.com and dailymotion.com.

Update (14.02.2010)
* Compatibility with Opera 10.5
+ Context menu for placeholders.

Update (18.04.2010)
* Compatibility with Opera 9.5 for flashblocker.js.
* Compatibility with youtube.
* Speed slightly improved .

Toolbar and menu with BBCode Ver 1.4.24 EngGet File Size setup for Opera

Comments

A.RuzanovLex1 Friday, November 14, 2008 11:19:03 PM

Unregistered user Sunday, November 23, 2008 12:21:18 PM

Anonymous writes: opera no 1

A.RuzanovLex1 Friday, November 28, 2008 9:24:45 AM

Small update.
* Address of flash now shows and on video.mail.ru.
* Loading flashblocker images in "Cached images" mode, commented out. Imho, in Opera 9.5 it not very stable.

Unregistered user Monday, December 1, 2008 9:18:12 PM

Anonymous writes: having SEVERE issues playing ANY flash content, including all You Tube videos. Already have the latest Opera update, as well as the latest Adobe Flash player update. .still no playback. . Can anyone assist??

Unregistered user Monday, December 1, 2008 9:20:34 PM

Anonymous writes: ^^^continued, didn't realize response was not immediate, so if ANYONE can assist with the previous inquiry regarding flash content, please email me at whuishe@gmail.com

rdsu Wednesday, December 3, 2008 12:12:17 PM

I installed the plugin in:

User JavaScript files
C:\Documents and Settings\x\Application Data\Opera\Opera\profile\userjs
User CSS directory
C:\Documents and Settings\x\Application Data\Opera\Opera\profile\styles\user

Unchecked the "Enable Plug-ins", but I don't see the flash icon and the play icon when put the mouse over it...

WinXP Pro SP2,
Opera 9.62.10469,
and latest version of Adobe Player...

A.RuzanovLex1 Wednesday, December 3, 2008 5:21:46 PM

Unchecked the "Enable Plug-ins"


Wrong.

Also, if the path to these folders contains certain symbols ("#"), usercss will not work. It's Opera bug.

rdsu Wednesday, December 3, 2008 5:48:25 PM

Lex1,

Let the "Enable Plug-ins" enabled works, but I have to set the css in "Opera, Tools -> Preferences -> Advanced Tab -> Content -> Style Options".

Should also works if I put it in User CSS directory, right?

Thanks

A.RuzanovLex1 Wednesday, December 3, 2008 6:44:41 PM

Should also works if I put it in User CSS directory


And enable Flash blocker in menu View->Style.

rdsu Wednesday, December 3, 2008 9:27:40 PM

Lex1,

I don't have that option in menu View->Style...

A.RuzanovLex1 Wednesday, December 3, 2008 9:45:54 PM

Browser restart is necessary.
Check path to usercss folder in menu Help->About Opera.

rdsu Thursday, December 4, 2008 10:01:03 AM

Worked,

thanks wink

Unregistered user Friday, December 5, 2008 12:51:33 AM

Anonymous writes: Left clicking on links doesn't work on http://www.wikinvest.com/ with Opera 10.0 Alpha 1 (i386 Linux) when flashblock is enabled.

A.RuzanovLex1 Friday, December 5, 2008 10:36:37 AM

Opera 10.0 Alpha have many bugs: https://bugs.opera.com/wizard/

MT-Wizard Friday, December 5, 2008 2:50:21 PM

> Left clicking on links doesn't work on http://www.wikinvest.com/ with Opera 10.0 Alpha 1

Confirm. If FlashBlocker css is enabled, links on that site are unclickable. On http://overclockers.ru too. Disabling FlashBlocker in View -> Style solves this problem

A.RuzanovLex1 Friday, December 5, 2008 5:45:10 PM

Css property "content" broken for embedded objects in Opera 10. Bug DSK-241053 at bugs.opera.com.

Unregistered user Saturday, December 6, 2008 10:27:38 PM

Anonymous writes: I'm running Opera 9.62 and I followed the directions included but it did not work immediately. To get it to work, I opened Preferences > Advanced > Content > Style Options > Presentation Modes. Under the Author Mode title (Author Mode because my Default Presentation Mode is set to Author Mode), I checked the box for My Style Sheet. Now it works flawlessly! Thanks for the great bit of code :]

A.RuzanovLex1 Sunday, December 7, 2008 1:13:26 PM

Added (test) version flashblocker.zip/for bugged Opera 10/

scatbin Tuesday, December 9, 2008 10:18:34 PM

couldn't get the white lists to work. living in the uk so had to change youtube.com to uk.youtube.com, but to no avail. have a look see, but i'm pretty sure i did it right



// ==UserScript==
// @name Flash Blocker white list.
// @author Lex1
// @description White list for Flash
Blocker.
// @include http://*uk.youtube.com/*
// @include http://video.google.com/*
// @include
http://depositfiles.com/*
// @include http://files.mail.ru/*
// @include http://tnt-tv.ru/*
// @include
http://other.com/*
// ==/UserScript==
(function(){window.navigator.ujs_FlashBlockerWhiteList = true;
function unblock_flash_ujsenabled(d){for (var i=0, di; di=d; i++){
if(getComputedStyle(di,null).content.indexOf('url("';}
};window.addEventListener(opera&&opera.version()>=9&&location.hostname!='video.google.com'?'DOMContentLoaded':'load', function(){unblock_flash_ujsenabled(document.getElementsByTagName('embed'));
unblock_flash_ujsenabled(document.getElementsByTagName('object'));
}, false)})();

Unregistered user Wednesday, December 10, 2008 12:08:46 PM

Anonymous writes: Dosnt work on: https://www.sis.viessmann.com.pl/portal.html

A.RuzanovLex1 Wednesday, December 10, 2008 1:08:33 PM

https://www.sis.viessmann.com.pl/portal.html


Rtfm:

Q: Unblock of flash don't work on secure (https) sites.
A: Set UserJavaScriptonHTTPS.




scatbin
Works even with default options.

scatbin Thursday, December 11, 2008 4:42:22 PM

OK, found the problem! The JS 'YouTube Video Screen' breaks the white list. Would it be possible to make the two compatible? The script is found here:
http://files.myopera.com/larskl/files/youtube_screen.js

A.RuzanovLex1 Friday, December 12, 2008 10:00:54 AM

youtube_screen.js


Replace:
videoarea.firstChild.style = "width: "+VideoWidth+"px; height: "+Math.round(VideoWidth * 385 / 480)+"px; margin-left:-"+Math.round(VideoWidth / 2)+"px;";

on
		var flashStyle = videoarea.firstChild.style;
		flashStyle.width = VideoWidth+'px'; 
		flashStyle.height = Math.round(VideoWidth * 385 / 480)+'px'; 
		flashStyle.marginLeft = -Math.round(VideoWidth / 2)+'px';

scatbin Saturday, December 13, 2008 4:54:56 AM

Brilliant man, you're a life saver!

Unregistered user Sunday, December 14, 2008 3:57:35 AM

Anonymous writes: oes not work for: http://www.tudou.com/playlist/playindex.do?lid=3693074&iid=19055138 When it is loading, it works. When the page has loaded, it does not work. And the web page does not respond anymore to clicking, mouse wheeling and paging. Only the scrollbar works.

A.RuzanovLex1 Monday, December 15, 2008 6:21:25 PM

It looks as page bug, because it strange works and without flashblocker.

Unregistered user Tuesday, December 16, 2008 3:30:52 PM

mihau writes: I did read all the instructions, and the other comments, yet it seems not to work at all in Opera 9.63. Flash works on the sites on the whitelist, but other than that it totally blocks it everywhere else, no text or image to renable it. does anybody else experience this?

A.RuzanovLex1 Tuesday, December 16, 2008 4:03:50 PM

Any variant you use? Images is enabled?

Unregistered user Tuesday, December 16, 2008 4:28:57 PM

mihau writes: first of all thanks for writing this. appreciated. yes, I use the version with images.

Unregistered user Tuesday, December 16, 2008 6:38:24 PM

mihau writes: I know now why it may not have worked. just tried the "show flash size" version and it worked like a charm, except that the images/placeholders were white. so I assume its some issue with the data: urls? now i use my own images I saved to the same dir where the css is, and edited the css itself. works great. http://imagenes.sftcdn.net/es/scrn/24000/24681/4_flash.jpg thanks alot again for the code

A.RuzanovLex1 Tuesday, December 16, 2008 7:45:03 PM

just tried the "show flash size" version and it worked like a charm, except that the images/placeholders were white. so I assume its some issue with the data: urls?


Maybe you have a similar problem: http://my.opera.com/community/forums/topic.dml?id=173395 ?

Unregistered user Tuesday, December 16, 2008 9:36:40 PM

mihau writes: yes, that could be it as I said before it's fixed if you use an image on the harddisk instead. or is there some security issue that requires the base64 stuff to be used instead?

A.RuzanovLex1 Tuesday, December 16, 2008 9:51:20 PM

or is there some security issue


No, all OK.

Unregistered user Wednesday, December 17, 2008 1:43:37 AM

mihau writes: okay great, thanks!

Unregistered user Thursday, December 18, 2008 3:46:47 AM

Zeb Lisik writes: I didn't see any info about installing under vista(much different organizational structure than winxp) so after some searching i found it. works great, I'm no longer prey to those annoying ads. Thanks! If you like please add this to your instilation notes, it will help others. ======================================================================== Installing under Vista using Opera 9.6 1)Unzip. 2)Put FlashBlocker.css in: C:\Users\UserName\AppData\Roaming\Opera\Opera\profile\styles\user 3)Put FlashBlocker.js and FlashBlocker-white-list.js in a newly created and appropriately located folder. For exaple: C:\Users\UserName\AppData\Roaming\Opera\Opera\profile\styles\userjs 4)Point Opera towards the .js files you just copied. Tools->preferences->advanced->content->javascript options->choose/browse to your folder 4)Restart Opera. Enable by selecting view->style->FlashBlocker =======================================================================

Sn3ipen Saturday, December 20, 2008 9:36:59 AM

Thanks for this great JavaScript. Its working perfectly well on most pages but it's not working on Google Analytics. I have to turn it off when i am browsing these sites to see the graphs for my blog.

The only things that shows up is the small play/flash logos but nothing happens when i am pushing the buttons.

I know i can use the whitelist but i have no clue on what to type.

I tried lots of different combinations of google.com/* and similarities but nothing seem to work.

I am using Analytics on a daily basis to check the stats on my website.

A.RuzanovLex1 Saturday, December 20, 2008 9:41:24 AM

«Q: Unblock of flash don't work on secure (https) sites.
A: Set UserJavaScriptonHTTPS.»
?

Unregistered user Friday, December 26, 2008 12:34:00 PM

Anonymous writes: thanks it working teşekkürler

Sn3ipen Friday, December 26, 2008 4:30:02 PM

@Lex1: Thanks allot. It helped:)

But is there any easy way to automaticly dissable all the blocking from the google analytics pages?

EmanueleEngelium Friday, January 2, 2009 8:47:21 PM

What is the difference (in features) from the Flash blocker button? O_o

With that you click it and all Flash elements aren't loaded/viewed ... has your solution something more?

A.RuzanovLex1 Friday, January 2, 2009 9:50:55 PM

Sn3ipen
Use FlashBlocker-white-list.js (it updated).

MartinezZ Tuesday, January 6, 2009 10:15:35 PM

Not functioning on v10 @1219. Is show represent picture but if I click on no flash animation start sad

A.RuzanovLex1 Tuesday, January 6, 2009 11:33:13 PM

rtfm.

MartinezZ Wednesday, January 7, 2009 8:24:06 AM

To Lex1: Previously I'm using all older versions of FlashBlock. But version for v9 makes some pages in v10 "uncontrollable". But FBv10 for Opera v10a makes this sites "controllable", but I cannot play any flash by clicking on picture. JS file (9,8 kB) is in my UserJS folder, CSS (19,3 or 18,7 kB) is in my Style folder and script is activated in View.

I was trying delete all otther UserJSs, but nothing change.

A.RuzanovLex1 Wednesday, January 7, 2009 9:51:03 AM

CSS (19,3 or 18,7 kB) is in my Style folder and script is activated in View.


Not need. Version for Opera 10 uses only UserJS.

MartinezZ Wednesday, January 7, 2009 10:16:22 AM

Ehm... I'm sorry Its working, thank you!

ermi Saturday, January 10, 2009 10:29:09 PM

Does the flash blocker have problems with long videos?

It doesn't work with this one: http://www.youtube.com/watch?v=_x0eyNkNpL0

MelvinMelvin-Garcia Tuesday, January 13, 2009 2:28:28 PM

Ubuntu Linux user here. worked fine!

Need any help, contect my Opera site.

gwarser Sunday, January 18, 2009 11:15:36 AM

On this site: http://www.curio.pl/curio/page/1289
unblock by click not work for video player, but for logo on top work.
Windows, Opera 9.63.

A.RuzanovLex1 Sunday, January 18, 2009 11:57:59 AM

Write a comment

New comments have been disabled for this post.