NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Auto-open comments in Instagram // @namespace http://itsastickup.com // @version 0.2 // @description Automatically click the expand comment buttons as they appear // @author itsastickup // @license MIT // @copyright 2020, Mr Public Domain // @match https://www.instagram.com/* // @match https://instagram.com/* // @grant GM_log // @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js#sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo= // ==/UserScript== (function () { 'use strict'; function debug(s, label) { label = label || ''; if (label) { label = label + ': '; } console.debug('auto open comments in Instagram 2020 itsastickup - ' + label + s); return s; } function debugb(s, label) { label = label || ''; if (label) { label = '<div>' + label + ': </div>'; } $('body').prepend(label + '<pre>' + s + '</pre>'); } debug('start'); var sent = false; var span; $(document).ready(function () { setInterval(function () { if (sent == false) { span = $("span[aria-label='Load more comments']"); if (span) { $(span).click(); } } }, 250); }); })();