Wikipedia:WikiProject User scripts/Requests/Fulfilled/Archive 1: Difference between revisions
Content deleted Content added
MalnadachBot (talk | contribs) m Fixed Lint errors. (Task 12) |
|||
(6 intermediate revisions by 3 users 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|<
== 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 ==
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. — <small>[[User:Brian0918|<b
: Got this on my talk page. I think it might just be doable. [[User:Alphax|Alphax]] <sup >[[User talk:Alphax|τ]][[Special:Emailuser/Alphax|ε]][[Special:Contributions/Alphax|χ]]</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|<
== 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 191:
== View source for every page ==
A view source and edit button for every page. The view source is if you want to see the code, but you don't want to accidentally save the page, or leave it there, and then come back and not save your major edit, because you thought you were just looking at script. --<i><b>[[User:GeorgeMoney|<
: I have just created [[User:Misza13/Scripts/View source]]. I hope it's what you had in mind. [[User:Misza13|Misza]][[WP:ESP|<span style="color:green">'''13'''</span>]] <sup><u>'''[[User talk:Misza13|T]] [[Special:Contributions/Misza13|C]]'''</u></sup> 20:29, 19 April 2006 (UTC)
Line 201:
== Watchlist a single section of a page ==
A way to put on your watchlist only a section of a page. For example, if there is a talk page and you are having a discussion, but other discussions are going on too, you don't want those discussions clouding up your watchlist, you just want to watch the discussion going on that you care about. So for example, you are having a discussion on [[User Talk:Example|Example's talk page]], and the section header is "Hello". Then he gets a vandalism notice under a new section header titled "Vandalism". You watch the page and you see an edit summary <span class="comment"><span class="autocomment">→Vandalism -</span></span>. The edit was by User:NotExample. If User:Example responded to your query, you won't know, because the edit by User:NotExample replaced the edit by User:example in your watch list. Thank you --<i><b>[[User:GeorgeMoney|<
:This request and the next one would be much better done in mediawiki instead of as a user script. I suggest you file feature request bug(s) on [http://bugzilla.wikipedia.org bugzilla]. [[User:Lupin|'''Lupin''']]|[[User_talk:Lupin|talk]]|[[Wikipedia:Tools/Navigation popups|popups]] 00:53, 16 May 2006 (UTC)
== Insert user page links ==
A one way click to add a link to a username. For example: You click a tab, then a message box pops up that says "What user". Then you type the username in the box and the script puts <nowiki>[[User:Example|Example]]</nowiki> into the page. If the page User:Example doesn't exist, then it links to the talk page of that user. So now it is <nowiki>[[User_Talk:Example|Exmple]]</nowiki>. If the talk page doesn't exist, then it links to contributions. So now you have <nowiki>[[Special:Contributions/Example|Example]]</nowiki>. Also, there should be an option that on choices 1 and 3, you have a link to the talk page in parenthases (even if it doesn't exist). So if you choose that option, then #1 would look like this: <nowiki>[[User:Example|Example]] ([[User_Talk:Example|Talk]])</nowiki>. You can do all of this manually, but you would have to cut and paste, and put wikilinks, and it would take too long. ''I know this is a bit confusing, so any questions, ask me.'' Thank you --<i><b>[[User:GeorgeMoney|<
: Try [[User:Ilmari_Karonen/editbutton_user.js]]. Instead of trying to detect which pages exist, which would require a server-side lookup, it inserts <code><nowiki>{{subst:user|Example}}</nowiki></code>, which provide all three links like this: [[User:Example|{{{2|Example}}}]] ([[User talk:Example|talk]] • [[Special:Contributions/Example|contribs]]). —[[User:Ilmari Karonen|Ilmari Karonen]] <small>([[User talk:Ilmari Karonen|talk]])</small> 16:54, 8 May 2006 (UTC)
Line 216:
== List all red links on a page ==
A list of all red links on a page. --<i><b>[[User:GeorgeMoney|<
<pre><nowiki>
function listRedLinks() {
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 256:
Auto-unsigned: An function to add the last name/ip (from the version-history, with one click...) with authentic date (like godmode-light.js) to an unsigned post/ comment (with the [[template:unsigned]]) —[[User:Olliminatore|Olliminatore]] 23:29, 8 May 2006 (UTC)
: Is this what you want? [[User:Invitatious/scripts#Unsigned comments script]] Edit a talk page, click after the comment, select the tab at the top, and save. Read my user page for further details.[[User:Invitatious|Invitatious]] 18:40, 6 June 2006 (UTC)
::Yes, that's it! I'll test it now. Very nice, an of the most wanted scripts :) cheers —[[User:Olliminatore|Olliminatore]] 17:30, 8 June 2006 (UTC)
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)
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|<
:Nevermind, I think I was able to edit an existing script to suit my needs. [[User talk:Nmajdan/welcome newuser.js]]--[[User:Nmajdan|<
== Add speedy deletion templates to a page ==
How about a script to allow me to post a speedy deletion template on a page. - [[User:Patricknoddy|'''Patricknoddy''']]
: Although I can't find it right now, I'm pretty sure we already have something like that.
|