Skip to content

Commit

Permalink
Link to Link Count in all namespaces (#48)
Browse files Browse the repository at this point in the history
* Link to Link Count in all namespaces

* Update MoreMenu.messages.en.js

* Alphabetize
  • Loading branch information
nardog authored Feb 24, 2024
1 parent 7aed482 commit 6dd9bc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/MoreMenu.messages.en.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ $.extend(window.MoreMenu.messages, {
"global-contributions-xtools": "Global edits – XTools",
"ip-lookup": "IP lookup",
"latest-diff": "Latest diff",
"link-count": "Link count",
"mass-message-log": "Mass message log",
"merge-page": "Merge",
"move-log": "Move log",
Expand Down Expand Up @@ -75,7 +76,6 @@ $.extend(window.MoreMenu.messages, {
"top-edited-pages": "Top edited pages",
"traffic-report": "Traffic report",
"transclusions": "Transclusions",
"transclusion-count": "Transclusion count",
"unblock-user": "Unblock user",
"undelete-page": "Undelete",
"upload-log": "Upload log",
Expand Down
7 changes: 3 additions & 4 deletions src/MoreMenu.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,13 @@ window.MoreMenu.page = config => ({
url: `https://copyvios.toolforge.org?lang=${config.project.domain.split('.')[0]}&project=${config.project.domain.split('.')[1]}&title=${config.page.encodedName}&oldid=&action=search&use_engine=1&use_links=1`,
pageExists: true,
},
'link-count': {
url: `https://linkcount.toolforge.org/?project=${config.project.domain}&page=${config.page.encodedName}`,
},
'traffic-report': {
url: `https://pageviews.wmcloud.org?project=${config.project.domain}&pages=${config.page.encodedName}`,
pageExists: true,
},
'transclusion-count': {
url: `https://linkcount.toolforge.org/?project=${config.project.domain}&page=${config.page.encodedName}`,
namespaceRestrict: [2, 4, 5, 10, 11, 12, 13, 100, 101, 828],
},
'transclusions': {
url: `https://${config.project.domain}/w/index.php?title=Special:WhatLinksHere/${config.page.encodedName}&hidelinks=1&hideredirs=1`,
namespaceRestrict: [2, 4, 5, 10, 11, 12, 13, 100, 101],
Expand Down

0 comments on commit 6dd9bc6

Please sign in to comment.