Jump to content

User:Ans/javascript

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ans (talk | contribs) at 13:38, 15 February 2019 (permalink). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

permalink

  1. v1
    javascript:location+=(location.toString().indexOf('?')<0?'?':'&')+$('#t-permalink a')[0].href.replace(/.*&/,'')
    
  2. v2
    javascript:location+=$('#t-permalink a')[0].href.replace(/.*(&)/,location.toString().indexOf('?')<0?'?':'$1')