Skip to content

Instantly share code, notes, and snippets.

View SoftCreatR's full-sized avatar
👻
Boo!

Sascha Greuel SoftCreatR

👻
Boo!
  • Gladbeck, Germany
  • 00:27 (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 <[email protected]>
* @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 / 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 <[email protected]>
* @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.
@SoftCreatR
SoftCreatR / autopoke.user.js
Last active August 29, 2015 14:05
Facebook Autopoke
// ==UserScript==
// @name Facebook Autopoke
// @icon http://i.imgur.com/5ShnMqG.png
// @namespace http://www.softcreatr.de
// @author Sascha Greuel
// @description Automatically pokes back people.
// @version 1.9.0
// @run-at document-end
// @grant none
//
<?php
namespace wcf\util;
/**
* Extended math-related functions.
*
* @author Sascha Greuel <[email protected]>
* @copyright Sascha Greuel
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package com.woltlab.wcf
@SoftCreatR
SoftCreatR / gom.user.js
Last active August 29, 2015 14:15
Hide posts of ignored users at woltlab.com
// ==UserScript==
// @name Get off me!
// @namespace https://www.softcreatr.de
// @include /^https?://(community|www)\.woltlab\.com/.*$/
// @version 1.0.0
// @grant none
// ==/UserScript==
var $ignoredUsersSelectors = [];
// ==UserScript==
// @name Shopstopper
// @namespace https://www.softcreatr.de
// @version 0.2
// @description Reminds you, that you already bought this product (if you did...)
// @author Sascha "SoftCreatR" Greuel
// @match https://pluginstore.woltlab.com/file/*
// @grant none
// ==/UserScript==