[-5..0] -> -5,-4,-3,-2,-1,0
but
[-10..-5] -> "not in scope ..-"
| var areTheyMalware = prompt("Are you malware? y/n"); | |
| switch ( areTheyMalware ) { | |
| case 'y': | |
| window.close(); | |
| break; | |
| case 'n': | |
| break; | |
| default: | |
| alert('you didn\'t follow directions therefore you are a virus'); |
| javascript:(function(){var newSite="<html><head><title>my site</title></head><body><h1>this is my malware proof site</h1><p>this is my page and it's malware proof ok</p></body></html>";$('html').html(newSite);}()); |
| var uploadToImgur = function() { | |
| var imgDataURL = DOM.$canvas[0].toDataURL('image/png').replace(/^data:image\/(png|jpg);base64,/, ''); | |
| $.ajax({ | |
| method: 'POST', | |
| url: 'https://api.imgur.com/3/image', | |
| headers: { | |
| Authorization: 'Client-ID ' + imgur.clientId, | |
| }, | |
| dataType: 'json', | |
| data: { |
| lol |
| // 1. create a new bookmark on your browser | |
| // 2. paste the following code - starting at "javascript:" into the URL part of the add-bookmark menu. | |
| // 3. go to http://www2.warnerbros.com/spacejam/movie/jam.htm | |
| // 4. click the bookmark for automatic space jam 2 | |
| // xoxo j$ | |
| javascript:(function(){document.getElementsByTagName("html")[0].innerHTML=document.getElementsByTagName("html")[0].innerHTML.replace(/1996/g,"2014");var images=document.getElementsByTagName("img");var length=images.length;while(length--){if(images[length].src=="http://www2.warnerbros.com/spacejam/movie/img/p-jamlogo.gif"){images[length].src="http://f.cl.ly/items/1a10103W3Z010W192n23/p-jamlogo.png"}}}()); |
| // CanvasPaint r1 | |
| // by Christopher Clay <[email protected]> | |
| // | |
| // The code in this file is dedicated to the Public Domain | |
| // http://creativecommons.org/licenses/publicdomain/ | |
| // | |
| //some global vars | |
| var canvas, c, canvastemp, ctemp, canvassel, csel, canvasundo, cundo, wsp, imgd, co, check; | |
| var iface = { dragging:false, resizing:false, status:null, xy:null, txy:null } |
| everything i write on medium is a lie | |
| xoxo j$ |
| // $gridRegular = a jsgrid table | |
| var $outerScroller = $gridRegular.closest('.inner'); | |
| $gridRegular.scrollersAnywhere({ | |
| scrollerLocation : { | |
| element : $outerScroller.parent(), | |
| placeWhere : 'before', | |
| }, | |
| scrollerID : 'top-scroll-' + gridRegularID, | |
| innerWidth : $gridRegular.width(), |