Giter Site home page Giter Site logo

logiclrd / facebookexpandall Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hemiola314/expand-all

1.0 0.0 0.0 62 KB

Expand All Facebook Responses

Home Page: http://com.hemiola.com/2015/08/29/expand-all/

License: MIT License

JavaScript 96.73% Makefile 3.27%

facebookexpandall's Introduction

FacebookExpandAll

Fork of Jens Farley's Expand All bookmarklet for modernization & resumed development

Installing

To install this bookmarklet, create a bookmark (you can name it whatever you want, I use "Expand All (Facebook)"), and then paste the entire contents of the ExpandAll-bookmarklet.js build output file into its URL field.

You can also use ExpandAll-bookmarklet-debug.js, which preserves the names of symbols and thus can sometimes make debugging easier.

Using

In an open Facebook tab showing the comment thread in question, click on the bookmark created during installation. This should temporarily pop up a small blue overlay that provides a running status update as to what it is doing. When it has finished, the overlay disappears after a short delay.

Updating

To install a newer version of the bookmarklet, you can simply delete and recreate the bookmark, but you can also edit the bookmark and copy/paste the bookmarklet URL from the build output into the "URL" field of the bookmark.

Building

The source code in the repository is fully-expanded for ease of reading & manipulation, but this would result in an exceedingly large bookmarklet URL. As such, the project is supplied with a Makefile which uses uglify-js to minify & compress the code as much as possible, turning it into a single line in the process.

This Makefile is designed for use on UNIX-type systems. I have been using it on an Ubuntu 24.04 installation.

Prerequisites

The build process defined here requires the following build environment tools:

  • make: As provided by apt install make on Ubuntu 24.04 LTS (automatically installed).
  • uglifyjs: As provided by apt install uglifyjs on Ubuntu 24.04 LTS.
  • xclip: As provided by apt install xclip on Ubuntu 24.04 LTS.

Makefile Targets

  1. Basic build:

    make
    

    This produces a file ExpandAll-bookmarklet.js in the current directory.

  2. Debug build (skips minification, so that symbols have their full names -- resulting code is is about 40% larger):

    make debug
    

    This produces a file ExpandAll-bookmarklet-debug.js in the current directory.

  3. Send to clipboard

    make clipboard
    make debug-clipboard
    

    This runs the standard build process, and then automatically sends the file contents to the X clipboard.

  4. Clean previous build output

    make clean
    

Contributing

Feel free to fork this repository and make pull requests. Please explain your changes, and also please test them and provide test instructions in the PR if you want them to be considered.

Your changes will be subsumed into the MIT license for the project.

facebookexpandall's People

Contributors

hemiola314 avatar logiclrd avatar

Stargazers

 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.