RuneScape:Administrative requests

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to: navigation, search
Shortcuts:
If you are reporting vandalism in progress, use this page.

What this page is for[edit source]

    • Protecting and unprotecting pages.
      Highly visible pages or content that may have links from outside websites are encouraged to have some level of protection. This should be done according to the RuneScape:Protection policy.
    • Moving protected pages and files.
      Due to misuse of the page move tool, some pages are protected from being renamed except by an administrator. If you can make a case for a page move, requests for the page move can happen here.
    • Minor edits to protected pages.
      This commonly applies to protected templates that can have a substantial impact on thousands of pages if they are changed, so caution is urged when they are modified.
    • Importing pages from another wiki.
      While seldom used for content on this wiki, this is an option that is available for bringing in content from another wiki and preserving its edit history, which requires administrator rights.
    • Hiding revisions and edit summaries.
      In the case of copyright violations, privacy violations, offensive material, etc., revisions may be hidden using Special:RevisionDelete.
    • General questions for the administrators.
      You will get a faster reply by joining our Discord server and asking there; however, you can still post here and the administrators will answer to the best of their abilities.

What this page is not for[edit source]

    • Requests for deletion.
      If you believe an article does not meet the wiki's standards, post on Requests for deletion. Spam, accidental page creations, and other similar issues should be tagged with {{D|Reason}}.
    • Issues that do not require administrator tools to resolve.
      Visit the user help page instead. If you're not sure if your problem requires an administrator, post it here.
    • Users who may be vandalising pages.
      Instead, please report the user on the Counter-Vandalism Unit.
    • Requests to become an administrator.
      If you are interested in learning what administrators do and how to become one, please visit Administrators for information on the role and Requests for adminship for the process of becoming an administrator.
    • Account deletion requests.
      This is not possible.
    • Account renaming requests.
      This is currently not possible.

Request Content Security Policy addition[edit source]

Please add https://platform.twitter.com to the content security policy to support embedded twitter histories. I have one on my User: page (and the js to load the history in my common.js). I believe this is a web server thing, not a MediaWiki thing, since the CSP is sent in an HTTP header, not as part of the HTML. According to my web console, the current CSP for runescape.wiki is

script-src https://runescape.wiki 'unsafe-inline' 'unsafe-eval' https://static.cloudflareinsights.com/beacon.min.js https://en.wikipedia.org https://commons.wikimedia.org https://www.mediawiki.org https://code.highcharts.com https://ajax.cloudflare.com/ https://cdnjs.cloudflare.com/ajax/libs/Chart.js/ https://www.google.com/recaptcha/ https://www.gstatic.com/recaptcha/ https://www.google-analytics.com https://www.googletagmanager.com https://*.weirdgloop.org https://*.runescape.wiki https://unpkg.com

Thanks. --Saftzie (talk) 01:04, 1 January 2020 (UTC)

  • Copying from my talk page....
    Is the request on RuneScape:Administrative requests still something necessary? couldn't see anything on your userpages. Seers headband 2 chathead.png Elessar2 (talk) 16:15, 29 February 2020 (UTC)
    Yes. The Twitter JS won't run, because the CSP prohibits it. Also, the widget is still there on my User: page. --Saftzie (talk) 23:34, 3 March 2020 (UTC)
@Saftzie Raised a PR to fix this, I'll update when it's merged. cqm talk 09:32, 7 March 2020 (UTC)
PR has been rejected by sysadmins on the basis that modifying the CSP for user scripts isn't a precedent they want to set. There's an open bug in MediaWiki to allow the CSP to be set on a per-user basis which would fix this. I also raised the question of re-adding the twitter tags we used to have on Wikia - at the time of the fork, no replacement was available. Since then the Wikia extension had been ported, so that's an option to explore. cqm talk 09:10, 8 March 2020 (UTC)
You can just use my JS, too. I doubt the extension does anything differently. Seriously, it just parses a tag, then runs JS from twitter.com. Do we not trust twitter.com? This seems like functionality the wiki could use on, say, the Main Page. --Saftzie (talk) 22:35, 10 March 2020 (UTC)
Just to add on here, even though this is old: we're currently looking to reduce our CSP a bit so don't expect expansions to it for the time being. Quest.png Gaz Lloyd 7:^]Events!99s 01:16, 22 April 2020 (UTC)

AbuseFilter rule 13[edit source]

AbuseFilter rule 13 (the warn-IPs-when-editing-in-userspace rule) currently has some exceptions for a few particular project-like pages. I feel like it would be more elegant (and more convenient for users who can't edit filters themselves) to let users somehow tag such pages themselves instead, and have that stop this filter from triggering - something like a mostly empty Template:NoWarnIP and replacing the filter's individual exceptions with something like | "{{NoWarnIP}}" in old_wikitext perhaps?

Also, as a side note, that filter uses the deprecated variable article_text, which should probably be replaced with page_title. -Hourglass (2011 Hallowe'en event) detail.png I Am Me Talk III The Spark.png- 19:17, 9 February 2020 (UTC)

I took a look in the code with regards to the deprecated variables and it appears that the REL1_31 branch (which I think we use as we're using mw 1.31.*) does not have these deprecations yet. It's harder to tell if the variables exist in that version, but I suspect not. Until we upgrade, I don't think we should update the abusefilters to avoid the deprecated variables. cqm talk 22:13, 4 April 2020 (UTC)
We do not support the new variable names yet (they throw syntax errors if you try). Quest.png Gaz Lloyd 7:^]Events!99s 01:16, 22 April 2020 (UTC)

pengLocations[edit source]

Whatever changes have been made to JS in the past week, pengLocations.js no longer runs. --Saftzie (talk) 00:47, 25 March 2020 (UTC)

@Saftzie I'm not seeing anything obvious that fixed this, but nonetheless it appears to now be working on Distractions and Diversions/Locations/Penguin Hide and Seek. Can you confirm or point to somewhere it's not working? cqm talk 22:01, 4 April 2020 (UTC)
It doesn't work for me. There are also no errors in my web console. Whatever has gone wrong, it appears to affect everything that loads as a gadget. --Saftzie (talk) 00:17, 8 April 2020 (UTC)

Fix switchfo boxes breaking Doogle maps[edit source]

Currently, the interactive maps become broken if you switch any switchfo box. Apparently, the leafletjs code isn't intended to gracefully support having its DOM container being ripped out from under it. However, there's a simple solution: Tell the Kartographer code to re-initialise all kartographer map frames on the page via emitting a wikipage.content event.

One efficient way to do this would be to modify MediaWiki:Gadget-switch-infobox.js's init() function to register a post-switch callback if a Kartographer map is detected at page load. In others, replace line 608 with the following:

608 		window.switchEventManager.applyDefaultVersion();
609 
610 		// reinitialize any kartographer map frames added due to a switch
611 		if ($('.infobox-switch .mw-kartographer-map').length
612 		 || $('.switch-infobox .mw-kartographer-map').length
613 		 || $('.rsw-synced-switch .mw-karographer-map').length) {
614 			window.switchEventManager.addPostSwitchEvent(function() {
615 				mw.hook('wikipage.content').fire($('#mw-content-text'))
616 			});
617 		}
618 }

MrDew (talk) 07:44, 29 May 2020 (UTC)

Edited code snippet to target the entire article contents in the event after realizing the Kartographer extension tears down all maps on the page and then only rebuilds the ones targeted by the event. MrDew (talk) 08:29, 29 May 2020 (UTC)
Done - Habblet (talk) 09:46, 29 May 2020 (UTC)