Skip to content

Instantly share code, notes, and snippets.

@ndreas
Last active December 12, 2015 09:39
Show Gist options
  • Save ndreas/4753547 to your computer and use it in GitHub Desktop.
Save ndreas/4753547 to your computer and use it in GitHub Desktop.
Userscript for setting a more pleasant width on forum.xda-developers.com
// ==UserScript==
// @name XDA Developers forum width
// @description Sets a smaller width on forum posts on http://forum.xda-developers.com/
// @namespace http://stdin.se/userscripts/xdawidth
// @author ndreas
// @license The ISC License (http://www.isc.org/software/license)
// @version 1.1
// @include http://forum.xda-developers.com/*
// @history 1.1 added style tweak for paging controls
// @history 1.0 first version
// ==/UserScript==
;(function() {
var posts = document.getElementById("posts");
if (posts) {
posts.style.width = "1024px";
}
var pagingControls = document.getElementsByClassName("threadlistControls_right");
for (i = 0; i < pagingControls.length; i++) {
pagingControls[i].style.float = "none";
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment