ebooksgratis.com

See also ebooksgratis.com: no banners, no cookies, totally FREE.

CLASSICISTRANIERI HOME PAGE - YOUTUBE CHANNEL
Privacy Policy Cookie Policy Terms and Conditions
User:Chairboy/csdhelper.greasemonkey.js - Wikipedia, the free encyclopedia

User:Chairboy/csdhelper.greasemonkey.js

From Wikipedia, the free encyclopedia

Note: After saving, you have to bypass your browser's cache to see the changes. In Internet Explorer and Firefox, hold down the Ctrl key and click the Refresh or Reload button. Opera users have to clear their caches through Tools→Preferences, see the instructions for Opera. Konqueror and Safari users can just click the Reload button.

Simple script to add a click-menu to the article delete screen for administrators to make it easy to leave useful [[WP:CSD|speedy delete criteria]].  Saves time and is friendlier to the article authors who may not get meaningful information out of 'a7' or 'db-context' as the specified reason.
[[Image:Csdhelper-screen.JPG|thumb|center|370px]]
To use this in Greasemonkey, just copy the code below into a file named '''csdhelper.user.js''' on your computer, then drag the file into your browser.  Greasemonkey should offer to install it.
<pre>
// CSD helper script 
// Help with wikipedia article deletion
// 2007-04-24
// GFDL
// Ben Hallert
// 
// ==UserScript==
// @name        CSDHelper
// @namespace   http://hallert.net/
// @description Provide a dropdown menu of CSD criteria in delete pages on Wikipedia.  Admins only.
// @include     http://en.wikipedia.org/*
// ==/UserScript==
 
if (document.getElementById('deleteconfirm'))
{
        var parent_form = document.getElementById('deleteconfirm');
        var par         = document.getElementById('wpReason');
        var newhelper   = document.createElement('select');
        newhelper.setAttribute('id','csdhelper');
        newhelper.setAttribute('onChange','document.getElementById(\'wpReason\').value = document.getElementById(\'csdhelper\').value;');
        newhelper.innerHTML = "<option value=\'\'>Select a CSD</option>"
+ "<option value=\'[[WP:CSD]] Articles, subsection 1 - Very short article containing little or no context.\'>A1 - No context</option>"
+ "<option value=\'[[WP:CSD]] Articles, subsection 3 - No content whatsoever.\'>A3 - No content</option>"
+ "<option value=\'[[WP:CSD]] Articles, subsection 7 - No assertion of [[WP:NOTABLE|notability]] is made by this person, music group, or organization\'>A7 - Non-notable</option>"
+ "<option value=\'\'>---------------</option>"
+ "<option value=\'[[WP:CSD]] General criteria, subsection 1 - Unsalvageably incoherent gibberish.\'>G1 - Nonsense</option>"
+ "<option value=\'[[WP:CSD]] General criteria, subsection 4 - Repost of an article removed via a recognized [[WP:XFD|deletion process]] that is identical or substantially alike.\'>G4 - Reposted XFD</option>"
+ "<option value=\'[[WP:CSD]] General criteria, subsection 5 - Page created by a banned user while he/she was banned.\'>G5 - Banned user</option>"
+ "<option value=\'[[WP:CSD]] General criteria, subsection 6 - Non-controversial housekeeping deletion.\'>G6 - Housekeeping</option>"
+ "<option value=\'[[WP:CSD]] General criteria, subsection 7 - The page was mistakenly created and the original author wanted it removed.  There were no other edits.\'>G7 - Author requested del</option>"
+ "<option value=\'[[WP:CSD]] General criteria, subsection 8 - Talk page of an article that does not exist.\'>G8 - Talk page of del'd article</option>"
+ "<option value=\'[[WP:CSD]] General criteria, subsection 10 - Page serves no purpose but to disparage its subject.  The [[WP:NPA]] policy may apply as well.\'>G10 - Attack</option>"
+ "<option value=\'[[WP:CSD]] General criteria, subsection 11 - Blatant [[WP:SPAM|advertising]].  Page exclusively promotes a company, product, group, or service without realistic encyclopedic rewrite.\'>G11 - WP:SPAM</option>"
+ "<option value=\'[[WP:CSD]] General criteria, subsection 12 - Blatant copyright violation without non-infringing content worth saving.\'>G12 - Blatant Copyvio</option>"
+ "<option value=\'\'>---------------</option>"
+ "<option value=\'[[WP:CSD]] Redirects, subsection 1 - Redirect to an article that does not exist.\'>R1 - Redirect to nowhere</option>"
+ "<option value=\'[[WP:CSD]] Images, subsection 1 - Redundant copy.  This image is a redundant copy in the same format and or lower resolution.\'>I1 - Redundant (non-commons) image</option>"
+ "<option value=\'[[WP:CSD]] Images, subsection 3 - Improper license.  Must be [[WP:COPYRIGHT]] compliant.\'>I3 - Improper license</option>"
+ "<option value=\'[[WP:CSD]] Images, subsection 4 - Lack of any licensing information.  Images without licenses for 7 days are removed without warning.\'>G4 - Missing license for 7+ d</option>"
+ "<option value=\'[[WP:CSD]] Images, subsection 8 - Replaced by a properly licensed version on [[Wikimedia Commons]].\'>I8 - Replaced w/ commons</option>"
+ "<option value=\'[[WP:CSD]] Categories, subsection 1 - Empty categories with no actual content.\'>C1 - Empty category</option>"
+ "<option value=\'[[WP:CSD]] User pages, subsection 1 - User request to delete own subpage.\'>U1 - Userpage del request</option>"
+ "<option value=\'[[WP:CSD]] User pages, subsection 2 - Nonexistant user.\>U2 - Nonexistant user</option>"
+ "<option value=\'[[WP:CSD]] User pages, subsection 3 - Fair use galleries in user space are not allowed.\'>U3 - Fair use gallery</option>"
+ "<option value=\'[[WP:CSD]] Templates, subsection 1 - Divisive or inflammatory template.\'>T1 - Fight template</option>";
 
        if(parent_form)
        {
                var firsttable  = parent_form.getElementsByTagName('table')[0];
                if(firsttable)
                {
                        var firsttbody  = firsttable.getElementsByTagName('tbody')[0];
                        if(firsttbody)
                        {
                                var firstrow    = firsttbody.getElementsByTagName('tr')[0];
                                if(firstrow)
                                {
                                        var newcell     = firstrow.insertCell(0);
                                        newcell.setAttribute('rowspan','3');
                                        newcell.appendChild(newhelper);
                                        newhelper.setAttribute('size','24');
                                }
                        }
                }
        }
 
 
 
}
void 0
</pre>


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 -