Fix Post Right Click

A simple userscript that remove's blocking elements to allow copying the image on Instagram and adds video controls

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Fix Post Right Click
// @namespace    https://github.com/naviamold1
// @version      0.2.1
// @homepage     https://greatest.deepsurf.us/en/scripts/476010-fix-image-copy
// @description  A simple userscript that remove's blocking elements to allow copying the image on Instagram and adds video controls
// @author       Naviamold
// @license      MIT
// @match        *://*.instagram.com/*
// @icon         https://static.cdninstagram.com/rsrc.php/y4/r/QaBlI0OZiks.ico
// @grant        none
// @require      http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
// @require      https://greatest.deepsurf.us/scripts/476008-waitforkeyelements-gist-port/code/waitforkeyelements%20gist%20port+.js
// ==/UserScript==

(function () {
  "use strict";

  waitForKeyElements(
    "._aagw",
    () => {
      document.querySelector("._aagw").remove();
    },
    false
  );
  setInterval(() => {
    document
      .querySelectorAll("div[data-instancekey]")
      .forEach((val) => val.remove());
    document
      .querySelectorAll("video")
      .forEach((val) => val.setAttribute("controls", "true"));
  }, 500);
})();