Code Monkey home page Code Monkey logo

qslimbrowser's Introduction

QSlimBrowser

This is a simple Qt QWebEngineView container that loads a URL from an argument or, if no arguments are given, will just open Google.

Building

git clone https://github.com/JohnCiubuc/QSlimBrowser.git
cd QSlimBrowser
mkdir build && cd build
cmake .. && make

Usage

QSlimBrowser [URL]

Where url is in quotation marks or back escaped (if your shell allows it), examples:

QSlimBrowser "http://google.com"
QSlimBrowser http:\/\/google.com

Advance Usage

QSlimBrowser has the ability to automate actions and to inject CSS into a webpage. This is very useful if you want to auto-login into a webapp and have a userstyle applied to it.

There is a Scripts folder and a Userstyles folder. These folders must be in the same directory as the executable. Following the Building instructions above should copy the folders into the build directory for you automatically. I'll figure out a smarter way to do this in the future


The Scripts folder contains a few automated logins showing text entry and button clicking for various websites. If so desired, the TextField portion of a script can be ignored. This allows for automated button clicking on a specified webpage

The Userstyles folder contains various user.css stylesheets taken from my Userstyles repo. Standard syntax for Userstyles should work, and they will inject on the webpage (singular) as specified on the stylesheet. Userstyles will inject as long as the domain contains the matched domain on the userstyle.

Scriptable Commands

General Syntax:

Command
	Arguments

Each script needs to have a Domain specified with the url in the arguments. Domains are absolute i.e. the script will only execute if the current page url is exactly the one under Domain

Command List

Domain
	URL

TextFieldByID
	ID
	Text_To_Enter

TextFieldBySelector
	Selector
	Text_To_Enter

ButtonByID
	ID_Of_Button_To_Click

ButtonBySelector
	Selector_Of_Button_To_Click

Script Example

Domain
    https://www.amboss.com/us/account/login
TextFieldByID
    signin_username
    john.doe@gmail.com
TextFieldByID
    signin_password
    password123
ButtonBySelector
    input[type="submit"]

Explanation:

On the domain https://www.amboss.com/us/account/login, find the text field by the id of signin_username and type [email protected]. Then find the text field by the id of signin_password and type password123. Finally, search for the first element that matches input[type="submit"] and Click it

More examples can be found in the Scripts folder

Screenshots

github google

qslimbrowser's People

Contributors

johnciubuc avatar

Watchers

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