Wikipedia:WikiProject User scripts/Requests/Fulfilled/Archive 1: Difference between revisions

Content deleted Content added
MalnadachBot (talk | contribs)
m Fixed Lint errors in signatures. (Task 2)
MalnadachBot (talk | contribs)
m Fixed Lint errors. (Task 12)
 
(2 intermediate revisions by the same user not shown)
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|<fontspan colorstyle="color:blue;">Voice</fontspan><fontspan colorstyle="color:darkblue;">-of-</fontspan><fontspan colorstyle="color:black;">All</fontspan>]]''' 20:08, 3 July 2006 (UTC)
 
== 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|<fontspan colorstyle="color:blue;">Voice</fontspan><fontspan colorstyle="color:darkblue;">-of-</fontspan><fontspan colorstyle="color:black;">All</fontspan>]]''' 20:17, 3 July 2006 (UTC)
 
== Vandal-fighting Firefox extension ==
Would you happen to know how to make a firefox extension using Javascript? It would be very simple and used to fight vandalism. The basic idea is to feed RC diff's into firefox, and let it determine which pages contain text (such as an obscenity, LOL, or ...) listed in a file. For pages that don't contain anything on this list, the tab is closed. The others remain open and ready to be examined. If you can't figure out how to hookup the IRC RC output into firefox, then it could be used with [[WP:CDVF]] to open new tabs in firefox to be checked. I found a [http://roachfiend.com/archives/2004/12/08/how-to-create-firefox-extensions/ guide to making extensions], but it says you need to know Javascript. Thanks. &mdash; <small>[[User:Brian0918|<b><font style="color=:black;">BRIAN</font></b>]][[User_talk:Brian0918|<fontspan colorstyle="color:gray;">0918</fontspan>]] &bull; 2005-10-30 03:50</small>
 
: Got this on my talk page. I think it might just be doable. [[User:Alphax|Alphax]]&nbsp;<sup >[[User talk:Alphax|&tau;]][[Special:Emailuser/Alphax|&epsilon;]][[Special:Contributions/Alphax|&chi;]]</sup > 03:56, 30 October 2005 (UTC)
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|<fontspan colorstyle="color:blue;">Voice</fontspan><fontspan colorstyle="color:darkblue;">-of-</fontspan><fontspan colorstyle="color:black;">All</fontspan>]]''' 20:17, 3 July 2006 (UTC)
 
== 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|<fontspan style="border: solid 2px #4F87F9; background-color: #CBE6FF"; color=:#4f87f9;">'''&nbsp;Alfakim&nbsp;'''</fontspan>]]-- [[User_talk:Alfakim|<fontspan style="border: solid 2px #4F87F9; background-color: #CBE6FF"; color=:#4f87f9;">'''&nbsp;talk&nbsp;'''</fontspan>]] 07:01, 3 February 2006 (UTC)
 
: <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|<fontspan style="border: solid 2px #4F87F9; background-color: #CBE6FF"; color=:#4f87f9;">'''&nbsp;Alfakim&nbsp;'''</fontspan>]]-- [[User_talk:Alfakim|<fontspan style="border: solid 2px #4F87F9; background-color: #CBE6FF"; color=:#4f87f9;">'''&nbsp;talk&nbsp;'''</fontspan>]] 01:23, 5 February 2006 (UTC)
 
::: <tt>if ( ! document.title.match( /.*Talk:.*/ig ) <s>&& ! document.title.match( /^Editing.*/g )</s> ) { }</tt> &#126;[[User:Mdd4696 |MDD]][[User_talk:Mdd4696 |46]][[Special:Contributions/Mdd4696 |96]] 03:13, 5 February 2006 (UTC)
 
:::: thanks! --[[User:Alfakim|<fontspan style="border: solid 2px #4F87F9; background-color: #CBE6FF"; color=:#4f87f9;">'''&nbsp;Alfakim&nbsp;'''</fontspan>]]-- [[User_talk:Alfakim|<fontspan style="border: solid 2px #4F87F9; background-color: #CBE6FF"; color=:#4f87f9;">'''&nbsp;talk&nbsp;'''</fontspan>]] 11:30, 5 February 2006 (UTC)
 
::::: 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. --<fontspan sizestyle="1font-size:x-small;">[[User:GeorgeMoney|GeorgeMoney]]&nbsp;<sup>[[User_talk:GeorgeMoney|T]]&middot;[[Special:Contributions/GeorgeMoney|C]]</sup></fontspan> 01:02, 17 May 2006 (UTC)
 
::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, --<fontspan sizestyle="1font-size:x-small;">[[User:GeorgeMoney|GeorgeMoney]]&nbsp;<sup>[[User_talk:GeorgeMoney|T]]&middot;[[Special:Contributions/GeorgeMoney|C]]</sup></fontspan> 04:17, 17 May 2006 (UTC)
 
== 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. --<fontspan sizestyle="1font-size:x-small;">[[User:GeorgeMoney|GeorgeMoney]]&nbsp;<sup>[[User_talk:GeorgeMoney|T]]&middot;[[Special:Contributions/GeorgeMoney|C]]</sup></fontspan> 06:11, 10 May 2006 (UTC)
 
: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. --<fontspan sizestyle="1font-size:x-small;">[[User:GeorgeMoney|GeorgeMoney]]&nbsp;<sup>[[User_talk:GeorgeMoney|T]]&middot;[[Special:Contributions/GeorgeMoney|C]]</sup></fontspan> 15:04, 10 May 2006 (UTC)
 
:::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]]''&nbsp;<sub>[[User talk:AndyZ|t]]</sub> 21:29, 9 June 2006 (UTC)
Line 325:
 
== Add a welcome message to a user's talk page ==
I've got an easy one. I am wanting a script that automatically puts a welcome message on a user's talk page. I would manually navigate to the user's talk page. Then I would click the "Welcome" text in toolbox and it would automatically edit the page, add the welcome text (in my case <code><nowiki>{{subst:welcomeh}}</nowiki></code>) and the edit summary and then save. It should be easy to modify if one user wants to use a different welcome template.--[[User:Nmajdan|<fontspan style="font-size:11px; font-weight:bold; font-family:verdana, sans-serif;">NMajdan</fontspan>]]&bull;[[User talk:Nmajdan|<fontspan style="font-size:9px; font-family:verdana, sans-serif; color:#000000;">talk</fontspan>]] 14:53, 11 January 2007 (UTC)
 
:Nevermind, I think I was able to edit an existing script to suit my needs. [[User talk:Nmajdan/welcome newuser.js]]--[[User:Nmajdan|<fontspan style="font-size:11px; font-weight:bold; font-family:verdana, sans-serif;">NMajdan</fontspan>]]&bull;[[User talk:Nmajdan|<fontspan style="font-size:9px; font-family:verdana, sans-serif; color:#000000;">talk</fontspan>]] 16:42, 11 January 2007 (UTC)
 
== Add speedy deletion templates to a page ==