Greasy Fork

Mail.ru: WE NO NEED AUTOPLAY

Tries to disable autoplay feature for video on mail.ru.

目前为 2015-01-09 提交的版本。查看 最新版本

// ==UserScript==
// @name        Mail.ru: WE NO NEED AUTOPLAY
// @namespace   lainscripts_mailru_stop_autoplay
// @include     *.mail.ru/video/*
// @version     1.2
// @grant       none
// @description Tries to disable autoplay feature for video on mail.ru.
// ==/UserScript==
var frames = document.querySelectorAll('iframe[src*="autoplay=1"]'),
i = frames.length;
while (i--) frames[i].src = frames[i].src.replace('?autoplay=1&', '?').replace('&autoplay=1&', '&').replace('?autoplay=1', '');