Auto unmute Stories

Automaticly unmute stories / turn story audio on

目前为 2022-03-28 提交的版本。查看 最新版本

// ==UserScript==
// @name        Auto unmute Stories
// @namespace   Violentmonkey Scripts
  // @match       https://www.instagram.com/*
// @grant       none
// @version     1.1
// @author      jside
// @description Automaticly unmute stories / turn story audio on
// ==/UserScript==



var mainLoop = setInterval(()=>{
  try {
    videoElement = document.getElementsByClassName('y-yJ5  OFkrO ')[0]
    audioButton = document.getElementsByClassName("wpO6b  ")[1];
    
    if (videoElement.muted == true && audioButton.jside_done != true) {
      audioButton.click();
      videoElement.muted = false; //this does not effect anything but stops audioButton.click(); spamming on stories without audio
    }
    else{
      audioButton.jside_done = true; // to alow muting again
    }
  }
  catch(err) {
  // lets not spam the console
  }
},1000);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址