User talk:Chieftain Alex/ATools.js

From Guild Wars 2 Wiki
Jump to navigationJump to search

Since switching to vector (and having uninstalled gw2wt anyway), I miss all the useful stuff like "diff last" and the lazy-bastard buttons like del tags and stuff. Does this thing do any of those things? If so, how2install pls. If not, waah. — snogratUser Snograt signature.png 09:38, 2 May 2014 (UTC)

Atools has 5.6k7.4k characters, and GW2WT has 40.9k characters - theres a reason why atools is shorter and unfortunately its because I binned a lot of features. Lets see:
0No It hasn't got delete tags, since that whole popup window thing needed a fairly chunky bit of code and if you're an admin you just delete it unless its a real article... I could probably get it to add a delete tag to the top of the page in the editing window without too much hassle. I guess a speedy tag wouldn't be a bad idea. It'd have to add <noinclude>{{delete|spam|speedy}}</noinclude>... Whether I could get the cursor to land in the edit box between the tags idk.
1Yes It has got "diff last" (top-right of the window)
1Yes + links to all of a user's userpages/user images (left-bottom).
1Yes Apparently (just tested) it has buttons to tag screenshots/icons with, but bluntly those could do with improving since they just add it to the top of the page + then immediately save it. And this has been less useful since the image tag enforcing js was applied.
my regex is a bit better than when I cobbled this together too. It used to occasionally break on pages with wierd characters in the title, e.g. pages with quotation marks in the titles, I forget if I fixed that or not.
For "installing".. just add importScript("User:Chieftain Alex/ATools.js"); // [[User:Chieftain Alex/ATools.js]] to Special:MyPage/vector.js. and it should work I reckon. (wikilink is just so it gets entered in whatlinkshere.
I've got a poster to do for an exhibition though, so no ETA on other features.. maybe a few hours :p -Chieftain AlexUser Chieftain Alex sig.png 10:25, 2 May 2014 (UTC)
That wikilink will stop working when we upgrade to MW 1.22 - CSS/JS pages will no longer be parsed as wikitext. —Dr Ishmael User Dr ishmael Diablo the chicken.png 12:46, 2 May 2014 (UTC)
oh goody. -Chieftain AlexUser Chieftain Alex sig.png 12:56, 2 May 2014 (UTC)
I suppose that means that we finally get syntax highlighting in our .js and css files too! -Chieftain AlexUser Chieftain Alex sig.png 13:43, 2 May 2014 (UTC)
Update:
1Yes Delete tags for speedy click once + it tags stuff (edit page, edit summary, saves)
1Yes Screenshot/icon tag button - replaces existing arenanet image tags on the page.
hopefully I've not introduced any new bugs while cleaning up whitespace + pruning dead code. -Chieftain AlexUser Chieftain Alex sig.png 13:41, 2 May 2014 (UTC)
The summary of changes for v1.21 state that Extension:SyntaxHighlight GeSHi is now bundled with MW. And if Wikipedia can be trusted as a reference, yes, that means we get JS/CSS syntax highlighting. —Dr Ishmael User Dr ishmael Diablo the chicken.png 13:51, 2 May 2014 (UTC)
Thank you, Alex. I shall enjoy it while it lasts :) — snogratUser Snograt signature.png 16:27, 2 May 2014 (UTC)
TYPO! You misspelled "remnant" on the speedy del tag tooltip. Hehe. — snogratUser Snograt signature.png 16:31, 2 May 2014 (UTC)
Good spot, ctrl+f5 to clear the version you're using at the moment if the typo still persists -Chieftain AlexUser Chieftain Alex sig.png 16:50, 2 May 2014 (UTC)
As suspected, the quotes on titles had not been fixed, but its now working. -Chieftain AlexUser Chieftain Alex sig.png 20:05, 2 May 2014 (UTC)