Last active
December 12, 2015 09:39
-
-
Save ndreas/4753547 to your computer and use it in GitHub Desktop.
Userscript for setting a more pleasant width on forum.xda-developers.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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