Aklapper has submitted this change and it was merged.

Change subject: +sidebar userscript
......................................................................


+sidebar userscript

Change-Id: I5cc7b104d0b5bb50b9fe122fbb93776bbaa04f65
---
A wikimedia-bugzilla-sidebar.user.js
1 file changed, 36 insertions(+), 0 deletions(-)

Approvals:
  Aklapper: Verified; Looks good to me, approved



diff --git a/wikimedia-bugzilla-sidebar.user.js 
b/wikimedia-bugzilla-sidebar.user.js
new file mode 100644
index 0000000..42fbe29
--- /dev/null
+++ b/wikimedia-bugzilla-sidebar.user.js
@@ -0,0 +1,36 @@
+// ==UserScript==
+// @name       WMF Bugzilla: add links to sidebar
+// @namespace  http://arctus.nl
+// @version    0.1
+// @description  Adds direct bug creations urls & browse project link to the 
sidebar. Adapt this script to your needs!
+// @match      https://bugzilla.wikimedia.org/*
+// @copyright  2014, Merlijn van Deen; MIT licensed
+// @require    https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
+// ==/UserScript==
+
+/* Configuration follows, and takes the form of
+   extraLinks['project/component name'] = 'https://direct url to bug creation'
+
+   You can find the url by opening the 'Report Bug' screen, setting relevant
+   values, and clicking the 'Remember values as bookmarkable template' button.
+   On that page, right-click the "Bug entry template" link, select "Copy link
+   address" and use that URL below.
+
+*/
+
+var extraLinks = {};
+extraLinks['pywikibot'] = 
'https://bugzilla.wikimedia.org/enter_bug.cgi?assigned_to=Pywikipedia-bugs%40lists.wikimedia.org&attach_text=&blocked=&bug_file_loc=http%3A%2F%2F&bug_severity=normal&bug_status=NEW&cf_browser=---&cf_platform=---&comment=&component=General&contenttypeentry=&contenttypemethod=autodetect&contenttypeselection=text%2Fplain&data=&dependson=&description=&form_name=enter_bug&keywords=&maketemplate=Remember%20values%20as%20bookmarkable%20template&op_sys=All&product=Pywikibot&rep_platform=All&short_desc=&target_milestone=---&version=core%20%282.0%29';
+extraLinks['tsreports'] = 
'https://bugzilla.wikimedia.org/enter_bug.cgi?assigned_to=valhallasw%40arctus.nl&attach_text=&blocked=&bug_file_loc=http%3A%2F%2F&bug_severity=normal&bug_status=NEW&cf_browser=---&cf_platform=---&comment=&component=tsreports&contenttypeentry=&contenttypemethod=autodetect&contenttypeselection=text%2Fplain&data=&dependson=&description=&form_name=enter_bug&keywords=&maketemplate=Remember%20values%20as%20bookmarkable%20template&op_sys=All&product=Tool%20Labs%20tools&rep_platform=All&short_desc=&target_milestone=---&version=unspecified';
+extraLinks['DBQ'] = 
'https://bugzilla.wikimedia.org/enter_bug.cgi?assigned_to=wikibugs-l%40lists.wikimedia.org&attach_text=&blocked=&bug_file_loc=http%3A%2F%2F&bug_severity=normal&bug_status=NEW&cf_browser=---&cf_platform=---&comment=&component=Database%20Queries&contenttypeentry=&contenttypemethod=autodetect&contenttypeselection=text%2Fplain&data=&dependson=&description=&form_name=enter_bug&keywords=&maketemplate=Remember%20values%20as%20bookmarkable%20template&op_sys=All&product=Tool%20Labs%20tools&rep_platform=All&short_desc=&target_milestone=---&version=unspecified';
+
+/* Code follows */
+document.jQuery = jQuery;
+
+/* Insert direct bug creation links */
+$('#panel a[href="enter_bug.cgi"]').parent().append('<ul 
id="specificBugCreationLinks"></ul>')
+
+for(var key in extraLinks) {
+   $("#specificBugCreationLinks").append(
+       "<li>in " + document.jQuery('<a>', {href:extraLinks[key], 
text:key})[0].outerHTML + "</li>"
+   );
+};

-- 
To view, visit https://gerrit.wikimedia.org/r/105618
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5cc7b104d0b5bb50b9fe122fbb93776bbaa04f65
Gerrit-PatchSet: 2
Gerrit-Project: wikimedia/bugzilla/triagescripts
Gerrit-Branch: master
Gerrit-Owner: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Aklapper <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to