Giter Site home page Giter Site logo

selplacei / lbs-viewport-size-box Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 17 KB

Userscript that adds a small box in the bottom right to see the current size of the viewport

License: Do What The F*ck You Want To Public License

JavaScript 100.00%

lbs-viewport-size-box's Introduction

lbs-viewport-size-box

Screenshot of the small black box in the bottom right

Installation

Install Violentmonkey. Go to the dashboard (click on the icon in your toolbar, then the gear), click the + at the top left, choose "Install from URL", and paste the following: https://raw.githubusercontent.com/selplacei/lbs-viewport-size-box/master/ViewportSizeBox.js

Of course, this can also work with other userscript extensions such as Tampermonkey.

Changing behavior

Go to the dashboard and click on the </> icon (or edit the script in whatever way your extension allows you to).

  • To change the websites on which this works: edit the @match attribute (might not work depending on your extension)
  • To change the position: replace "right" with "left" or "bottom" with "top" to change alignment. Replace "0px" with "50%" to center
  • To change the colors: get the hex color code (such as #123ABC) and replace the values next to "background" and/or "color" (the latter is for text)
  • To change the size: on the same line as "whview.style", paste the following in front of the last double quote, changing the number to whatever you want: font-size: 12;
  • If you want to do more, you probably know/can figure out a bit of CSS. This script is extremely simple so it should be no trouble.

lbs-viewport-size-box's People

Contributors

selplacei avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.