Skip to content

Instantly share code, notes, and snippets.

View SoftCreatR's full-sized avatar
👻
Boo!

Sascha Greuel SoftCreatR

👻
Boo!
  • Gladbeck, Germany
  • 14:42 (UTC +02:00)
View GitHub Profile
@SoftCreatR
SoftCreatR / tapadetect.js
Created August 16, 2013 14:52
JS based mobile device detection for Tapatalk
/**
* Tapatalk mobile detection
*
* @author Sascha Greuel <sascha@softcreatr.de>
* @copyright 2013 Sascha Greuel
* @license Creative Commons BY-SA <http://creativecommons.org/licenses/by-sa/3.0/>
*/
function detectTapatalk() {
var tapatalk_msg = 'This forum has an app for [platform]! Click OK to learn more about Tapatalk.',
@SoftCreatR
SoftCreatR / jQuery
Created August 28, 2013 10:25
QRCode
(function ($) {
$.fn.qrcode = function (options) {
// if options is string,
if (typeof options === 'string') {
options = {
text: options
};
}
// set default values
@SoftCreatR
SoftCreatR / Pure-JS
Created August 28, 2013 10:26
QRCode
/**
* QRCode generator
*
* @author Sascha Greuel
* @copyright 2010-2013 Sascha Greuel
* @license Creative Commons BY-SA <http://creativecommons.org/licenses/by-sa/3.0/>
*/
var qrgen = function () {
// Get options
@SoftCreatR
SoftCreatR / SFSTest WCF1
Last active December 22, 2015 09:59
StopForumSpam-Plugin for WoltLab Community Framework 1 - Testscript
<?php
// Imports
require_once('./global.php');
/**
* Simulate a default api call. If no errors occur, the SFS plugin should work
*
* @author Sascha Greuel <sascha@softcreatr.de>
* @copyright 2010-2013 Sascha Greuel
* @license Creative Commons BY-SA <http://creativecommons.org/licenses/by-sa/3.0/>
@SoftCreatR
SoftCreatR / gist:9558833
Last active August 29, 2015 13:57
Just playing around
$("a.externalURL").each(function() {
$(this).removeClass('externalURL');
$(this).prepend('<img src="//www.google.com/s2/favicons?domain=' + this.href + '" alt="" />&nbsp;');
});
@SoftCreatR
SoftCreatR / gist:9754783
Last active August 29, 2015 13:57
Lazy inline post editing
$(".messageContent").dblclick(function() {
var $btn = $(".messageOptions a.button.jsMessageEditButton", this);
if($btn.length) {
$btn.dblclick();
}
});
/**
* Message autosave related classes for WCF (WIP)
*
* @author Sascha Greuel
* @copyright 2014 Sascha Greuel
* @license Creative Commons Attribution-NoDerivatives <http://creativecommons.org/licenses/by-nd/4.0/legalcode>
*/
/**
* Displays and manages an info box for autosaved contents.
iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAgMAAADXB5lNAAAACVBMVEVTU1P///9TU1P8g2f9AAAAAnRSTlMAAHaTzTgAAAB0SURBVHhe1dMxCgMxDAXRIaVOkXrvs/f79ZwyEGNITKwUgcBOZR4upEKcSxeCmSrAFko1r5Cv4J8A6EGzgwLQQAdHD5ljbUFU08Gz8AOwgWX1HlBNC6WyBVWMOBpq5C2pz3ALUIGsP1ZAKtznmxoAAtc5wgegV/QjpyQHeQAAAABJRU5ErkJggg==iVBORw0KGgoAAAANSUhEUgAAAIAAAACAAgMAAAC+UIlYAAAACVBMVEVTU1P///9TU1P8g2f9AAAAAnRSTlMAAHaTzTgAAACFSURBVHhe7dY9CoBADITRqfd+XnJOKco6EC32h4VRzFdEMK9II4it0fdAggT3WEPNAKjmAfxA2UEC7QzA/mHxcaMNFDoBz6k8gNqT8IAQ8FeAtQBTAG4QBWxAAgZALY5xPkNtoARiYwDAWlDYC+pl1FBNoFYBXqOMAF0ooPed4G2/7gkS7LQn0KpfZWb2AAAAAElFTkSuQmCC
# Sascha Greuel <sascha@softcreatr.de>
# 2014-08-06
# Rev. 1
# ==========
# WoltLab Community Framework
# ==========
if ($args ~ "page=Portal") {
rewrite ^.*$ /index.php/Dashboard/? permanent;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.