Skip to content

Instantly share code, notes, and snippets.

@Tiny-Giant
Last active January 13, 2016 05:22
Show Gist options
  • Save Tiny-Giant/80cd2eae7f63523bcf62 to your computer and use it in GitHub Desktop.
Save Tiny-Giant/80cd2eae7f63523bcf62 to your computer and use it in GitHub Desktop.
Returns the old sizing of the sidebar, make sure your adblocker is running.
// ==UserScript==
// @name Old Sidebar width
// @namespace http://github.com/TinyGiant/
// @description Returns the old sizing of the sidebar
// @author @TinyGiant
// @run-at document-start
// @version 1.0.0.5
// @include /^https?:\/\/(?!chat).*?(stackoverflow.com|stackexchange.com|superuser.com|serverfault.com|askubuntu.com|stackapps.com|mathoverflow.net)/.*$/
// ==/UserScript==
(function() {
var css = [
" #hireme {",
" display: none;",
" }",
" #hmenus {",
" right: 0 !important;",
" }",
" .ask-mainbar #excerpt {",
" width: 665px;",
" box-sizing: border-box;",
" }",
" .question-list-layout {",
" right: -230px !important;",
" }",
" #sidebar, .sidebar {",
" width: 220px !important;",
" }",
" .question-summary, #answers, #answers-header, .question, .answer {",
" width: 100% !important;",
" }",
" .contentWrapper {",
" width: auto;",
" }",
" header, #header, #content, .footerwrap, #footer-sites, .topbar-wrapper {",
" margin: 0 auto;",
" width: 970px !important;",
" }",
" header, #header {",
" width: 1000px !important;",
" }",
" .user-page .col-content {",
" width: 700px !important;",
" }",
" .card {",
" max-width: 365px!important;",
" }",
" .card.badges-card .badges .badge1-alternate, .card.badges-card .badges .badge2-alternate, .card.badges-card .badges .badge3-alternate, .card.badges-card .badges .badge-how-to {",
" width: 29% !important;",
" }"
].join('\n');
if (false);
else if ("undefined" != typeof GM_addStyle) GM_addStyle(css);
else if ("undefined" != typeof PRO_addStyle) PRO_addStyle(css);
else if ("undefined" != typeof addStyle) addStyle(css);
else (document.head || document.getElementsByTagName("head")[0]).appendChild(document.createElement("style").appendChild(document.createTextNode(css)).parentNode);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment