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:46, 15 February 2019 (+;void(0)). 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');void(0)
    

edit

javascript:location+=location.toString().indexOf('?')<0?'?action=edit':'&action=edit';void(0)