Skip to content

Instantly share code, notes, and snippets.

View JustusW's full-sized avatar

Justus Wingert JustusW

View GitHub Profile
{u'creator': {u'comment': u'',
u'name': u'MITMPROXY HARExtractor',
u'version': u'0.1'},
u'entries': [{u'cache': {},
u'pageref': u'autopage_1',
u'request': {u'bodySize': 0,
u'cookies': [{u'name': u'_#vdf',
u'value': u'36548%7C18%7C20141216013325'},
{u'name': u'optimizelyEndUserId',
u'value': u'oeu1415642015762r0.1827507417350528'},
{% from tpl_container import render as container with context %}
{% call container() %}
{% from tpl_before import render as before with context %}
{{ before(compo) }}
{% for compo_obj in compo.components %}
{% if compo_obj.is_visible() %}
{% from tpl_row import render as row with context %}
{% call row() %}
{{ compo_obj.render() }}
{% endcall %}
@JustusW
JustusW / pokevision_filter.user.js
Last active July 25, 2016 15:43
Filter Script for Pokevision.com
// ==UserScript==
// @name Enhanced Pokevision
// @namespace pokevision.com
// @author Justus
// @include https://pokevision*
//
// @run-at document-ready
// @include-jquery true
// @version 1.0.1
// ==/UserScript==
# Depending on what you want here are a few solutions!
# One line is always nice and this might also be one of the fastest:
any([input[i-2] == 1 and input[i-1] == 3 and v == 4 for i, v in enumerate(input) if i > 2])
# Some like it dynamic:
getSubSequenceLambda = lambda input: any([input[i-2] == 1 and input[i-1] == 3 and v == 4 for i, v in enumerate(input) if i > 2])
# It's a classic:
func getSubSequenceFunc(input):
// ==UserScript==
// @name Quotationmarker
// @description Marks the quotations asterisks on warhammer-community and regimental-standard and adds hyperlinks as well as a hover.
// @version 0.1
// @grant none
// @include https://www.warhammer-community.com/*
// @include https://regimental-standard.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
// ==/UserScript==