This file contains 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
<script> | |
var mui = function() | |
{ | |
var fired = false; | |
var kickTrigger = function() | |
{ | |
if(fired === true){return false;} | |
//console.log("miniumal-user-interaction"); | |
dataLayer.push({'minimal-user-interaction': true}); |
This file contains 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
let l = window.location; | |
const p = new URLSearchParams(l.search); | |
p.set('hl','en'); | |
window.location.search="?"+p.toString(); | |
//minified bookmarklet code | |
//javascript:let l=window.location,p=new URLSearchParams(l.search);p.set("hl","en");window.location.search="?"+p.toString(); |
This file contains 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
var nonCriLoad = function nonCriLoad() { | |
var rps = document.getElementById('non-critical-css'); | |
if (!(rps.relList && rps.relList.supports && rps.relList.supports("preload"))) { | |
rps.onload = ""; | |
//rps.rel="stylesheet"; | |
var ncs = document.createElement("link"); | |
ncs.rel = "stylesheet"; | |
ncs.href = rps.href; | |
rps.appendChild(ncs); |
This file contains 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.shop_links_changed = false; | |
let doTheChange = (cc) => | |
{ | |
let o = 'https://shop.veganblatt.com'; | |
let ccs =['AT','DE','CH']; | |
if(ccs.includes(cc)) |
This file contains 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
var allreadyPrefetched = {}; | |
var preFetcher = function(elem) { | |
if(elem && elem.href && !allreadyPrefetched[elem.href]) | |
{ | |
var hint; | |
hint = document.createElement("link"); | |
hint.rel = "prefetch"; | |
hint.href = elem.href; | |
document.head.appendChild(hint); | |
allreadyPrefetched[elem.href]=true; |
This file contains 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
var allreadyPrefetched = {}; | |
var preFetcher = function(elem) { | |
if(elem && elem.href && !allreadyPrefetched[elem.href]) | |
{ | |
var hint; | |
hint = document.createElement("link"); | |
hint.rel = "prefetch"; | |
hint.href = elem.href; | |
document.head.appendChild(hint); | |
allreadyPrefetched[elem.href]=true; |
This file contains 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
d = function(msg) { console.log(msg); } | |
var _css_path_to_autocomplete_ = '#gsr > div.gstl_0.sbdd_a > div:nth-child(2) > div.sbdd_b > div > ul'; | |
var _css_path_to_recommendations_ = '._e4b'; _css_path_to_autocomplete_;//'#brs > div > div:nth-child(1) > p:nth-child(1) > a';//'#brs';//'._e4b'; | |
A = [] | |
var arrayUnique = function(a) { | |
return a.reduce(function(p, c) { | |
if (p.indexOf(c) < 0) p.push(c); |
This file contains 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($){ | |
isString = function (obj) { | |
return toString.call(obj) == '[object String]'; | |
}; | |
$.fn.bodysnatch = function() { | |
var collection = this; | |
return collection.each(function(a,b) { | |
var element = $(this); | |
var clone = element.clone(); |
This file contains 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 shows important SEO head information | |
// @namespace http://www.facesaerch.com/ | |
// @description show canonical, noindex, nofollow | |
// @include * | |
// ==/UserScript== | |
function trim12 (str) { | |
var str = str.replace(/^\s\s*/, ''), | |
ws = /\s/, |