Skip to content

Instantly share code, notes, and snippets.

View SoftCreatR's full-sized avatar
👻
Boo!

Sascha Greuel SoftCreatR

👻
Boo!
  • Gladbeck, Germany
  • 15:16 (UTC +02:00)
View GitHub Profile
@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 = [];
@SoftCreatR
SoftCreatR / gaypride.css
Last active August 29, 2015 14:24
Unobtrusive Gaypride solidarity
.gayPride {
width: 160px;
height: 160px;
position: relative;
}
.gayPride > img {
width: 100%;
height: 100%;
}
$rootScope.$evalAsync(function() {
$timeout(function() {
if ($location.hash()) {
if ($window.document.getElementsByClassName('navbar')[0] !== undefined) {
$anchorScroll.yOffset = parseInt($window.document.getElementsByClassName('navbar')[0].offsetHeight);
}
$anchorScroll();
}
});
@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 / 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 / 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 / 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/>
#region namespaces
using System;
using System.Reflection;
using System.Management;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Net.NetworkInformation;
using System.IO;
using System.Xml;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SoftCreatR
SoftCreatR / asb.sh
Last active October 12, 2016 06:06
Advanved Shell Backup - Copyright (c) 2015 by Sascha "SoftCreatR" Greuel - https://www.softcreatr.de - Licensed under CC-BY-SA
#!/bin/bash
#############################################################
# #
# Advanved Shell Backup #
# Copyright (c) 2015 by Sascha "SoftCreatR" Greuel #
# License: http://creativecommons.org/licenses/by-sa/4.0/ #
# Website: https://www.softcreatr.de #
# #
# Authors: Sascha Greuel, Florian Gail, Some others #