Privacy Policy Cookie Policy Terms and Conditions User talk:Howcheng/quickimgdelete.js - Wikipedia, the free encyclopedia

User talk:Howcheng/quickimgdelete.js

From Wikipedia, the free encyclopedia

Contents

[edit] Documentation

[edit] Description

quickimgdelete is a Javascript file that contains functions to make less tedious the following actions:

  • Nominating an image for deletion.
  • Tagging an image that has no source (Criteria for speedy deletion I4).
  • Tagging an image that has no licensing (CSD I4).
  • Tagging an image that has no fair use rationale (CSD I6).
  • Tagging a fair use image as orphaned (CSD I5).
  • Tagging a fair use image that could be replaced (those that violate WP:FUC #1).

This is a modified version of Commons:MediaWiki:Quick-delete.js.

[edit] How it works

On image description pages, the "toolbox" in the left column (monobook skins) will contain extra links for each of the above actions.

When nominating an image for deletion, a dialog box will open where you can enter the reason why you feel the image should be deleted. After you enter the image, two new windows will open: One for the current day's image deletion log page where the image will listed; the second is the uploader's talk page to notify him/her of the nomination.

When tagging images for missing source, license, or fair use rationale, no dialog box will open. One new window will open to the uploader's talk page to notify him/her of the pending deletion. If there are multiple uploaders, another dialog box will open to ask you which one you want to notify.

Additionally, if you're clearing out Category:Images with no copyright tag (i.e., images with the {{untagged}} template), this script will remove {{untagged}} and thus remove them from the category.

[edit] Requirements

Has been tested in Firefox, Internet Explorer 6, and the Monobook skin.

This also requires the following scripts to be in your script file:

[edit] Known bugs

In Opera, when nominating images for deletion, the opening of a second window to edit the IFD log page is inconsistent. Sometimes it happens and sometimes it doesn't.

[edit] Installation

Add the above scripts and following to your script file (usually found at User:YOUR_USER_NAME_HERE/monobook.js):

[edit] Changelog

v1.2.1 (2006-10-24)
Fixed bug where getElementsByTagName() was not properly recognized as a function in Firefox.
v1.2 (2006-10-23)
Add support for multiple uploaders -- now you can choose which uploader to notify instead of it always being the last one.
v1.1 (2006-10-20)
Add support for {{replaceable fair use}} and {{replaceable}}.
v1.0.2 (2006-08-04)
Fixed bug with usernames containing characters outside the normal ASCII set not being handled properly in IE.
v1.0.1 (2006-08-01)
Now removes {{untagged}} from image description page.
v1.0 (2006-07-31)
Created.
/**** quick image delete ****/
document.write('<script type="text/javascript"' +
  'src="http://en.wikipedia.org/w/index.php?title=User:Howcheng/quickimgdelete.js' +
  '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

/* This is to keep track of who is using this extension: [[User:Howcheng/quickimgdelete.js]] */

Remember to refresh your browser's cache (Ctrl-F5 for IE, Shift-Ctrl-R for Firefox) before complaining it doesn't work!

[edit] Discussion

This script is erratic - when I click on something to do, it will alwasy tag the image description page and notify the uploader, but it won't always add the entry to the IFD page. Sometimes it does, other times it doesn't. I'm using Opera 9.01. Hbdragon88 18:56, 14 August 2006 (UTC)

Hmmm. I've never worked with Opera so I don't know if there are any issues with opening new windows via Javascript or anything. I'm not sure I can get around to testing it anytime soon, but I can check with authors of similar scripts to see if they've had any such issue. howcheng {chat} 06:16, 15 August 2006 (UTC)

Well, if this helps: Opera loads the existing image description page and tags it with ifd. It opens a new window to notify the uploader. It will either then steal an existing IFD page and add an entry or open a new one, but sometimes it doesn't do either. Hbdragon88 05:16, 23 August 2006 (UTC)

[edit] Bug in v1.2

Since the latest update, the script doesn't work under Firefox anymore: Nothing happens when you click on any of the links in the toolbox and the JavaScript console reports an error ("el.getElementsByTagName is not a function") in the script at line 72.--Fritz Saalfeld (Talk) 11:10, 24 October 2006 (UTC)

Fixed this, thanks. I wonder if it had to do with upgrading to Firefox 2.0, because I didn't have this problem prior to my upgrading. howcheng {chat} 16:17, 24 October 2006 (UTC)
I use Firefox 1.5, so I guess it had nothing to do with that. Thanks for fixing the script so quick, by the way! --Fritz Saalfeld (Talk) 17:00, 24 October 2006 (UTC)
THIS WEB:

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - be - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - closed_zh_tw - co - cr - cs - csb - cu - cv - cy - da - de - diq - dv - dz - ee - el - eml - en - eo - es - et - eu - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gd - gl - glk - gn - got - gu - gv - ha - haw - he - hi - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mg - mh - mi - mk - ml - mn - mo - mr - ms - mt - mus - my - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - rm - rmy - rn - ro - roa_rup - roa_tara - ru - ru_sib - rw - sa - sc - scn - sco - sd - se - searchcom - sg - sh - si - simple - sk - sl - sm - sn - so - sq - sr - ss - st - su - sv - sw - ta - te - test - tet - tg - th - ti - tk - tl - tlh - tn - to - tokipona - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu

Static Wikipedia 2008 (no images)

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu -

Static Wikipedia 2007:

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - be - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - closed_zh_tw - co - cr - cs - csb - cu - cv - cy - da - de - diq - dv - dz - ee - el - eml - en - eo - es - et - eu - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gd - gl - glk - gn - got - gu - gv - ha - haw - he - hi - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mg - mh - mi - mk - ml - mn - mo - mr - ms - mt - mus - my - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - rm - rmy - rn - ro - roa_rup - roa_tara - ru - ru_sib - rw - sa - sc - scn - sco - sd - se - searchcom - sg - sh - si - simple - sk - sl - sm - sn - so - sq - sr - ss - st - su - sv - sw - ta - te - test - tet - tg - th - ti - tk - tl - tlh - tn - to - tokipona - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu

Static Wikipedia 2006:

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - be - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - closed_zh_tw - co - cr - cs - csb - cu - cv - cy - da - de - diq - dv - dz - ee - el - eml - en - eo - es - et - eu - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gd - gl - glk - gn - got - gu - gv - ha - haw - he - hi - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mg - mh - mi - mk - ml - mn - mo - mr - ms - mt - mus - my - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - rm - rmy - rn - ro - roa_rup - roa_tara - ru - ru_sib - rw - sa - sc - scn - sco - sd - se - searchcom - sg - sh - si - simple - sk - sl - sm - sn - so - sq - sr - ss - st - su - sv - sw - ta - te - test - tet - tg - th - ti - tk - tl - tlh - tn - to - tokipona - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu