您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Simplifica a pagina Rede Canais, removendo elementos de contato, comentarios e outros. Além de adicionar alguns botões para ajudar a encontrar mais filmes
当前为
// ==UserScript== // @name Rede Canais modo simplificado // @namespace http://tampermonkey.net/ // @version 0.3 // @description Simplifica a pagina Rede Canais, removendo elementos de contato, comentarios e outros. Além de adicionar alguns botões para ajudar a encontrar mais filmes // @author Pedro Henrique // @match https://redecanais.* // @match *://redecanais.la/* // @match *://redecanais.zip*/* // @match *://redecanais.dad*/* // @match *://redecanaistv.dad*/* // @icon https://redecanais.la/templates/echo/img/favicon.ico // @grant GM_registerMenuCommand // @license MIT // @run-at document-end // ==/UserScript== (function () { 'use strict'; GM_registerMenuCommand("📚Abrir Mapa do Site📚", () => { window.open("https://redecanais.zip/mapa.html"); }); GM_registerMenuCommand("🎥Abrir Mapa dos filmes🎥", () => { window.open("https://redecanais.zip/mapafilmes.html"); }); var debug = false; // Para meu teste no script, isto apenas impede que o rede canais feche quando eu ativo o console. os caras são brabo na segurança do site. if (debug == true) { const window = unsafeWindow; navigation.addEventListener('navigate', (e) => { let url = e.destination.url; let input = window.prompt("O script impediu que o rede canais saia da pagina, para cancelar digite N", ""); if (input == "N") { e.preventDefault(); } }) window.onbeforeunload = (e)=>{ e.preventDefault(); e.returnValue = ''; return "test"; }; function EvitarRedeCanaisBloquearConsole() { debugger; window.prompt("O script impediu que o rede canais bloqueie o console", document.documentElement.innerHTML); } document.onkeydown = function (e) { if (event.keyCode == 123) { EvitarRedeCanaisBloquearConsole() } if (e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)) { EvitarRedeCanaisBloquearConsole() } if (e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)) { EvitarRedeCanaisBloquearConsole() } if (e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)) { EvitarRedeCanaisBloquearConsole() } window.onbeforeunload = function () { return "teste"; } } GM_registerMenuCommand("Abrir Console", () => { window.open("chrome://inspect"); let d = document.createElement("a"); d.href = "chrome://inspect"; d.click(); }); } // Apaga aquela barra vermelha onde aparece todos contato do Rede Canais document.getElementsByClassName("alert alert-danger")[0].remove() // Apaga o titulo do filme e os botões e aduncio para apps da Rede Canais document.getElementsByClassName("row pm-video-heading")[0].remove() // Apaga aquela barra de comentarios document.getElementsByClassName("col-xs-12 col-sm-12 col-md-4 pm-video-watch-sidebar")[0].remove() // Apaga aquele texto em baixo document.getElementsByClassName("col-xs-12 col-sm-12 col-md-10")[0].remove() // Remove links abaixos document.getElementsByClassName("col-xs-4 col-sm-2 col-md-2")[0].remove() // Adiciona botões let barra = document.getElementById("content-main"); let b3 = document.createElement("button"); b3.setAttribute("class", "btn btn-default"); b3.innerText = "🎥Mapa dos Filmes🎥"; barra.append(b3); barra.insertBefore(b3, barra.firstChild); b3.onclick = () => { window.open("/mapafilmes.html"); }; let b2 = document.createElement("button"); b2.setAttribute("class", "btn btn-default"); b2.innerText = "📚Mapa do Site📚"; barra.append(b2); barra.insertBefore(b2, barra.firstChild); b2.onclick = () => { window.open("/mapa.html"); }; // Botão que redireciona ao url do filme. let b = document.createElement("button"); b.setAttribute("class", "btn btn-default"); b.innerText = "💿Redirecionar ao Url do Filme💿"; barra.append(b); barra.insertBefore(b, barra.firstChild); b.onclick = () => { location.href = document.getElementsByName("Player")[0].src; }; })();