Skip to content

Instantly share code, notes, and snippets.

View ciencia's full-sized avatar

Jesús Martínez Novo ciencia

View GitHub Profile
@ciencia
ciencia / ext-DisplayTitle-excludenamespaces-REL1_43.patch
Created February 15, 2026 11:26
ext-DisplayTitle-excludenamespaces-REL1_43
commit a4f33443bdcf471633ac1641c5f3ad65082f7038
Exclude links to pages in configurable namespaces
Allow to customize which namespaces shouldn't get affected by
DisplayTitle when linking to them.
This would allow excluding the User: namespace, for example, to prevent
abuse.
@ciencia
ciencia / ext-DisplayTitle-StripTagsOnlyInSearch.patch
Created February 15, 2026 10:56
ext-DisplayTitle-StripTagsOnlyInSearch
commit 341115750af4e93c91b29c23577c37fa173d68e9
Strip tags only in Special:Search
The way T355481 was solved, implies removing any HTML tag from the link
text, and then compare that text with the original title, rendering the
DisplayTitle property instead of the provided text.
Outside of the Special:Search results, it prevents *any form of styles*
added to the link text when the stripped text matches the page title.
@ciencia
ciencia / ext-RelatedArticles-removetracking.patch
Created July 11, 2025 08:45
ext-RelatedArticles-removetracking
@ciencia
ciencia / ext-SocialProfile-revert_d2c37ac.patch
Created April 23, 2025 21:31
MediaWiki ext-SocialProfile revert d2c37ac (breaks 1.39)
commit d2c37aceb43264839ab5594675bbd7ae065e992a
Author: Jack Phoenix <ashley@uncyclomedia.co>
Date: Fri Mar 28 15:39:25 2025 +0200
Fix "Deprecated: Use of string return from RemoveAvatar::getDescription() was deprecated in MediaWiki 1.41" on Special:SpecialPages on MW 1.43
Change-Id: I971a5fccdb8212ecb6619122a4652d67127bd8cd
diff --git b/UserProfile/includes/specials/SpecialRemoveAvatar.php a/UserProfile/includes/specials/SpecialRemoveAvatar.php
index 19ee4c3b..38872af6 100644
@ciencia
ciencia / ext-SocialProfile-revert_ac73d7.patch
Created April 12, 2025 10:19
MediaWiki ext-SocialProfile revert ac73d7 (breaks 1.39)
diff --git a/SocialProfileFileBackend.php b/SocialProfileFileBackend.php
index 648078d2..56121239 100644
--- a/SocialProfileFileBackend.php
+++ b/SocialProfileFileBackend.php
@@ -12,7 +12,6 @@
*/
use MediaWiki\MediaWikiServices;
-use MediaWiki\WikiMap\WikiMap;
@ciencia
ciencia / ext-CheckUser-nondestructiveupgrade-REL1_43.patch
Created March 6, 2025 22:28
MediaWiki ext-CheckUser updater no destructive updates REL1_43
diff --git a/src/HookHandler/SchemaChangesHandler.php b/src/HookHandler/SchemaChangesHandler.php
index 6e6575d5..9708eeb2 100644
--- a/src/HookHandler/SchemaChangesHandler.php
+++ b/src/HookHandler/SchemaChangesHandler.php
@@ -241,11 +241,11 @@ class SchemaChangesHandler implements LoadExtensionSchemaUpdatesHook, CheckUserQ
'cu_private_event',
"$base/$dbType/patch-cu_private_event-def.sql"
);
- $updater->dropExtensionField(
- 'cu_log',
@ciencia
ciencia / ext-AbuseFilter-nondestructiveupgrade-REL1_43.patch
Created March 5, 2025 23:01
MediaWiki ext-AbuseFilter updater no destructive updates REL1_43
diff --git a/includes/Hooks/Handlers/SchemaChangesHandler.php b/includes/Hooks/Handlers/SchemaChangesHandler.php
index 7be91ca1..50ce16dd 100644
--- a/includes/Hooks/Handlers/SchemaChangesHandler.php
+++ b/includes/Hooks/Handlers/SchemaChangesHandler.php
@@ -182,17 +182,17 @@ class SchemaChangesHandler implements LoadExtensionSchemaUpdatesHook {
MigrateActorsAF::class,
] );
- // 1.43
- $updater->addExtensionUpdate( [
@ciencia
ciencia / ext-OATHAuth-nondestructiveupgrade-REL1_43.patch
Last active July 2, 2025 14:39
MediaWiki ext-OATHAuth updater no destructive updates REL1_43
diff --git a/src/Hook/UpdateTables.php b/src/Hook/UpdateTables.php
index 1795d93..5881af8 100644
--- a/src/Hook/UpdateTables.php
+++ b/src/Hook/UpdateTables.php
@@ -52,7 +52,8 @@ class UpdateTables implements LoadExtensionSchemaUpdatesHook {
'runMaintenance',
UpdateForMultipleDevicesSupport::class,
] );
- $updater->addExtensionUpdateOnVirtualDomain( [ 'virtual-oathauth', 'dropTable', 'oathauth_users' ] );
+ // Skip drop
@ciencia
ciencia / ext-ConfirmEdit-LogCaptcha-REL1_43.patch
Created February 23, 2025 17:09
MediaWiki extension ConfirmEdit log captcha challenge information (REL1_43)
diff --git a/SimpleCaptcha/SimpleCaptcha.php b/SimpleCaptcha/SimpleCaptcha.php
index 10d42088..610a6bac 100644
--- a/SimpleCaptcha/SimpleCaptcha.php
+++ b/SimpleCaptcha/SimpleCaptcha.php
@@ -1072,13 +1072,13 @@ class SimpleCaptcha {
$info = $this->retrieveCaptcha( $index );
if ( $info ) {
if ( $this->keyMatch( $word, $info ) ) {
- $this->log( "passed" );
+ $this->log( "Captcha $index passed with word $word ({$info['question']})" );
@ciencia
ciencia / ext-TimedMediaHandler-autoplay-REL1_43.patch
Last active March 16, 2025 21:20
patch MediaWiki extension TimedMediaHandler autoplay videos REL1_43
diff --git a/extension.json b/extension.json
index e5780d22..2d72f6b3 100644
--- a/extension.json
+++ b/extension.json
@@ -127,10 +127,12 @@
"FileDeleteComplete": "main",
"FileUndeleteComplete": "main",
"FileUpload": "main",
+ "GetPreferences": "main",
"ImageOpenShowImageInlineBefore": "main",