User:Cakemix/Qlicense.js

$(document).ready(function { if (document.location.href.indexOf("wiki/File:") != -1) {   document.getElementById('filetoc').innerHTML +=     "Public domain (PMG) "+    "Game screenshot "+    "Fair use"; } else if(document.location.href.indexOf("&action=edit") != -1) {    if(document.location.href.substr(-5)!="&Save")    {        document.getElementById('toolbar').innerHTML += "" +        "Licenses "+        "Public domain (PMG) "+        "Game Screenshot "+        "<option value='\n'>Fair use "+ " ";   }    else {       if(document.location.href.indexOf("&Fairuse") != -1) {           document.getElementById('wpTextbox1').value +=""; }       else if(document.location.href.indexOf("&CM") != -1) {           document.getElementById('wpTextbox1').value +=""; }       else if(document.location.href.indexOf("&Public") != -1) {           document.getElementById('wpTextbox1').value +=""; }       document.getElementById('wpTextbox1').value = document.getElementById('wpTextbox1').value.replace("","").replace("",""); document.all("wpSave").click; } } });