MetaFilter inline video fishy icon

Replaces the inline video "play" icon with a picture of a triangular fish (for logged-in members)

目前为 2014-05-24 提交的版本。查看 最新版本

作者
rf14
评分
0 0 0
版本
3.0
创建于
2014-05-23
更新于
2014-05-24
大小
3.4 KB
许可证
暂无
适用于

[This script was originally hosted at userscripts.org]

Example without the fishy icon script [this is a mockup, not an actual post]:

Example using the MetaFilter inline video default icon

Example with the fishy icon script in action:

Example of MetaFilter inline video fishy icon

Change log:

  • Version 3.0: 2014-05-23 - Changed script URLs to point to gf.qytechs.cn, since userscripts.org hasn't been stable recently; replaced @namespace with script home page. BTW the profile preference option on MeFi has since been relabeled "Use secure browsing" (from "Use SSL everywhere").
  • Version 2.0: 2013-07-03 - Now works with the new "Use SSL everywhere" user profile preference for logged-in MeFi members. Also added support for automatic script updates, as well as better compatibility with Chrome.
  • Version 1.0: 2012-12-25 - Grand opening.

What this script does:

Users who are (1) logged into MetaFilter and (2) have "YouTube & Vimeo video inline?" enabled in their MeFi Preferences will see a small icon adjacent to a clickable link for a YouTube or Vimeo video -- the icon is a typical media "play" symbol (a triangle pointing right), enclosed in a rectangular box with rounded corners.

This script replaces the default icon with a picture of a triangular fish. It was inspired by a MetaTalk comment from yellowbinder.

Like the fish? Consider donating to help support MetaFilter.

-----

This script works on MeFi, AskMe, MeTa and all other subsites that offer the inline video option.

Browser compatibility: Version 1.1 was tested as working in Firefox 22 and Chrome 27 for Windows. Version 1.0 was tested as working in Firefox 17.0.1 with Greasemonkey 1.4 and 1.5, as well as in Chromium/Chrome 18, for Windows and Linux/Ubuntu. No guarantees that this script will work anywhere else or with other MeFi-related scripts* (e.g. it has not been tested in Opera).

* Known issue: When using the MeFi deleted posts Greasemonkey script, the fishy icon does not appear for deleted post content inserted into front pages or index pages of previous posts. (It does appear on the actual deleted post pages.)

If you'd like to modify the script, please feel free. Disclaimer: I am not a programmer, but if you have suggestions for improving it, I'd be interested in learning about them.

-----

Credits:

The original fish image design was created by Everaldo Coelho and YellowIcon and licensed under the GNU Lesser General Public License (LGPL). The fish image used in this script is a derivation from a vector version by Wikimedia Commons user Mouagip. I rotated/flipped the fish to point in the same direction as the standard media "play" triangle symbol.

-----

More cuteness for your MeFi experience:

If you like this script, you might also want to check out the MetaFilter hedgehog comment pointer and MetaFilter Recent Activity border o' rainbows (other scripts I posted), as well as Rhomboid's MetaFilter unicorn and narwhal buttons and laser kitty.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址