Greasy Fork Panel Layout

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==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';
    }
  }

})();