Skip to content

Instantly share code, notes, and snippets.

@ts95
Last active February 2, 2021 20:54
Show Gist options
  • Save ts95/0d2b8e3919bf76f0e1fa77a8c972e8a4 to your computer and use it in GitHub Desktop.
Save ts95/0d2b8e3919bf76f0e1fa77a8c972e8a4 to your computer and use it in GitHub Desktop.
A simple script that removes the overlays on Instagram-images so that you can save them by right-clicking on them.
// ==UserScript==
// @name InstagramSave
// @namespace https://instagram-save.tonisucic.com
// @version 1.2
// @description Enables you to save/copy images on Instagram.
// @author Toni S
// @match https://www.instagram.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function removeOverlays() {
document.querySelectorAll('._9AhH0').forEach(elem => elem.remove());
}
removeOverlays();
document.querySelector('body').addEventListener('click', function(e) {
setTimeout(() => removeOverlays(), 1000);
});
})();
@oscargch
Copy link

For it to work today just change '._si7dy' to '._9AhH0'

@ts95
Copy link
Author

ts95 commented Jun 12, 2020

Updated with new ID 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment