Skip to content

Instantly share code, notes, and snippets.

@pdudits
Last active January 13, 2019 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdudits/ecef73e1711ac1d002b6b90d9d3a39ac to your computer and use it in GitHub Desktop.
Save pdudits/ecef73e1711ac1d002b6b90d9d3a39ac to your computer and use it in GitHub Desktop.
horizontal twitter
// ==UserScript==
// @name Twitter in columns
// @namespace http://tampermonkey.net/
// @version 0.1
// @description What if we just used the horizontal space in timeline? (I didn't adapt other elements, you scroll past them anyway)
// @author Patrik dudits
// @match https://twitter.com/
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Your code here...
let style=`
#timeline {
width: 100%;
}
#page-container {
width: 90%;
}
body {
background-color: #f8ffff;
}
#timeline .stream-item[data-item-type="tweet"] {
display: inline-block;
width: 32.5%;
vertical-align: top;
margin-left: 0.55%;
margin-bottom: 0.6em;
background: transparent;
border-top: 3px solid #116;
}`;
let styleEl = document.createElement('style');
styleEl.textContent = style;
document.head.appendChild(styleEl);
})();
#timeline {
width: 100%;
}
#page-container {
width: 90%;
}
body {
background-color: #f8ffff;
}
#timeline .stream-item[data-item-type="tweet"] {
display: inline-block;
width: 32.5%;
vertical-align: top;
margin-left: 0.55%;
margin-bottom: 0.6em;
background: transparent;
border-top: 3px solid #116;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment