Wikipedia:WikiProject User scripts/Requests/Fulfilled/Archive 1: Difference between revisions
Content deleted Content added
MalnadachBot (talk | contribs) m Fixed Lint errors. (Task 12) |
MalnadachBot (talk | contribs) m Fixed Lint errors. (Task 12) |
||
Line 11:
A way to revert multiple page moves at once. I've got most of this written(in a very insecure manner), but I can't iron out the last bugs. Bug me about it in IRC. [[User:JesseW|JesseW]] 06:51, 19 August 2005 (UTC)
:See this[http://en.wikipedia.org/wiki/User:Voice_of_All/UsefulJS#Admin_rollback.2Fdeletion_tools_and_backlog_bar_.28Requires_Addtab.29].'''[[User talk:Voice of All|<
== Revert all changes by a user ==
Line 22:
::: [[User:Cryptic|Cryptic]] has one: [[Special:Undelete/User:Cryptic/rollbackalledits.js|User:Cryptic/rollbackalledits.js]]. Haven't tried it myself, but the description matches your request. —[[User:Ilmari Karonen|Ilmari Karonen]] <small>([[User talk:Ilmari Karonen|talk]])</small> 13:24, 21 March 2006 (UTC)
::: Also, see this [http://en.wikipedia.org/wiki/User:Voice_of_All/UsefulJS#Admin_rollback.2Fdeletion_tools_and_backlog_bar_.28Requires_Addtab.29].'''[[User talk:Voice of All|<
== Vandal-fighting Firefox extension ==
Line 99:
:: [[User:Lupin|'''Lupin''']]|[[User_talk:Lupin|talk]]|[[Wikipedia:Tools/Navigation popups|popups]] 01:15, 27 January 2006 (UTC)
: It is possible, check the last script in my monobook [[User:Voice of All/monobook.js]], and you will find a cross-site XML request system and instructions. I use a similar code to check Commons images licenses.'''[[User talk:Voice of All|<
== Do something if X and Y aren't the case ==
Can someone quickly show me the JavaScript to say "Do this only if X and Y arent the case"? I have a script that adds a tab at the top only if the page isn't an Edit page. I want to extend that so it only adds the tab if it isn't an Edit page AND it isn't a Talk page. (It's the first script on my scripts btw). Thanks. --[[User:Alfakim|<
: <tt>if ( ! X && ! Y ) { doThis(); }</tt> [[User:Lupin|'''Lupin''']]|[[User_talk:Lupin|talk]]|[[Wikipedia:Tools/Navigation popups|popups]] 21:37, 4 February 2006 (UTC)
:: Thankyou so much, but might I ask one other favour? I'm trying to detect when a page is a talk page ("If not talk page or editing page, do this"). I got the editing sorted as all editing pages start with "Editing " but only some talk pages start with "Talk:" so is there an easier way to detect a talk page? --[[User:Alfakim|<
::: <tt>if ( ! document.title.match( /.*Talk:.*/ig ) <s>&& ! document.title.match( /^Editing.*/g )</s> ) { }</tt> ~[[User:Mdd4696 |MDD]][[User_talk:Mdd4696 |46]][[Special:Contributions/Mdd4696 |96]] 03:13, 5 February 2006 (UTC)
:::: thanks! --[[User:Alfakim|<
::::: There is [[Wikipedia:WikiProject_User_scripts/Techniques#Identifying_the_type_of_page|this]], an alternate method which I prefer. -[[User:raylu|raylu]]<sup>[[User_talk:raylu|T]]</sup> 02:26, 10 April 2006 (UTC)
Line 241:
</nowiki></pre> (Requires addToolboxLink, available at [[WP:JS]]). [[User:Lupin|'''Lupin''']]|[[User_talk:Lupin|talk]]|[[Wikipedia:Tools/Navigation popups|popups]] 01:26, 16 May 2006 (UTC)
:I added it to [[User:GeorgeMoney/monobook.js|my monobook]], and it didn't work, and it made the other scripts go crazy. --<
::The script requires addToolboxLink, available at [[WP:JS]]. [[User:Lupin|'''Lupin''']]|[[User_talk:Lupin|talk]]|[[Wikipedia:Tools/Navigation popups|popups]] 04:11, 17 May 2006 (UTC)
:::I was sure I installed all of those helper functions. I must have missed that one. Now it works. Thanks, --<
== One-click navigation to article for selected word ==
Line 263:
== Personal page shortcuts ==
A way to type in a shortcut in the search box without having to create a page such as WP:BJAODN. With this script, you could type for example "U:GM" and it would link to "User:GeorgeMoney". If I created that page, someone would delete it, so with this script, you don't have to create a page to make a shortcut. --<
:That sounds like something that should be more OS or browser specific; I understand one can set up Firefox so that arbitrary bits of text are converted into arbitrary links, which would appears to satisfy your goal, and I know that I can easily do that with [[ratpoison]] and [[sirfraw]]; is a user script really the best course? --[[User:Marudubshinki |maru]] [[User talk:Marudubshinki| (talk)]] [[Special:Contributions/Marudubshinki | contribs]] 06:51, 10 May 2006 (UTC)
::If I set up firefox to do it, then I will have to type it in the address bar. I want to type it in the Wikipedia search bar, so if I am not at wikipedia, then it won't work. --<
:::Actually, I think [[User:AndyZ/monobook.js/personalredirect.js]] works. Just add <code><nowiki>if(thePage=="THE REDIRECT"){document.___location.href = wikiURL+"THE PAGE YOU WISH TO REACH"}</nowiki></code> for every redirect you would like. ''[[User:AndyZ|Andy]]'' <sub>[[User talk:AndyZ|t]]</sub> 21:29, 9 June 2006 (UTC)
|