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
javascript:(function(){ | |
function reloadCss(url){ | |
$("link[href='"+url+"']").remove(); | |
$('head').append('<link rel="stylesheet" type="text/css" href="'+url+'">'); | |
} | |
reloadCss('/assets/stylesheets/head.default.css'); | |
})(); |
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
javascript:(function(){ | |
function reloadCss(url){ | |
$("link[href='"+url+"']").remove(); | |
$('head').append('<link rel="stylesheet" type="text/css" href="'+url+'">'); | |
} | |
reloadCss('/assets/stylesheets/global.css'); | |
})(); |
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
javascript:(function() { | |
var el = document.createElement('pre'), | |
b = document.getElementsByTagName('body')[0], | |
otherjQuery = false, | |
msg = '', | |
libs = [ | |
function loadjQuery() { | |
if (typeof jQuery != 'undefined') { | |
showMsg('This page already using jQuery v' + jQuery.fn.jquery); | |
} else { |
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
javascript: (function(){require([ | |
'qwery', | |
'bonzo', | |
'bean', | |
'common/utils/$', | |
'common/utils/_', | |
'common/utils/ajax' | |
],function( | |
qwery, | |
bonzo, |
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
javascript:(function() { | |
require(['qwery'], | |
function(qwery){ | |
qwery('.js-gu-media').forEach(function(el) { | |
var vjs = videojs(el); | |
vjs.currentTime(vjs.duration() - 1); | |
}); | |
});})(); |
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
cat logfile.log | awk -F'" "' '{print $6}' | sort | uniq -c | sort -rbg | less |
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() { | |
require([ | |
'common/utils/$', | |
'common/utils/detect', | |
'common/modules/article/spacefinder', | |
'common/modules/commercial/article-body-adverts' | |
], function( | |
$, | |
detect, |
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
javascript: (function() { | |
var script = document.createElement('script'); | |
script.src = "https://s3-eu-west-1.amazonaws.com/aws-frontend-store/MATT/spacefinder-debug.js"; | |
document.getElementsByTagName('head')[0].appendChild(script); | |
})(); |
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
javascript: (function() { | |
var scripts = [ | |
'https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js', | |
'https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.6.0/lodash.js' | |
]; | |
function drop(url) { | |
var s=document.createElement('script'); | |
s.setAttribute('src', url); | |
document.getElementsByTagName('body')[0].appendChild(s); | |
console.log('loaded', url); |
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 throttle(func, wait, options) { | |
var context, args, result; | |
var timeout = null; | |
var previous = 0; | |
if (!options) options = {}; | |
var later = function() { | |
previous = options.leading === false ? 0 : Date.now(); | |
timeout = null; | |
result = func.apply(context, args); | |
if (!timeout) context = args = null; |
OlderNewer