Returns the ability to view videos on krasview (from sites zloekino and hlamer)
// ==UserScript==// @name Krasview Unlock// @name:ru Krasview Unlock// @namespace krasviewUnlock// @version 0.2// @description Returns the ability to view videos on krasview (from sites zloekino and hlamer)// @description:ru Возвращает возможность просмотра видео на krasview (с сайтов zloekino и hlamer)// @author Blank// @match *://zloekino.com/video/*// @match *://hlamer.ru/video/*// @run-at document-end// @grant none// @noframes// ==/UserScript==(function main() {'use strict';const log = (...args) => console.log(`${GM.info.script.name}:`, ...args);log('start');if (document.querySelector('video') === null) {const vfc = document.querySelector('#video-flash-container > div');if (vfc !== null&& vfc.querySelector('h3') !== null&& vfc.querySelector('h3').textContent.includes('ограничительные меры')) {const ogVideoIframe = document.querySelector('head > meta[property = "og:video:iframe"]').content.slice(0, -5);vfc.innerHTML = `<br><h3>Похоже сайт перегружен. Смотреть на красвью <a href="${ogVideoIframe}" class="js">тут</a>.`;}}}());