Permalink
Browse files

Adding snippet for change JPG thumbnails to PNG

  • Loading branch information...
1 parent cf5d544 commit 9ba7b38559fc346d5694ae919a0c8e05b4f67555 @grok grok committed Aug 2, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 widgets/change-thumbnails-to-png/script.js
@@ -0,0 +1,5 @@
+/* The API has not publicly exposed this feature yet. */
+/* In order to have the thumbnails with transparent backgrounds they must change from JPG to PNG. */
+jQuery( 'span.vrs-widget-thumbnail img' ).attr( 'src' , function( index , attr ) {
+ return attr.replace( 'jpg' , 'png' );
+});

0 comments on commit 9ba7b38

Please sign in to comment.