User:Mike Dillon/Scripts/recentpages.js: Difference between revisions

Content deleted Content added
m use wfMsg; add localizations in English and Spanish
m Maintenance: Replacing addOnloadHook with native jQuery (mw:ResourceLoader/Migration_guide_(users)#addOnloadHook - phab:T130879)
 
(3 intermediate revisions by one other user not shown)
Line 1:
// Requires: [[User:Mike Dillon/Scripts/i18n.js]], [[User:Mike Dillon/Scripts/easydom.js]], [[User:Mike Dillon/Scripts/cookies.js]]
 
/* <pre><nowiki> */
Line 25:
wfAddMsg("es", "noPageHistoryText", "Ningún historial de páginas");
 
addOnloadHook$(function () {
// Set defaults for variables
if (!pageHistoryCookieName) pageHistoryCookieName = "pageHistory";
Line 124:
}
writeCookie(pageHistoryCookieName, historyCookie,
{ "path": "/", "expiresInDays": pageHistoryExpiresInDays });
});