Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
expand title on drive.google.com for UserScript
// ==UserScript==
// @name GD title expander
// @namespace http://noromanba.flavors.me
// @description expand title on drive.google.com for UserScript
// @include https://drive.google.com/folderview?id=*
// @grant none
// @noframes
// @run-at document-start
// @version 2016.04.18.2
// @homepage https://gist.github.com/noromanba/c5cd8134b95fda87daaa96d64f443531
// @downloadURL https://gist.github.com/noromanba/c5cd8134b95fda87daaa96d64f443531/raw/gd-title-expander.user.js
// @license MIT License http://nrm.mit-license.org/2016
// @author noromanba http://noromanba.flavors.me
// @icon https://upload.wikimedia.org/wikipedia/commons/thumb/1/1b/List_font_awesome.svg/32px-List_font_awesome.svg.png
// @icon64 https://upload.wikimedia.org/wikipedia/commons/thumb/1/1b/List_font_awesome.svg/64px-List_font_awesome.svg.png
// ==/UserScript==
// Icon (PD by Dave Gandy)
// https://commons.wikimedia.org/wiki/File%3AList_font_awesome.svg
// https://github.com/FortAwesome/Font-Awesome
// Devel
// https://gist.github.com/noromanba/c5cd8134b95fda87daaa96d64f443531
(() => {
'use strict';
const addStyle = (() => {
const parent = document.head || document.body || document.documentElement;
const style = document.createElement('style');
style.type = 'text/css';
parent.appendChild(style);
return (css) => {
style.appendChild(document.createTextNode(css + '\n'));
};
})();
// listview
addStyle(`
.flip-list-title-header {
width: 50% !important;
padding-left: initial !important;
}
.flip-entry-info {
width: 50% !important;
}
.flip-entry-title {
display: initial !important;
}
`);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment