My favorites | Sign in
Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 9: Flashblock
4 people starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  maglion...@gmail.com
Project-Vimperator
Type-Plugin
Priority-High


Sign in to add a comment
 
Reported by maglion...@gmail.com, Oct 05, 2009
Originally reported by maglione.k, on 2008-10-27 18:15:48:

Blocks flash animations until they're clicked. Not Flashblock integration, but the actual functionality.

{{{
:se fbw[hitelist]  Whitelist of sites allowed to play flash animations
:se f[lash]b[lock] Enable or disable blocking of flash animations

:flashplay   Play all animations on the current page
:flashstop   Stop all animations on the current page

<Leader>fbwhitelist   Add the current site to the whitelist
<Leader>fbWhitelist   Toggle the current site in the whitelist
<Leader>fbtoggle      Toggle playing of animations on the current page
}}}

Flash animations are started and stopped as appropriate when the whitelist is modified or when blocking is toggled on or off.

I use the following mappings:
{{{
:map <C-w> <Leader>fbwhitelist
:map <C-W> <Leader>fbWhitelist
:map <A-p> <Leader>fbtoggle
}}}
Comment 3 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by maxauthority, on 2008-10-28 03:18:14:

Needs a CVS version of 2008/10/28 or newer.
Comment 5 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by 31d1, on 2009-03-31 09:08:08:

Note that to set fbwhitelist in vimperatorrc, you must use loadplugins first, as normally they are not loaded until after vimperatorrc is parsed.

{{{ 
loadplugins
set fbw=www.google.com
}}} 

Comment 6 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by markk, on 2009-04-03 04:13:17:

A couple of questions/comments about flashblock.

1. The "w" and "W" mappings conflict with vimperator's defaults (:winopen).

2. Why is the "<A-p>" mapping not simply included in the plugin? This would seem to be the most used.

3. Where is the whitelist stored? In the ~/.vimperator/info/default directory somewhere?

BTW, I love vimperator! Thanks.
Comment 7 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by maxauthority, on 2009-04-03 04:53:53:

Replying to [comment:7 markk]:
> 1. The "w" and "W" mappings conflict with vimperator's defaults (:winopen).

Those were only introduced very recently, long time after this plugin was released.
Look at the reply to 2., why i don't think adding some shortcuts by default makes sense ;)

> 2. Why is the "<A-p>" mapping not simply included in the plugin? This would seem to be the most used.

I don't think adding any mappings apart from <leader>foo which can be remapped is a bad idea. It just calls for clashes with other plugins. But yeah, functionality wise, A-p makes lots of sense.

> 3. Where is the whitelist stored? In the ~/.vimperator/info/default directory somewhere?

manually in your .vimperatorrc file with :set fbw=... but you need to call :loadplugins first because the fbw option does not exist until the plugin is loaded.
Comment 8 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by markk, on 2009-04-03 05:05:46:

Replying to [comment:8 maxauthority]:

Re 1 & 2, yes, that's what I thought. 

> > 3. Where is the whitelist stored? In the ~/.vimperator/info/default directory somewhere?
> 
> manually in your .vimperatorrc file with :set fbw=... but you need to call :loadplugins
> first because the fbw option does not exist until the plugin is loaded.

OK. So the "w/W" mappings would be useful only for the current session anyway? Perhaps another reason to remove them...

Cheers.
Comment 9 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by markk, on 2009-06-19 04:31:41:

This plugin is now incorrectly sizing flash at youtube. With standard flashblock there is no problem, but with this script the video sizes to just 200px high. 
Comment 10 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by markk, on 2009-06-19 04:33:45:

(That of course shouldn't have been chaged to Muttator...)
Comment 11 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by maglione.k, on 2009-06-28 16:23:41:

== Version .9 ==
* Fixed vertical sizing issues on certain sites.
* Fixed sizing glitch on {{{:flashstop}}}
Comment 12 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by maglione.k, on 2009-06-28 16:24:34:

P.S. Sorry, I thought ticket owners were automatically CCd on comments.
Comment 13 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by maglione.k, on 2009-07-08 14:12:13:

=== Version 0.10 ===
* Properly fixed vertical sizing issues on \YouTube.
Comment 14 by maglion...@gmail.com, Oct 15, 2009
New attachments:
  flashblock.js – Flashblock v.10 (maglione.k – 2009-07-08 14:11:12)
flashblock.js
21.8 KB   View   Download
Comment 15 by maglion...@gmail.com, Oct 31, 2009
Version 1.0: A few improvements. Added documentation.
flashblock.js
24.4 KB   View   Download
Comment 16 by stepnem, Jan 27, 2010
Changeset a8cfc6bdd72f broke the :flashtoggle command by moving the evaluateXPath
function from buffer.js to util.js.
Updated version attached.
flashblock.js
24.4 KB   View   Download
Comment 17 by spam.ckuf, Sep 03 (5 days ago)
Hi
I can't :set noflashblock. vimperator 2.3,1
Comment 18 by maglion...@gmail.com, Sep 03 (5 days ago)
Sorry, this version is hopelessly out of date. I'll release new versions of most of my plugins when my new site's up, but I'm not sure how many of them will be compatible with the current release of Vimperator. At any rate, it should do to place the following after just after the word return in the reload function:

    !isarray(values) ? values :
Comment 19 by stubenschrott, Sep 04 (4 days ago)
Oh, is there any chance to know the name of your upcoming site? Curious what you have been doing in the last year(s).
Comment 20 by maglion...@gmail.com, Yesterday (27 hours ago)
When it's finished.
Sign in to add a comment

Powered by Google Project Hosting