Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Instagram Filter Video Only
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author adw0rd
- // @include https://www.instagram.com/*/
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- setInterval(() => {
- document.querySelectorAll('a[href*="/p/"]').forEach(n => {
- if (!n.querySelector('span[aria-label="Video"]')) {
- n.style.display = 'none';
- }
- });
- }, 50);
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement