// ==UserScript== // @name Netflix saw it button // @author TheGeekProfessor // @version 1.0 // @namespace tgp_netflix // @description Fix netflix thumbnails so you can mark them as watched // @include https://www.netflix.com/* // @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js // @downloadURL https://update.greasyfork.icu/scripts/411397/Netflix%20saw%20it%20button.user.js // @updateURL https://update.greasyfork.icu/scripts/411397/Netflix%20saw%20it%20button.meta.js // ==/UserScript== // license Creative Commons Attribution License $(document).ready(function() { $('[data-ui-tracking-context]').each(function(){ // It's query string that's actually JSON that's actually an array id= JSON.parse(decodeURI($(this).data('ui-tracking-context'))); id = id.video_id; if(localStorage.getItem(id)) $(this).closest('.title-card-container').addClass('g_watched'); }); $('[data-tracking-uuid]').closest('.title-card-container').append('