This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getQueryVariable(variable) { | |
var query = window.location.search.replace("?", ""); | |
for (var vars = query.split("&"), i = 0; i < vars.length; i++) { | |
var pair = vars[i].split("="); | |
if (decodeURIComponent(pair[0]).replace("+", " ") == variable) { | |
return decodeURIComponent(pair.slice(1).join("=")).replace("+", " "); | |
} | |
} | |
return void 0 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.location = 'https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl='+encodeURIComponent(window.location); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* performancestatistics.js | |
* | |
* Calculate a series of timings from window.performance this will be one datapoint | |
* Save datapoint by location path & search to JSONfied array in local storage | |
* Take all datapoints, calculate mean & std. deviation, push to console | |
* | |
* Result: running this snippet after each "cach cleared" pageload, will give some simple | |
* Statistics on Pageload time | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function table2vehiclesJson($htmlResultTable) | |
{ | |
$search = array(); | |
$replace = array(); | |
//Enclosing | |
$search[] = '/<table[^>]+><tr[^>]+>/';$replace[] = '[{'; | |
$search[] = '/<\/tr[^>]*><\/table[^>]*>/';$replace[] = '}]'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
copy($$('.filter-content .product-box').map(box=>[ | |
box.querySelector('.product-box-header').innerText.trim(), //Tarif Name | |
box.innerText.match(/(\d+)\s+GB/)?box.innerText.match(/(\d+)\s+GB/)[1]:0 //{digits} GB Data | |
].concat(box.querySelector('.product-prices').innerText.match(/\d?.?\d{0,3}\,\d\d/g) //any prices (Device downpayment, monthly fees ect.) | |
).join("\t") // Tabseperated columns | |
).join("\n") //join rows by newline | |
)//copy to clipboard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var data = { | |
"www.example.org": { //host of tracked Site | |
"i": "AbC123", //eTracker ID | |
"n": { //Networks / eTracker Campagins Map (Cmp Name: config Object) | |
"Campagin 1": { | |
"c":786, //etracker cid | |
"l":116074, //eTracker lid | |
"s":"&pid=<% PID %>&subid=<% SUBID %>" //Campaginspecific Sufix | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ac:structured-macro ac:macro-id="daee8bfc-97a3-4286-b145-ad544b8ace89" ac:name="contentbylabel" ac:schema-version="3"> | |
<ac:parameter ac:name="max">200</ac:parameter> | |
<ac:parameter ac:name="showSpace">false</ac:parameter> | |
<ac:parameter ac:name="sort">modified</ac:parameter> | |
<ac:parameter ac:name="title">Seit 6 Monaten unbearbeitete Seiten</ac:parameter> | |
<ac:parameter ac:name="excerptType">simple</ac:parameter> | |
<ac:parameter ac:name="cql">space = "SPACE" and lastmodified <= now('-6m') and type="page"</ac:parameter> | |
</ac:structured-macro> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$$('.architect-item').filter( | |
//match first two zip digits, call node.remove() for non matches | |
(elm)=>["50","51","53"].indexOf(elm.innerText.match(/\s*(\d\d)\d{3,3}\s*\w+/)[1])>0?true:elm.remove() | |
).map(elm=>elm.querySelector(':not(a[href^="http"])')).forEach(elm=>elm.remove()) // remove elms that dont have an http a node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Clean Chefkoch | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description remove some elements i never use | |
// @author Lukas Grebe | |
// @match https://www.chefkoch.de/rezepte/* | |
// @grant none | |
// ==/UserScript== |
OlderNewer