Last active
February 2, 2021 20:54
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated with new ID 👍