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 to: | |
%LocalAppData%\Google\Chrome\User Data\Default\User StyleSheets\Custom.css | |
*/ | |
/* | |
twitter.com/ | |
*/ |
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 t=document.querySelector('meta[name=viewport]'); | |
t.content=window.prompt('New viewport:',t.content); | |
}()) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Single point of breakpoint-definition</title> | |
<style> | |
/* | |
Baseline: | |
*/ |
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
<!doctype html> | |
<title>iOS console.log viewer</title> | |
<script> | |
((function(){ | |
window.log = function(){ | |
log.history = log.history || [] | |
log.history.push(arguments) |
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 ENV='.env'; | |
if(location.href.search(ENV)>=0){ | |
location.href=location.href.replace(ENV,''); | |
}else{ | |
location.href=location.origin+ENV+location.pathname+location.search+location.hash; | |
} | |
}()); |
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 url=document.location.href,A='.nl',B='.be'; | |
if(url.indexOf(A)!==-1) { | |
url=url.replace(A,B); | |
}else{ | |
url=url.replace(B,A); | |
}; | |
document.location.href=url; | |
})(); |
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 flag = "debug", | |
params = document.location.search.substr(1).split("&"); | |
if (params.indexOf(flag) !== -1) { | |
params.splice(params.indexOf(flag), 1); | |
} else { | |
params.push(flag); | |
} | |
query = params.join("&"); | |
query = query.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
document.location.href="https://web.archive.org/web/*/"+document.location.href; |
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(){ | |
function reloadCSS() { | |
var now = Date.now(); | |
var stylesheets = document.querySelectorAll('link[rel=stylesheet][href]'); | |
window.console.info('Reload! ' + now); | |
Array.prototype.forEach.call(stylesheets, function (element) { | |
var newUrl = element.href.replace(/(&|%5C?)forceReload=\d+/, ''); | |
element.href = newUrl + (newUrl.match(/\?/) ? '&' : '?') + 'forceReload=' + now; | |
}); |
OlderNewer