Greasy Fork Panel Layout

Moves the control panel to the right of the scripts listing as its own list group and removes ad

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name        Greasy Fork Panel Layout
// @namespace   https://github.com/chriskim06/userscripts
// @description Moves the control panel to the right of the scripts listing as its own list group and removes ad
// @match       https://greasyfork.org/en/users/*
// @version     1.0.3
// ==/UserScript==

(function() {

  var section = document.querySelector('#control-panel');
  var panel = document.querySelector('#user-control-panel');
  var groups = document.querySelector('#script-list-option-groups');
  if (section !== null && panel !== null && groups !== null) {
    var div = document.createElement('div');
    div.className = 'list-option-group';
    div.innerHTML = 'Control Panel:';
    div.appendChild(panel);
    section.parentNode.removeChild(section);
    groups.insertBefore(div, groups.firstChild);
  }

  var ads = document.querySelectorAll('.ad');
  if (ads.length) {
    for (var i = 0; i < ads.length; i++) {
      ads[i].style.display = 'none';
    }
  }

})();