Greasy Fork is available in English.

Tumblr only videos

Will hide anything that is not a video on Tumblr Dashboard

  1. // ==UserScript==
  2. // @name Tumblr only videos
  3. // @descriotion Will hide anything that is not a video on Tumblr Dashboard
  4. // @namespace maoistscripter
  5. // @version 1.1
  6. // @grant none
  7. // @include https://www.tumblr.com/dashboard
  8. // @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min.js
  9. // @description Will hide anything that is not a video on Tumblr Dashboard
  10. // ==/UserScript==
  11. $(function()
  12. {
  13.  
  14. var hide = ['conversation', 'photo', 'photoset', 'regular'];
  15.  
  16. $('#posts').bind("DOMSubtreeModified", function()
  17. {
  18. $( "#posts li div" ).each(function( index, element ) {
  19.  
  20. if (jQuery.inArray($(this).attr('data-type'), hide) !== -1)
  21. {
  22. $(this).remove();
  23. }
  24.  
  25. });
  26. });
  27. // Tumblr.AutoPaginator.start();
  28. });