SHARE
TWEET

Alternatereds.js

PastebinHTMLboy Sep 22nd, 2019 (edited) 102 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var SHEEP_2048;
  2. (function() {
  3.   'use strict';
  4.   if (SHEEP_2048) {
  5.     SHEEP_2048();
  6.   } else {
  7.     function applyStyles(elem,obj) {
  8.       for (var prop in obj) elem.style[prop]=obj[prop];
  9.     }
  10.     var wrapper=document.createElement("div"),
  11.     frame=document.createElement("iframe");
  12.     frame.src="file:///media/removable/Noot%20Noot/GUDE/gamo3x3.html";
  13.     frame.width=333; // additional 30px to hide scrollbars
  14.     frame.height=600;
  15.     frame.scrolling="no";
  16.     applyStyles(frame,{
  17.       position:'absolute',
  18.       top:'-151.5px',
  19.       left:'-27px',
  20.       border:"none"
  21.     });
  22.     applyStyles(wrapper,{
  23.       position:"fixed",
  24.       zIndex:2147483647,
  25.       display:"block",
  26.       bottom:"10px",
  27.       left:"10px",
  28.       width:"280px",
  29.       height:"280px",
  30.       overflow:"hidden",
  31.       transition:"opacity 0.1s",
  32.       borderRadius:"6px",
  33.       transform:"scale(1)"
  34.     });
  35.     wrapper.appendChild(frame);
  36.     document.body.parentNode.appendChild(wrapper);
  37.     function enter() {wrapper.style.opacity="1";}
  38.     function leave() {wrapper.style.opacity="0";frame.blur();}
  39.     wrapper.addEventListener("mouseenter",enter,false);
  40.     wrapper.addEventListener("mouseleave",leave,false);
  41.     SHEEP_2048=()=>{
  42.       wrapper.removeEventListener("mouseenter",enter,false);
  43.       wrapper.removeEventListener("mouseleave",leave,false);
  44.       wrapper.parentNode.removeChild(wrapper);
  45.       frame=null;
  46.       wrapper=null;
  47.       SHEEP_2048=undefined;
  48.       for (var script of document.querySelectorAll('script[src="https://sheeptester.github.io/javascripts/2048.js"]')) script.parentNode.removeChild(script);
  49.     };
  50.   }
  51. }());
RAW Paste Data
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top