Mega.nz Dark Reader Grid

Fixes the grid that is produced by dark reader extension

  1. // ==UserScript==
  2. // @name Mega.nz Dark Reader Grid
  3. // @namespace https://greasyfork.org/en/users/689482-quin15
  4. // @version 0.1
  5. // @description Fixes the grid that is produced by dark reader extension
  6. // @author Quin15
  7. // @match https://mega.nz/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. var styles = `.files-grid-view.fm .grid-scrolling-table, .files-grid-view.fm .grid-table, .files-grid-view.fm .grid-scrolling-table .jspPane, .transfer-scrolling-table, .transfer-scrolling-table .jspPane {
  12. background-image: url("data:image/svg+xml,%3Csvg version='1.1' id='Слой_1' xmlns:sketch='http://www.bohemiancoding.com/sketch/ns' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='1px' height='48px' viewBox='-305 373 1 48' enable-background='new -305 373 1 48' xml:space='preserve'%3E%3Ctitle%3EUntitled%3C/title%3E%3Cdesc%3ECreated with Sketch.%3C/desc%3E%3Cpath id='Fill-50' sketch:type='MSShapeGroup' fill='%23181a1b' enable-background='new ' d='M-305,397h1v24h-1V397z'/%3E%3Cpath id='Fill-50_1_' sketch:type='MSShapeGroup' fill='%23212121' d='M-305,373h1v24h-1V373z'/%3E%3C/svg%3E") !important;
  13. }`
  14. var styleSheet = document.createElement("style");
  15. styleSheet.type = "text/css";
  16. styleSheet.innerText = styles;
  17. document.head.appendChild(styleSheet);