NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Foodsharing Betriebs-Seiten-Rearrangement // @namespace http://tampermonkey.net/ // @version 1.1 // @license 0BSD // @description Die Slots neben die Beschreibung schieben, die Breite besser nutzen // @author florisch, foodsharing.de/profile/266487 // @include https://foodsharing.de/?page=fsbetrieb&id=* // @include https://beta.foodsharing.de/?page=fsbetrieb&id=* // @grant none // ==/UserScript== (function() { 'use strict'; var mainContainer = document.querySelector ("#main"); var pure_g = document.querySelector ("#main > div.pure-g"); var leftDiv = document.querySelector ("#left"); var middleDiv = document.querySelector ("div.pure-g > div.pure-u-md-12-24"); var rightDiv = document.querySelector ("#right"); var slotsDiv = document.querySelector ("#right > div.inside > div:last-child"); // Wider main area. Was 1100px mainContainer.style.maxWidth = '1450px'; // Set classes (and column width with that) leftDiv.setAttribute("class", "pure-u-1 pure-u-md-4-24"); middleDiv.setAttribute("class", "pure-u-1 pure-u-md-8-24"); rightDiv.setAttribute("class", "pure-u-1 pure-u-md-8-24"); //-- Move slots up and set col width pure_g.insertBefore (slotsDiv, null); slotsDiv.setAttribute("class", "bootstrap pure-u-1 pure-u-md-4-24"); })();