Recommend this

Removes the godawful 'recommendations' youtube gives you on the front page.

当前为 2015-11-23 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Recommend this
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Removes the godawful 'recommendations' youtube gives you on the front page.
  6. // @author You
  7. // @match https://www.youtube.com/
  8. // @grant none
  9. // @require http://code.jquery.com/jquery-latest.js
  10. // ==/UserScript==
  11. /* jshint -W097 */
  12. 'use strict';
  13. //Remove the big recommended div
  14. $('.feed-item-container').first().hide();
  15.  
  16. var blurbs = [
  17. 'Recommended channel for you',
  18. 'Want all the latest updates? Subscribe now.',
  19. 'Recommended videos for you'
  20. ];
  21. var churn = setInterval(function() {
  22. blurbs.forEach(function(blurb) {
  23. var selector = 'li:contains("'+blurb+'")';
  24. var $el = $(selector);
  25. $(selector).hide();
  26. });
  27. }, 500);