Greasy Fork is available in English.

Pinterest Copyrighted Audio Force Unmute

Forces audio to be unmuted and sets volume to max on pinterest videos that are blocked in specific regions.

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
// ==UserScript==
// @name         Pinterest Copyrighted Audio Force Unmute
// @namespace    http://tampermonkey.net/
// @version      1.4
// @license      MIT
// @description  Forces audio to be unmuted and sets volume to max on pinterest videos that are blocked in specific regions.
// @author       Bonkeyzz
// @match     https://*.pinterest.com/*
// @match     https://*.pinterest.at/*
// @match     https://*.pinterest.ca/*
// @match     https://*.pinterest.ch/*
// @match     https://*.pinterest.cl/*
// @match     https://*.pinterest.co.kr/*
// @match     https://*.pinterest.co.uk/*
// @match     https://*.pinterest.com.au/*
// @match     https://*.pinterest.com.mx/*
// @match     https://*.pinterest.de/*
// @match     https://*.pinterest.dk/*
// @match     https://*.pinterest.es/*
// @match     https://*.pinterest.fr/*
// @match     https://*.pinterest.ie/*
// @match     https://*.pinterest.info/*
// @match     https://*.pinterest.it/*
// @match     https://*.pinterest.jp/*
// @match     https://*.pinterest.nz/*
// @match     https://*.pinterest.ph/*
// @match     https://*.pinterest.pt/*
// @match     https://*.pinterest.se/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Function to set volume and unmute videos
    function setVideoProperties(video) {
        if(!video.muted || video.volume !== 0) return;
        video.volume = 1; // Set volume to maximum
        video.muted = false; // Keep it unmuted
    }

    // Function to continuously update video properties
    function updateVideoProperties() {
        // Find the elements containing the class 'hwa'
        const videoList = document.querySelectorAll('.hwa'); // Class 'hwa' is part of the pinterest video player

        // Update audio properties of each element
        videoList.forEach(setVideoProperties);

        // Repeat the process every second
        setTimeout(updateVideoProperties, 1000);
    }

    // Start updating video properties
    updateVideoProperties();
})();