GithubHelp home page GithubHelp logo

element-f's Introduction

Element-F

Element fullscreen

This userscript allows you to full screen any element on the page with a click! Focus on the main content of an article, fullscreen gifs or videos even if they don't have a fullscreen option, zoom in on pictures, etc...

Steps

  1. Press shift-ctrl-f to toggle element selection mode on. The cursor will appear as crosshairs, and the target element will have a slight box-shadow around it
  2. Once you've got the element you want selected, just click!

Customization

You can easily customize the keypress, the style applied to focused elements, and the style applied to the fullscreen element

Edit the lines in the following sections to change those options

Selection Mode Keypress

var toggleElementSelectionKey = "F";
var toggleElementSelectionAlt = false;
var toggleElementSelectionCtrl = true;

Target Element Style

var focusedStyle = `box-shadow: 0 3px 6px rgba(0,0,0,0.16),
                                0 3px 6px rgba(0,0,0,0.23),
                                0 3px 6px rgba(255,255,255,0.16),
                                0 3px 6px rgba(255,255,255,0.23) !important;`;

Fullscreen Element Style

var fullScreenStyle = "padding: 1em !important;";

Error reporting

I make no promises about prompt replies or maintenance, but if you run into an issue, please follow these steps, and I'll try to look into it:

  1. Set DEBUG (immediately under the metadata block) to true: var DEBUG = true;
  2. Launch your browser's javascript console (see this page for help doing so)
  3. Repeat the steps that caused the issue
  4. Take a screenshot of the console with the Element-F debug messages
  5. Send me an email (see @author) with the subject "Element-F Issue" and the screenshots attached

TODO

  • Update configuration settings to use GM_config
  • Create Chrome plugin
  • Create Firefox plugin

element-f's People

Contributors

shitchell 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.