G2A Many GEOs
SHARE
TWEET

Untitled

a guest Apr 10th, 2020 102 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         4Anime Hard Subs Blocker
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  block hard coded subtitles
  6. // @author       透明水晶#6554
  7. // @match        https://*/*
  8.  
  9. // ==/UserScript==
  10.  
  11. (function() {
  12.     let vid = document.getElementsByTagName("video")[0];
  13.     let canvas = document.createElement("canvas");
  14.     canvas.id = "paintpad";
  15.     canvas.style.position = "absolute";
  16.     canvas.style.top = 0;
  17.     canvas.style.left = 0;
  18.     canvas.style.width = "100%";
  19.     canvas.style.height = "100%";
  20.  
  21.     canvas.styleText = "position: absolute; top: 0; left: 0; width: 100%; height: 100%;";
  22.     vid.parentNode.insertBefore(canvas, vid.nextSibling);
  23.  
  24.  
  25.     let canv = document.getElementById("paintpad");
  26.     let ctx = canv.getContext("2d");
  27.     ctx.fillStyle = "rgb(255,255,255)";
  28.     ctx.fillRect(30,119,240,26);
  29.     canv.addEventListener("click", function(){
  30.     if (vid.paused) vid.play();
  31.     else vid.pause()
  32.  
  33.     });
  34.  
  35.  
  36. })();
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top