Guest User

Spygasm Tool

a guest
May 1st, 2019
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         spygasm tools
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  bypass spygasm fullscreen restriction
  6. // @author       Anon from 2ch
  7. // @include     httpS://*ru.spygasm.com*
  8. // @grant        none
  9. // ==/UserScript==
  10.  
  11.  
  12. var bypass_fullscreen = setInterval(function() {
  13.     var fl_button = document.getElementsByClassName('video_button button_fullscreen').item(0);
  14.     if (fl_button != null) {
  15.         fl_button._listeners.click = function f(e) {
  16.             document.getElementsByTagName('video').item(0).requestFullscreen();
  17.         };
  18.         clearInterval(bypass_fullscreen);
  19.     }
  20. }, 100);
Advertisement
Add Comment
Please, Sign In to add comment