Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name New Userscript
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match https://www.kinopoisk.ru/
- // ==/UserScript==
- (function() {
- 'use strict';
- var head, style;
- head = document.getElementsByTagName('head')[0];
- if (!head) { return; }
- style = document.createElement('style');
- style.type = 'text/css';
- style.innerHTML = 'html {background: #4e4e4e !important;}';
- head.appendChild(style);
- var divs = document.getElementsByTagName('div');
- for (var i = 0; i < divs.length; i++)
- {
- if (divs[i].style !== undefined)
- if (divs[i].style.position == "absolute")
- {
- divs[i].childNodes[0].removeAttribute('href');
- break;
- }
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment