Author Archives: admin

ORF.AT Klassische Schrift Userscript

Dieses Userscript ändert die Schrift auf orf.at von OrfOn zu Arial.

Download

// ==UserScript==
// @name	orf.at klassische Schrift
// @namespace	flowconsult.at
// @version	0.1
// @description	Ändert die reguläre orf.at Schrift
// @include	http://orf.at/*
// @include	http://*.orf.at/*
// @copyright	Rafael Gattringer
// @license	GPL version 3 or any later version; www.gnu.org/copyleft/gpl.htm
// @run-at      document-end
// ==/UserScript==


// source: https://stackoverflow.com/questions/462537/overriding-important-style/462603#462603
function addNewStyle(newStyle) {
    var styleElement = document.getElementById('styles_js');
    if (!styleElement) {
        styleElement = document.createElement('style');
        styleElement.type = 'text/css';
        styleElement.id = 'styles_js';
        document.getElementsByTagName('head')[0].appendChild(styleElement);
    }
    styleElement.appendChild(document.createTextNode(newStyle));
}

addNewStyle('body, .ss {font-family:Arial, Helvetica, \'Lucida Sans Unicode\', \'Lucida Grande\', sans-serif;}')

Tweet Auto Open Userscript

This userscript for the Twitter web client automatically opens new tweets, when you scroll to the top. Additionally, the script checks for new tweets every second.

Download

// ==UserScript==
// @name	Twitter Tweet Auto Open
// @namespace	flowconsult.at
// @version	0.1
// @description	Auto-open tweets if scrolled to top of page
// @match	https://twitter.com/*
// @copyright	Rafael Gattringer
// @license	GPL version 3 or any later version; www.gnu.org/copyleft/gpl.htm
// ==/UserScript==

var timeoutID;

timer();

window.onscroll = function ()
{
	checkPosition();
}

function checkPosition()
{
	if(window.pageYOffset <= 140)
	{
		openTweet();
	}
}

function openTweet()
{
	var newtweetsbar = document.querySelector(".new-tweets-bar");
	if (newtweetsbar) { newtweetsbar.click(); }
}

function timer()
{
	checkPosition();
	timeoutID = window.setTimeout(timer, 1000);
}

cPanel CAcert SSL certificate installation

  1. Generate a Certificate Signing Request (*.csr) on your local computer – e.g. with Ubuntu Linux.
  2. Download the certificate (*.crt) from CAcert.
  3. Upload the private key (*.key) to your webspace:
    cPanel “SSL/TLS Manager / Private Keys (KEY)”
  4. Upload the certificate (*.crt) to your webspace:
    cPanel “SSL/TLS Manager / Certificates (CRT)”
  5. Connect the domain with the keys – cPanel “SSL/TLS Manager / Install and Manage SSL for your site (HTTPS) / Install an SSL Website“.

 

Links

Install a SSL Certificate on a Domain (cPanel)

SSL FAQ (cPanel)

SSL Server Test (SSL Labs)