Kickjkee

Untitled

Jun 8th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         New Userscript
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  try to take over the world!
  6. // @author       You
  7. // @match        https://www.kinopoisk.ru/
  8. // ==/UserScript==
  9.  
  10. (function() {
  11.     'use strict';
  12.     var head, style;
  13.     head = document.getElementsByTagName('head')[0];
  14.     if (!head) { return; }
  15.     style = document.createElement('style');
  16.     style.type = 'text/css';
  17.     style.innerHTML = 'html {background: #4e4e4e !important;}';
  18.     head.appendChild(style);
  19.     var divs = document.getElementsByTagName('div');
  20.     for (var i = 0; i < divs.length; i++)
  21.     {
  22.         if (divs[i].style !== undefined)
  23.             if (divs[i].style.position == "absolute")
  24.             {
  25.                 divs[i].childNodes[0].removeAttribute('href');
  26.                 break;
  27.             }
  28.     }
  29. })();
Advertisement
Add Comment
Please, Sign In to add comment