Giter Site home page Giter Site logo

gemini.filter.dpi's Introduction

This is a Gemini (https://gemini.circumlunar.space/) plugin for Dillo.
Please refer to the Dillo documentation on how to install a plugin and
bind it to an URI scheme. In short, I have this:

	$ tail -n 1 ~/.dillo/dpidrc
	proto.gemini=gemini/gemini.filter.dpi

	$ ls ~/.dillo/dpi/gemini
	gemini.filter.dpi

	$ cat ~/.dillo/gemini/config.json
	{ "autoPin": true }

By default, the plugin prompts you to pin the certificate whenever you
visit a previously unknown host. The pinned certificates are stored in
~/.dillo/gemini/pinned. You can configure the plugin to override this
behavior by writing the following content to
~/.dillo/gemini/config.json :

	{ "autoPin": true }

or by copying the provided config.json to said location.

The plugin renders to plain, unstyled HTML, so it should be possible
to style the output in the standard Dillo way. The body used in
generated documents has the ID "gemini-plugin-body" so that you can
style just dillo in ~/.dillo/style.css. I currently use these rules
for a pleasant color scheme:

	#gemini-plugin-body {
		background-color: #fec;
		color: black;
	}

	#gemini-plugin-body div {
		padding: 2em;
		padding-top: 1em;
		padding-bottom: 1em;
	}


	#gemini-plugin-body h1,h2,h3,ul {
		margin: 0;
		padding: 0;
	}

	#gemini-plugin-body ul { margin-left: 1em; }

	#gemini-plugin-body h1 { color: #624; }
	#gemini-plugin-body h2 { color: #462; }
	#gemini-plugin-body h3 { color: #246; }

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.