Knowledge (XXG)

:User scripts/Techniques - Knowledge (XXG)

Source 📝

345: 906:
plugin to interact with the textarea or edit summary. This module makes sure that your modification works in combination with other modules that want to manipulate the value of the textarea, like syntax highlighting modules.
1386: 380:. The idea is to send an AJAX request (see below) to the API containing a query. The result of this query can be returned in several formats, of which JSON is perhaps the most useful, see below. 369:
This page will collect various techniques for achieving common tasks needed in writing user scripts. Discussion about limitations, relative portability, and speed of the various alternatives is
2300: 1805: 2417: 1069:("forceGet") immediately reloads the current page including all images, scripts, and stylesheets. This should not be done from edit or preview pages as the edits might get lost. 1128: 373:
encouraged. There is a lot of duplication and non-optimal efforts out there, and this will hopefully encourage us to write tighter, more correct code, both easier and faster.
2138: 376:
An advanced API for interacting with Knowledge (XXG) content is being developed, large parts of which are already operational. The various possibilities are described at
90: 85: 1710: 1549: 47: 2143: 2079: 388:
This refers to techniques for identifying the current namespace of the current page, whether or not it is an edit page, a preview page, a Special page, etc.
1966: 1907: 290: 243: 844: 267: 1762: 1640: 1121: 355: 177: 2325: 2198: 1720: 2399: 2267: 2252: 1757: 1635: 1693: 1076:
and its talk page for example code on how you can let JavaScript remove arbitrary files from your browser cache using an external application.
1559: 354:. Please help update this Knowledge (XXG) page to reflect recent events or newly available information. Relevant discussion may be found on 2279: 2133: 2128: 1887: 1156: 1085: 2342: 1698: 1114: 636: 591: 2272: 2203: 2067: 1892: 1767: 534:'p-personal' - the personal toolbar (i.e. the one at the top, with a link to user page, user talk, prefs, watchlist, contribs, log out) 1735: 1104:, where 180 is the number of minutes to add to UTC to obtain a time in the user's preferred time zone. The number might be negative. 1026:
Scripts on a user's computer are updated to the most recent version by bypassing (clearing) the browser cache - the user has to push
106: 80: 2437: 2048: 1961: 1160: 665:
To change the url, name, or any other aspect of existing tab buttons, personal bar links, or other links, use the following: (where
501:
is the article name as it is shown on the url, e.g. "Knowledge (XXG):User_scripts/Techniques". It includes the namespace identifier.
2432: 1996: 1228: 1299: 2449: 2405: 2262: 2257: 1973: 1630: 33: 2410: 1868: 232: 2444: 2225: 2057: 1912: 1752: 1405: 1306: 1194: 132: 40: 1512: 221: 2422: 2230: 2033: 1800: 1189: 612:
On a page with a h1 heading, this works in Firefox 1.0.4 on OSX, but fails on some other browsers. Anyone know how or why?
70: 677:
is the new displayed name for the link, e.g. "my preferences", "edit this page", "Community Portal", or "What links here")
1730: 254: 147: 2470: 1725: 1282: 75: 2208: 1517: 1073: 608:
document.getElementById("content").insertBefore(document.createTextNode("abcdef"), document.getElementsByTagName("h1"))
2392: 2310: 1815: 1415: 1381: 2118: 1522: 142: 2023: 1983: 1897: 1354: 2043: 2016: 1873: 1084:
Although not commonly used, CORS is enabled between all Wikimedia wikis. For an example of cross-wiki editing, see
531:'p-cactions' - the tabs at the top of the page (with the article, discussion, edit, history, move, and watch links) 199: 2168: 1927: 1376: 1184: 1174: 1827: 1822: 1250: 587: 166: 2220: 2084: 1311: 1238: 56: 17: 2074: 1851: 1608: 1497: 2357: 1349: 116: 111: 915:
Parsing JSON text, as delivered by e.g. the MediaWiki API is done automatically when using jQuery utilities:
762:'http://meta.wikimedia.org/search/?title=MediaWiki:Wikiminiatlas.js&action=raw&ctype=text/javascript' 1779: 1569: 1554: 1452: 1294: 2305: 2062: 1287: 2148: 1774: 1613: 1398: 903: 2362: 2153: 1991: 1932: 1265: 1152: 2123: 1858: 1260: 669:
is the id of the link to be changed, e.g. "pt-preferences", "ca-edit", "n-portal" or "t-whatlinkshere";
1846: 1740: 1148: 323: 507:
is the title of the article, without namespace identifier or escaping, e.g. "User scripts/Techniques".
1902: 1839: 1574: 1462: 1430: 1328: 578: 2352: 2347: 2215: 298: 2320: 2193: 1618: 1425: 1364: 188: 2337: 2332: 2183: 2028: 2006: 1705: 1420: 1072:
For users that have a lot of scripts installed, reloading them all may take up a lot of time. See
275: 2158: 1581: 1527: 1393: 1245: 1211: 2375: 2370: 2247: 1672: 280: 2096: 1956: 1939: 1795: 1339: 1316: 1255: 1216: 2315: 2188: 1447: 305: 2178: 1747: 1647: 1507: 310: 2091: 1922: 1233: 1164: 2427: 2242: 2038: 1657: 1652: 1564: 1485: 1440: 1359: 1206: 639: 632: 616: 595: 560: 550:: Someone please test the search and toolbox ones, and see if they work the same. Thanks! 285: 495:
is 0 for the main namespace, -1 for special pages, and other values for other namespaces.
1949: 1457: 1435: 1270: 1221: 1137: 2464: 2001: 1882: 1810: 1715: 1534: 1480: 1472: 1344: 1277: 736: 458:
Be advised that this also returns the edit tab if you're currently editing the page.
2284: 1539: 1492: 1201: 692:).firstChild; q.removeChild(q.firstChild); q.appendChild(document.createTextNode( 1410: 613: 557: 537:'p-navigation' - the navigation toolbar (i.e. Main page, Featured Content, etc.) 2011: 1944: 1834: 1688: 1683: 1544: 626: 1625: 1603: 1595: 1591: 1502: 896:
On classic edit pages you can find the textbox with the wikitext like this:
1106: 489:
is normally false but for special pages it contains the non-localized name.
1917: 1662: 1371: 625:
No, but does it help if you delay execution until the page has loaded?
540:'p-interaction' - the interaction toolbar, below the navigation toolbar 2106: 377: 1110: 29: 25: 2110: 339: 483:
contains the name of the namespace, e.g. "" for article space
543:'p-tb' - the toolbox (What links here, Related changes etc.) 565:
The search box can be retrieved by simply replacing the
739:
is a loader method to load external javascript or css:
554:
The search box is 'p-search' but there's no <ul: -->
463: 444: 401: 331: 512:
Getting the various toolbars (personal, tabs, sidebar)
724:
to a function directly, as this overwrites any other
431:
mw.config.get('wgCanonicalNamespace') === 'Special'
2293: 2167: 2105: 1982: 1867: 1788: 1671: 1590: 1471: 1327: 1173: 845:
Knowledge (XXG):WikiProject User scripts/Guide#Ajax
266: 211: 156: 125: 99: 63: 1034:(MS-IE). A JavaScript can do the same by calling: 1096:The selected timezone of a user is available via 1122: 728:functions that may have been previously set. 577:, as all the toolboxes' ids are in div tags. 41: 8: 487:mw.config.get('wgCanonicalSpecialPageName') 415:This will be null when not editing a page. 2400:Category:Knowledge (XXG) information pages 1129: 1115: 1107: 48: 34: 26: 732:Include an external js-file on wikipedia 714:Functions can also be written inline as 423:mw.config.get('wgAction') === 'history' 717:$ ( function() { // Code here } ); 396:document.getElementById("wikiPreview") 899:var t = document.editform.wpTextbox1; 439:document.getElementById('ca-history') 350:This Knowledge (XXG) page needs to be 1098:mw.user.options.get('timecorrection') 1080:Edit a page on another Wikimedia wiki 481:mw.config.get('wgCanonicalNamespace') 7: 475:Getting the page title and namespace 412:document.getElementById("editform") 2139:User CSS for monospaced coding font 1387:Non-admin and admin-only page moves 1100:, which will return something like 704:jQuery can attach functions to the 516:var tabs = document.getElementById( 455:document.getElementById('ca-edit') 178:Infobox Knowledge (XXG) user script 493:mw.config.get('wgNamespaceNumber') 244:User script developer upon request 24: 1102:"ZoneInfo|180|Africa/Addis_Ababa" 792:'http://example.org/mystyles.css' 661:Altering existing interface links 652:document.editform.wpDiff.click() 2080:Bug reports and feature requests 822:'http://example.org/mystyles.js' 528:is one of the following strings: 343: 2393:Category:Knowledge (XXG) how-to 1908:Template sandbox and test cases 1147:Get personal technical help at 470:Getting various parts of a page 1138:Knowledge (XXG) technical help 520:).getElementsByTagName('ul'); 143:Default ResourceLoader modules 1: 76:The category for user scripts 1763:How to improve image quality 1641:Complete diff and link guide 902:Then use the methods of the 596:20:17, 21 October 2007 (UTC) 384:Identifying the type of page 18:Knowledge (XXG):User scripts 2199:Cleaning up vandalism tools 2085:TimedMediaHandler extension 1721:Preparing images for upload 865:'http://example.org/foo.js' 640:12:14, 4 October 2005 (UTC) 617:20:58, 29 August 2005 (UTC) 499:mw.config.get('wgPageName') 2487: 2285:Beta Features at MediaWiki 1758:Basic bitmap image editing 1636:Simple diff and link guide 688:q=document.getElementById( 571:getElementsByTagName('ul') 321: 2386: 1560:Advanced table formatting 1144: 561:10:38, 24 June 2006 (UTC) 2280:Wikimedia Cloud Services 2134:Common.js and common.css 2129:Catalogue of CSS classes 1888:Advanced template coding 1731:Options to hide an image 1157:village pump (technical) 1036: 917: 850: 741: 680:document.getElementById( 656:Presses the diff button. 505:mw.config.get('wgTitle') 2471:Knowledge (XXG) scripts 2404:Further navigation at: 2144:Classes in microformats 1699:Moving files to Commons 1518:Conditional expressions 91:Deprecated scripts list 2204:Customizing watchlists 2119:Cascading Style Sheets 1893:Template documentation 1768:Graphics Lab resources 1711:Introduction to images 1523:Switch parser function 1010:// data.query.userinfo 233:user script developer2 2017:File description page 1736:Extended image syntax 222:user script developer 86:Most imported scripts 2268:Navigation shortcuts 2253:Alternative browsing 1251:Multilingual support 1229:How to create a page 1074:Gerbrant.mng.decache 880:// Foo.js is loaded! 673:is the new URL, and 255:user scripts created 112:Scripts++ Newsletter 1974:Guide to Scribbling 1852:EasyTimeline syntax 1631:Simplest diff guide 1498:Line-break handling 1092:Timezone formatting 148:Values in mw.config 1967:Costs and benefits 1913:Citation templates 1780:Visual file markup 1753:Graphics tutorials 1694:Creation and usage 1570:Conditional tables 1453:User contributions 1394:Notifications/Echo 1307:User access levels 1295:Special Characters 1195:Keyboard shortcuts 711:$ ( myFunction ); 684:).childNodes.href= 464:Add edit section 0 435:Pages with history 2458: 2457: 2438:Citation metadata 2343:Navigation popups 2301:AfC helper script 2294:Automated editing 2149:Markup validation 2034:Project/Wikipedia 1801:Graphs and charts 1775:Sound file markup 1677:videos and sounds 1540:Sections and TOCs 1340:Special page help 828:'text/javascript' 768:'text/javascript' 604:Inserting content 445:Add purge to tabs 402:Add Edit Top Link 367: 366: 363: 319: 318: 200:user script table 138:Common techniques 71:Main scripts list 2478: 2273:Optimum tool set 2124:HTML in wikitext 2068:User page design 1859:WikiHiero syntax 1726:Uploading images 1716:Picture tutorial 1283:Software notices 1261:Page information 1131: 1124: 1117: 1108: 1103: 1099: 1061: 1058: 1055: 1052: 1049: 1046: 1043: 1040: 1017: 1014: 1011: 1008: 1005: 1002: 999: 996: 993: 990: 987: 984: 981: 978: 975: 972: 969: 966: 963: 960: 957: 954: 951: 948: 945: 942: 939: 936: 933: 930: 927: 924: 921: 887: 884: 881: 878: 875: 872: 869: 866: 863: 860: 857: 854: 832: 829: 826: 823: 820: 817: 814: 811: 808: 805: 802: 799: 796: 793: 790: 787: 784: 781: 778: 775: 772: 769: 766: 763: 760: 757: 754: 751: 748: 745: 700:Onload Structure 648:Pressing buttons 584: 581: 576: 572: 568: 559: 506: 500: 494: 488: 482: 359: 347: 346: 340: 334: 259: 253: 248: 242: 237: 231: 226: 220: 204: 198: 193: 187: 182: 176: 171: 167:Load user script 165: 50: 43: 36: 27: 2486: 2485: 2481: 2480: 2479: 2477: 2476: 2475: 2461: 2460: 2459: 2454: 2382: 2311:AutoWikiBrowser 2289: 2163: 2101: 1978: 1962:Labeled section 1903:Template limits 1863: 1840:Musical symbols 1816:To scale charts 1784: 1667: 1586: 1575:Sortable tables 1467: 1463:What links here 1431:Related changes 1416:Pending changes 1382:History merging 1365:Reset passwords 1323: 1169: 1140: 1135: 1101: 1097: 1094: 1082: 1063: 1062: 1059: 1056: 1053: 1050: 1047: 1044: 1041: 1038: 1024: 1022:Update a script 1019: 1018: 1015: 1012: 1009: 1006: 1003: 1000: 997: 994: 991: 988: 985: 982: 979: 976: 973: 970: 967: 964: 961: 958: 955: 952: 949: 946: 943: 940: 937: 934: 931: 928: 925: 922: 919: 913: 900: 894: 892:Automatic edits 889: 888: 885: 882: 879: 876: 873: 870: 867: 864: 861: 858: 855: 852: 839: 834: 833: 830: 827: 824: 821: 818: 815: 812: 809: 806: 803: 800: 797: 794: 791: 788: 785: 782: 779: 776: 773: 770: 767: 764: 761: 758: 755: 752: 749: 746: 743: 734: 718: 712: 702: 697: 663: 653: 650: 609: 606: 582: 579: 574: 570: 566: 556: 555:element in it. 521: 514: 504: 498: 492: 486: 480: 477: 472: 456: 453: 440: 437: 432: 429: 424: 421: 413: 410: 397: 394: 386: 344: 338: 337: 330: 326: 320: 315: 262: 257: 251: 246: 240: 235: 229: 224: 218: 207: 202: 196: 191: 185: 180: 174: 169: 163: 152: 121: 95: 59: 54: 22: 21: 20: 12: 11: 5: 2484: 2482: 2474: 2473: 2463: 2462: 2456: 2455: 2453: 2452: 2447: 2442: 2441: 2440: 2430: 2425: 2420: 2415: 2414: 2413: 2411:Administrators 2403: 2396: 2387: 2384: 2383: 2381: 2380: 2379: 2378: 2373: 2365: 2360: 2355: 2350: 2345: 2340: 2335: 2330: 2329: 2328: 2323: 2313: 2308: 2303: 2297: 2295: 2291: 2290: 2288: 2287: 2282: 2277: 2276: 2275: 2270: 2265: 2260: 2255: 2245: 2240: 2239: 2238: 2233: 2228: 2218: 2213: 2212: 2211: 2201: 2196: 2194:Citation tools 2191: 2186: 2181: 2175: 2173: 2171: 2165: 2164: 2162: 2161: 2156: 2151: 2146: 2141: 2136: 2131: 2126: 2121: 2115: 2113: 2103: 2102: 2100: 2099: 2094: 2089: 2088: 2087: 2082: 2072: 2071: 2070: 2060: 2055: 2054: 2053: 2052: 2051: 2036: 2031: 2026: 2021: 2020: 2019: 2009: 2004: 1999: 1994: 1988: 1986: 1984:Data structure 1980: 1979: 1977: 1976: 1971: 1970: 1969: 1964: 1954: 1953: 1952: 1942: 1937: 1936: 1935: 1930: 1920: 1915: 1910: 1905: 1900: 1898:Template index 1895: 1890: 1885: 1879: 1877: 1872: 1865: 1864: 1862: 1861: 1856: 1855: 1854: 1844: 1843: 1842: 1835:Musical scores 1832: 1831: 1830: 1820: 1819: 1818: 1813: 1808: 1798: 1792: 1790: 1789:Other graphics 1786: 1785: 1783: 1782: 1777: 1772: 1771: 1770: 1765: 1760: 1750: 1745: 1744: 1743: 1738: 1733: 1728: 1723: 1718: 1713: 1703: 1702: 1701: 1696: 1686: 1680: 1678: 1676: 1675:files: images, 1669: 1668: 1666: 1665: 1660: 1655: 1650: 1645: 1644: 1643: 1638: 1633: 1623: 1622: 1621: 1616: 1611: 1600: 1598: 1588: 1587: 1585: 1584: 1579: 1578: 1577: 1572: 1567: 1562: 1557: 1552: 1542: 1537: 1532: 1531: 1530: 1525: 1520: 1515: 1505: 1500: 1495: 1490: 1489: 1488: 1477: 1475: 1469: 1468: 1466: 1465: 1460: 1455: 1450: 1445: 1444: 1443: 1433: 1428: 1426:Recent changes 1423: 1418: 1413: 1408: 1403: 1402: 1401: 1391: 1390: 1389: 1384: 1374: 1369: 1368: 1367: 1357: 1355:Emailing users 1352: 1347: 1342: 1336: 1334: 1330: 1325: 1324: 1322: 1321: 1320: 1319: 1309: 1304: 1303: 1302: 1292: 1291: 1290: 1280: 1275: 1274: 1273: 1263: 1258: 1253: 1248: 1243: 1242: 1241: 1231: 1226: 1225: 1224: 1219: 1214: 1209: 1199: 1198: 1197: 1192: 1181: 1179: 1177:technical help 1176: 1171: 1170: 1145: 1142: 1141: 1136: 1134: 1133: 1126: 1119: 1111: 1093: 1090: 1081: 1078: 1037: 1023: 1020: 918: 912: 909: 898: 893: 890: 851: 849: 848: 838: 835: 742: 737:mw.loader.load 733: 730: 727: 723: 720:Do not assign 716: 710: 707: 701: 698: 679: 662: 659: 658: 657: 651: 649: 646: 645: 644: 643: 642: 620: 619: 607: 605: 602: 601: 600: 599: 598: 592:Userboxes page 545: 544: 541: 538: 535: 532: 529: 515: 513: 510: 509: 508: 502: 496: 490: 484: 476: 473: 471: 468: 467: 466: 454: 452: 451:Editable pages 449: 448: 447: 438: 436: 433: 430: 428: 425: 422: 420: 417: 411: 409: 406: 405: 404: 395: 393: 390: 385: 382: 365: 364: 348: 336: 335: 327: 322: 317: 316: 314: 313: 308: 303: 302: 301: 293: 288: 283: 278: 272: 270: 264: 263: 261: 260: 249: 238: 227: 215: 213: 209: 208: 206: 205: 194: 183: 172: 160: 158: 154: 153: 151: 150: 145: 140: 135: 129: 127: 126:Script writing 123: 122: 120: 119: 114: 109: 103: 101: 97: 96: 94: 93: 88: 83: 78: 73: 67: 65: 61: 60: 55: 53: 52: 45: 38: 30: 23: 15: 14: 13: 10: 9: 6: 4: 3: 2: 2483: 2472: 2469: 2468: 2466: 2451: 2448: 2446: 2443: 2439: 2436: 2435: 2434: 2431: 2429: 2426: 2424: 2421: 2419: 2418:Accessibility 2416: 2412: 2409: 2408: 2407: 2402: 2401: 2397: 2395: 2394: 2389: 2388: 2385: 2377: 2374: 2372: 2369: 2368: 2366: 2364: 2361: 2359: 2356: 2354: 2351: 2349: 2346: 2344: 2341: 2339: 2336: 2334: 2331: 2327: 2324: 2322: 2319: 2318: 2317: 2314: 2312: 2309: 2307: 2304: 2302: 2299: 2298: 2296: 2292: 2286: 2283: 2281: 2278: 2274: 2271: 2269: 2266: 2264: 2263:Editing tools 2261: 2259: 2258:Browser tools 2256: 2254: 2251: 2250: 2249: 2246: 2244: 2241: 2237: 2234: 2232: 2229: 2227: 2224: 2223: 2222: 2219: 2217: 2214: 2210: 2207: 2206: 2205: 2202: 2200: 2197: 2195: 2192: 2190: 2187: 2185: 2182: 2180: 2177: 2176: 2174: 2170: 2169:Customisation 2166: 2160: 2159:Useful styles 2157: 2155: 2152: 2150: 2147: 2145: 2142: 2140: 2137: 2135: 2132: 2130: 2127: 2125: 2122: 2120: 2117: 2116: 2114: 2112: 2108: 2104: 2098: 2095: 2093: 2090: 2086: 2083: 2081: 2078: 2077: 2076: 2073: 2069: 2066: 2065: 2064: 2061: 2059: 2056: 2050: 2047: 2046: 2045: 2042: 2041: 2040: 2037: 2035: 2032: 2030: 2027: 2025: 2022: 2018: 2015: 2014: 2013: 2010: 2008: 2005: 2003: 2000: 1998: 1995: 1993: 1990: 1989: 1987: 1985: 1981: 1975: 1972: 1968: 1965: 1963: 1960: 1959: 1958: 1955: 1951: 1948: 1947: 1946: 1943: 1941: 1938: 1934: 1931: 1929: 1926: 1925: 1924: 1921: 1919: 1916: 1914: 1911: 1909: 1906: 1904: 1901: 1899: 1896: 1894: 1891: 1889: 1886: 1884: 1881: 1880: 1878: 1875: 1870: 1866: 1860: 1857: 1853: 1850: 1849: 1848: 1845: 1841: 1838: 1837: 1836: 1833: 1829: 1826: 1825: 1824: 1823:Math formulas 1821: 1817: 1814: 1812: 1809: 1807: 1806:How to create 1804: 1803: 1802: 1799: 1797: 1794: 1793: 1791: 1787: 1781: 1778: 1776: 1773: 1769: 1766: 1764: 1761: 1759: 1756: 1755: 1754: 1751: 1749: 1746: 1742: 1739: 1737: 1734: 1732: 1729: 1727: 1724: 1722: 1719: 1717: 1714: 1712: 1709: 1708: 1707: 1704: 1700: 1697: 1695: 1692: 1691: 1690: 1687: 1685: 1682: 1681: 1679: 1674: 1670: 1664: 1661: 1659: 1656: 1654: 1651: 1649: 1646: 1642: 1639: 1637: 1634: 1632: 1629: 1628: 1627: 1624: 1620: 1617: 1615: 1612: 1610: 1609:Interlanguage 1607: 1606: 1605: 1602: 1601: 1599: 1597: 1593: 1589: 1583: 1582:Using colours 1580: 1576: 1573: 1571: 1568: 1566: 1563: 1561: 1558: 1556: 1553: 1551: 1548: 1547: 1546: 1543: 1541: 1538: 1536: 1533: 1529: 1528:Time function 1526: 1524: 1521: 1519: 1516: 1514: 1513:For beginners 1511: 1510: 1509: 1506: 1504: 1501: 1499: 1496: 1494: 1491: 1487: 1484: 1483: 1482: 1479: 1478: 1476: 1474: 1470: 1464: 1461: 1459: 1456: 1454: 1451: 1449: 1446: 1442: 1439: 1438: 1437: 1434: 1432: 1429: 1427: 1424: 1422: 1419: 1417: 1414: 1412: 1409: 1407: 1406:Page Curation 1404: 1400: 1397: 1396: 1395: 1392: 1388: 1385: 1383: 1380: 1379: 1378: 1377:Moving a page 1375: 1373: 1370: 1366: 1363: 1362: 1361: 1358: 1356: 1353: 1351: 1348: 1346: 1343: 1341: 1338: 1337: 1335: 1332: 1326: 1318: 1315: 1314: 1313: 1310: 1308: 1305: 1301: 1298: 1297: 1296: 1293: 1289: 1286: 1285: 1284: 1281: 1279: 1276: 1272: 1269: 1268: 1267: 1264: 1262: 1259: 1257: 1254: 1252: 1249: 1247: 1246:Mobile access 1244: 1240: 1237: 1236: 1235: 1232: 1230: 1227: 1223: 1220: 1218: 1215: 1213: 1212:Edit conflict 1210: 1208: 1205: 1204: 1203: 1200: 1196: 1193: 1191: 1188: 1187: 1186: 1185:Browser notes 1183: 1182: 1180: 1178: 1172: 1168: 1166: 1162: 1158: 1154: 1150: 1143: 1139: 1132: 1127: 1125: 1120: 1118: 1113: 1112: 1109: 1105: 1091: 1089: 1087: 1079: 1077: 1075: 1070: 1068: 1067:forced reload 1035: 1033: 1030:(Mozilla) or 1029: 1021: 916: 910: 908: 905: 904:textSelection 897: 891: 847: 846: 841: 840: 836: 740: 738: 731: 729: 725: 722:window.onload 721: 715: 709: 705: 699: 695: 691: 687: 683: 678: 676: 672: 668: 660: 655: 654: 647: 641: 638: 634: 630: 629: 624: 623: 622: 621: 618: 615: 611: 610: 603: 597: 593: 589: 585: 564: 563: 562: 558: 553: 552: 551: 549: 542: 539: 536: 533: 530: 527: 523: 522: 519: 511: 503: 497: 491: 485: 479: 478: 474: 469: 465: 461: 460: 459: 450: 446: 442: 441: 434: 427:Special pages 426: 419:History pages 418: 416: 407: 403: 399: 398: 392:Preview pages 391: 389: 383: 381: 379: 374: 372: 362: 357: 356:the talk page 353: 349: 342: 341: 333: 329: 328: 325: 312: 309: 307: 304: 300: 297: 296: 294: 292: 289: 287: 284: 282: 279: 277: 274: 273: 271: 269: 265: 256: 250: 245: 239: 234: 228: 223: 217: 216: 214: 210: 201: 195: 190: 184: 179: 173: 168: 162: 161: 159: 155: 149: 146: 144: 141: 139: 136: 134: 131: 130: 128: 124: 118: 115: 113: 110: 108: 105: 104: 102: 98: 92: 89: 87: 84: 82: 81:Code snippets 79: 77: 74: 72: 69: 68: 66: 64:Scripts lists 62: 58: 51: 46: 44: 39: 37: 32: 31: 28: 19: 2450:User scripts 2398: 2391: 2235: 2221:User scripts 1997:Main/Article 1957:Transclusion 1940:Substitution 1828:Math symbols 1796:Family trees 1550:Introduction 1421:Random pages 1312:VisualEditor 1256:Page history 1217:Edit toolbar 1190:Bypass cache 1149:the Teahouse 1146: 1095: 1083: 1071: 1066: 1064: 1031: 1028:Shift-Reload 1027: 1025: 914: 901: 895: 842: 735: 719: 713: 703: 693: 689: 685: 681: 674: 670: 666: 664: 627: 547: 546: 525: 517: 457: 414: 387: 375: 370: 368: 360: 351: 291:Greasemonkey 137: 57:User scripts 2433:Referencing 2358:Ultraviolet 2216:IRC Scripts 2179:Preferences 1923:Lua project 1748:Gallery tag 1648:Colon trick 1508:Magic words 1411:Page import 1350:Edit filter 361:(July 2024) 286:User styles 117:Code review 100:New scripts 2406:Help pages 2390:See also: 2306:AntiVandal 2243:User style 2236:Techniques 2209:Hide pages 1992:Namespaces 1684:Media help 1658:Pipe trick 1653:Link color 1565:Collapsing 1486:Cheatsheet 1441:Linksearch 1360:Logging in 1288:Editnotice 1207:CharInsert 1161:talk pages 989:'userinfo' 944:wikiScript 798:'text/css' 408:Edit pages 311:Extensions 189:userscript 2445:Templates 2367:Inactive 2363:WPCleaner 2172:and tools 2154:Span tags 2075:MediaWiki 2044:Archiving 1950:Job queue 1928:Resources 1883:Templates 1869:Templates 1811:Barcharts 1619:Permanent 1614:Interwiki 1535:Redirects 1458:Watchlist 1436:Searching 1266:Page name 1222:Reverting 1153:help desk 859:getScript 212:Userboxes 157:Templates 2465:Category 2423:Accounts 2321:Creating 2058:Template 2002:Category 1918:Lua help 1847:Timeline 1741:SVG help 1481:Wikitext 1473:Wikitext 1345:AllPages 1333:-related 1300:Entering 1278:Printing 1239:Tutorial 1045:location 1032:Shift-F5 995:function 971:'action' 959:'format' 871:function 583:circuitz 526:BAR NAME 518:BAR NAME 371:strongly 324:Shortcut 268:See also 107:Requests 2353:Twinkle 2348:RedWarn 2326:history 2184:Gadgets 2097:Special 1876:modules 1493:Columns 1329:Special 1202:Editing 1175:General 977:'query' 926:getJSON 708:event: 580:Extreme 352:updated 332:WP:US/T 299:scripts 276:Gadgets 2338:Huggle 2333:HotCat 2092:Module 2049:Simple 2029:Portal 1706:Images 1555:Basics 1545:Tables 1051:reload 1039:window 983:'meta' 965:'json' 920:jQuery 810:loader 780:loader 750:loader 726:onLoad 706:onLoad 637:popups 614:JesseW 524:Where 462:From: 443:From: 400:From: 378:mw:API 2376:STiki 2371:igloo 2248:Tools 2226:Guide 2189:Skins 2007:Draft 1945:Purge 1933:To do 1689:Files 1673:Media 1626:Diffs 1604:Links 1596:diffs 1592:Links 1503:Lists 1065:This 950:'api' 628:Lupin 575:'div' 573:with 281:Tools 133:Guide 16:< 2428:Bots 2316:Bots 2231:List 2109:and 2107:HTML 2063:User 2039:Talk 2024:Help 2012:File 1663:URLs 1594:and 1448:Tags 1372:Logs 1331:page 1317:Help 1271:Help 1086:here 1057:true 1001:data 938:util 911:JSON 843:See 837:AJAX 816:load 786:load 756:load 696:)) 694:name 675:name 633:talk 588:Talk 567:'ul' 548:TODO 306:Bots 295:IRC 2111:CSS 1874:Lua 1871:and 1399:FAQ 1234:IRC 1165:IRC 1163:or 686:url 671:url 569:in 2467:: 1159:, 1155:, 1151:, 1088:. 1060:); 1016:); 992:}, 953:), 932:mw 874:() 853:$ 831:); 804:mw 801:); 774:mw 771:); 744:mw 690:id 682:id 667:id 594:) 590:| 358:. 258:}} 252:{{ 247:}} 241:{{ 236:}} 230:{{ 225:}} 219:{{ 203:}} 197:{{ 192:}} 186:{{ 181:}} 175:{{ 170:}} 164:{{ 1167:. 1130:e 1123:t 1116:v 1054:( 1048:. 1042:. 1013:} 1007:{ 1004:) 998:( 986:: 980:, 974:: 968:, 962:: 956:{ 947:( 941:. 935:. 929:( 923:. 886:) 883:} 877:{ 868:, 862:( 856:. 825:, 819:( 813:. 807:. 795:, 789:( 783:. 777:. 765:, 759:( 753:. 747:. 635:| 631:| 586:( 49:e 42:t 35:v

Index

Knowledge (XXG):User scripts
v
t
e
User scripts
Main scripts list
The category for user scripts
Code snippets
Most imported scripts
Deprecated scripts list
Requests
Scripts++ Newsletter
Code review
Guide
Common techniques
Default ResourceLoader modules
Values in mw.config
Load user script
Infobox Knowledge (XXG) user script
userscript
user script table
user script developer
user script developer2
User script developer upon request
user scripts created
See also
Gadgets
Tools
User styles
Greasemonkey

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.