Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 54 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. let params={},
  2. order=[]
  3. location.search.replace(/^?/,'').split('&').forEach(pie=>{
  4.     let [k,v]=pie.split('=')
  5.     params[k]=v
  6.     order.push(k)
  7. })
  8. $(document).keydown(e=>{
  9.     if(!e.which==46) return
  10.     delete params[order.pop()]
  11.     console.log(params)
  12.     window.history.replaceState('','',location.origin+(order.length?'/?'+order.reduce((prev,cur)=>prev.concat(cur+'='+params[cur]),[]).join('&'):''))
  13. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top