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 / core-TableSorter-SkipHiddenElements.patch
Created May 17, 2026 18:19
core-TableSorter-SkipHiddenElements
diff --git a/resources/src/jquery.tablesorter/jquery.tablesorter.js b/resources/src/jquery.tablesorter/jquery.tablesorter.js
index 868e4e1950b..211cdaa626b 100644
--- a/resources/src/jquery.tablesorter/jquery.tablesorter.js
+++ b/resources/src/jquery.tablesorter/jquery.tablesorter.js
@@ -64,6 +64,11 @@
// eslint-disable-next-line no-jquery/no-map-util
return $.map( currentNode.childNodes, ( elem ) => {
if ( elem.nodeType === Node.ELEMENT_NODE ) {
+ if ( elem.offsetParent === null ) {
+ // A null offsetParent is a very quick indicator that the
@ciencia
ciencia / AS22773_from_Seychelles.txt
Created April 26, 2026 10:04
Ranges from AS22773 Cox_Communications_Inc from Seychelles according to https://bgp.he.net/AS22773#_prefixes
45.192.4.0/22
45.192.24.0/21
45.194.72.0/23
45.194.75.0/24
45.194.76.0/23
45.194.78.0/24
45.194.82.0/24
45.194.84.0/24
45.194.121.0/24
45.196.116.0/22
@ciencia
ciencia / core-PagePropsDisplayTitleCache-REL1_43.patch
Created March 22, 2026 22:43
core-PagePropsDisplayTitleCache-REL1_43.patch
diff --git a/includes/MediaWikiServices.php b/includes/MediaWikiServices.php
index 2a040a7861a..8d857a9eec4 100644
--- a/includes/MediaWikiServices.php
+++ b/includes/MediaWikiServices.php
@@ -51,6 +51,7 @@ use MediaWiki\Cache\HTMLCacheUpdater;
use MediaWiki\Cache\LinkBatchFactory;
use MediaWiki\Cache\LinkCache;
use MediaWiki\Cache\UserCache;
+use MediaWiki\Cache\PagePropsDisplayTitleCache;
use MediaWiki\Category\TrackingCategories;
@ciencia
ciencia / ext-DisplayTitle-displaylink-REL1_43.patch
Created March 15, 2026 20:31
ext-DisplayTitle-displaylink-REL1_43
@ciencia
ciencia / ext-DisplayTitle-displaylink.patch
Last active March 15, 2026 20:31
ext-DisplayTitle-displaylink
@ciencia
ciencia / ext-DisplayTitle-parentheses_REL1_43_dep1.patch
Last active March 8, 2026 12:01
ext-DisplayTitle-parentheses_REL1_43
diff --git a/extension.json b/extension.json
index cc7602a..282af99 100644
--- a/extension.json
+++ b/extension.json
@@ -56,6 +56,9 @@
},
"DisplayTitleFollowRedirects": {
"value": true
+ },
+ "DisplayTitleAutoRemoveParentheses": {
@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