+ Reply to Thread
Results 1 to 7 of 7

Thread: Quake Live Windowed Mode Background Color changer and white box remover (GM script)

  1. #1
    Senior Member kryty will become famous soon enough kryty's Avatar
    Join Date
    Aug 2010
    Location
    Finland
    Posts
    116

    Wink Quake Live Windowed Mode Background Color changer and white box remover (GM script)

    Current version: 2.0.2
    Userscripts page: http://userscripts.org/scripts/show/100275
    Direct link to script: http://userscripts.org/scripts/source/100275.user.js
    Original thread: http://www.quakelive.com/forum/showt...l=1#post118010

    To change the color, you need to edit the script. You need to change the var color to the color you'd like to use, for example:
    var color = "black";

    If you would like to use a background image:
    var color = "url(yourbackgroundimageurl)";

    If you want to use other css styles, add them to var othercss.

    New functionality
    I got a request to make a script that changes the Quake Live view size in windowed mode in order to remove the white box that appears under it on certain resolutions.

    If you get a white box under your windowed mode area, edit var height and var width so that height = your inbrowsermode height and width = your inbrowsermode width. If you don't know them, check your \r_inbrowsermode and check the numbers from \modelist.

    You can also change the background color behind the windowed mode by changing viewportcolor and viewportmorecss.

    How to edit
    To edit the script in firefox or prism, right click the monkey head, choose manage user scripts, choose the script you want to edit and click edit. In Firefox 4, right click the script and choose edit.

    To edit it in chrome, you need tampermonkey or similiar plugin. Right click the tampermonkey icon, go to options and edit the script.

    You also can edit the script like this: download it to your computer, edit it and then install the edited script.

    Installing
    First you need to be able to use userscripts.

    Firefox:
    Scriptish (recommended) https://addons.mozilla.org/en-US/fir...don/scriptish/
    Greasemonkey: https://addons.mozilla.org/en-US/fir.../greasemonkey/

    Prism:
    KETNAR has a pretty good guide on how to install greasemonkey to Prism.
    http://www.quakelive.com/forum/showt...-(late)-xmass.

    Internet Explorer:
    It is said that sometimes greasemonkey scripts wont work in IE plugin Trixie. I haven't tried it but if you'd like to try, here's the link.
    http://www.bhelpuri.net/Trixie/

    Chrome:
    For Chrome no extensions are needed. Userscripts work without any (thanks to fraggedICE for letting me know), but there is atleast one extension that provides some useful features like offering an easy way to edit the scripts and more compatibility with greasemonkey api.
    https://chrome.google.com/webstore/d...jmpbldmpobfkfo

    After installing the plugin, install the script. For Firefox and Chrome, just click the Install button. To install the script in prism, right click the monkey head on the right bottom corner, choose "Download User Script..." and copy paste this:
    http://userscripts.org/scripts/source/100275.user.js

    If you find any bugs, let me know.

    Changelog:
    Version 2.0.2
    - Removed moving the chat area // I'll look into it more once I get to reinstall some OS
    Version 2.0.1
    - Added moving the chat area // I think this version made QL site unusable for the user
    Version 2.0.0
    - White box under game fix
    Version 1.0.0
    - First version
    Last edited by kryty; 08-31-2011 at 12:42 AM.
    My greasemonkey scripts
    [ Linkify Quake Live chat links ][ Chat in Quake Live Welcome screen ][ All Quake Live chat messages to left ]
    [
    Quake Live Custom map launcher ][ Windowed mode background color changer and white box remover ]

    [If you approve my efforts in the message above, +rep me : ) (the star/badge on lower left corner of the message)]

  2. #2
    Senior Member Lam has a spectacular aura about Lam has a spectacular aura about Lam has a spectacular aura about Lam's Avatar
    Join Date
    Aug 2010
    Posts
    3,763
    You only resize the viewport. Sponge's code does more:
    Code:
    $('#qlv_game_mode_viewport').css({'width': w+'px', 'height': h+'px'});
    $('div.game_wrapper').css({'width': (w+334)+'px', 'height': (h+334)+'px'});
    IIUC, the second line is important to resize chat to be aligned with the game window.

    Feature suggestion: set w/h based on the mode.
    Code:
      var d = quakelive.cvars.Get("r_inBrowserMode");
      if (d.latched) {
        if (typeof quakelive.cvars.screenModes[d.value] != "undefined") {
          w = quakelive.cvars.screenModes[d.value][0];
          h = quakelive.cvars.screenModes[d.value][1]
        } else {
          w = 800;
          h = 600
        }
    Last edited by Lam; 05-20-2011 at 07:00 AM.

  3. #3
    Senior Member kryty will become famous soon enough kryty's Avatar
    Join Date
    Aug 2010
    Location
    Finland
    Posts
    116
    I was thinking.. I could perhaps make the viewport use absolute position at 0,0 and people could use fullscreen in browser and their own screen resolution or change their screen resolution so that it is the same as ql resolution.

    Fullscreen mode without fullscreen. I could move everything else (links & stuff from above the viewport & chat) outside the screen, so that they still could be usable.


    I would not use that, so do you think anyone would?
    My greasemonkey scripts
    [ Linkify Quake Live chat links ][ Chat in Quake Live Welcome screen ][ All Quake Live chat messages to left ]
    [
    Quake Live Custom map launcher ][ Windowed mode background color changer and white box remover ]

    [If you approve my efforts in the message above, +rep me : ) (the star/badge on lower left corner of the message)]

  4. #4
    Senior Member jimday is on a distinguished road
    Join Date
    Aug 2010
    Location
    in hell having a beer with Doom
    Posts
    498
    some screenshots maybe, before I'm going to install? would like to see what we're dealing here.
    Searching for a female Orbb species to conjugate with.
    Where the sanest place is behind the trigger

  5. #5
    *FLANKSGIVING
    Guest
    I was thinking.. I could perhaps make the viewport use absolute position at 0,0 and people could use fullscreen in browser and their own screen resolution or change their screen resolution so that it is the same as ql resolution.

    Fullscreen mode without fullscreen. I could move everything else (links & stuff from above the viewport & chat) outside the screen, so that they still could be usable.


    I would not use that, so do you think anyone would?
    I would. Being able to adjust the position would be great and a lot easier to manage. Fullscreen without fullscreen would be great for people using programs like xsplit to broadcast their game since you can't use it and play fullscreen. Right now I have to use your script, then fullscreen my browser, and scroll over using the scrollbars so that it takes up the majority of my screen.

    The only thing bad about playing in browser mode is if you move your mouse and click too fast (rocket jumping or random flick shooting, it seems to click out of the game and in the browser window. Not your fault, just sucks
    Last edited by FLANKSGIVING; 06-22-2011 at 06:55 AM.

  6. #6
    Junior Member o0_adidas_0o is on a distinguished road
    Join Date
    Oct 2010
    Posts
    8
    Pictureeees please!!!!!!! To see if it worth the try... THX

  7. #7
    Senior Member Lam has a spectacular aura about Lam has a spectacular aura about Lam has a spectacular aura about Lam's Avatar
    Join Date
    Aug 2010
    Posts
    3,763
    Quote Originally Posted by o0_adidas_0o View Post
    Pictureeees please!!!!!!! To see if it worth the try... THX
    Hey, I made my ideas from May into a much more advanced version (IMHO), announced HERE, that thread even has pictures!

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts