Benutzer:RevoTest/tbwlPageSR.js
aus Wikipedia, der freien Enzyklopädie
Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.
- Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
- Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
- Internet Explorer/Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
- Opera: Strg+F5
/*
tbwlPageSR.js
* Project: Toolbar Watchlist, Version: 0.1.1beta, Date: 2007-08-27
* Copyright (C) 2007 [[de:User:Revolus]] (revolus@web.de)
* http://www.gnu.org/copyleft/gpl.html
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE.
* See the GNU General Public License for more details.
Licence:
You may redistribute this script either under the term of the GNU GPL
or GNU FDL with no invariant sections. But either way, you have to
accept the non-warranty clause as stated in the GNU GPL.
Uses
libTBWL.js
tbwlPage.js
Funcs:
(overrides) TWBL_Page_Structure
*/
var TBWL_Page_Structure = function(obj, p) {
var difflen = obj.newlen-obj.oldlen;
var aDate = p("Date") + '.' + p("Month") + '.' + p("FullYear");
var aTime = p("Hours") + ':' + p("Minutes");
var res = [
0, ["Node", "span", "TBWL_entry"],
1, (aDate != vTBWL_Page_Date) && ["Node", "h3", ""],
2, ["Text", aDate, "TBWL_date"],
1, ["Node", "h4", ""],
2, ["WPLink", "", "", obj.title, TBWL_LinkTitle(obj.ns, obj.title), "", "TBWL_title", ""],
1, ["WPLink", "", "", obj.title, aTime, "oldid="+obj.revid, "TBWL_time", ""],
1, ["Space"],
1, ["WPLink", "", "User", obj.user, TBWL_UserTitle(obj.user), "", "TBWL_user", ""],
1, ["Space"],
1, ["Node", "span", "TBWL_flags"],
2, (typeof(obj.bot) != "undefined") && ["Text", "B", "TBWL_bot"],
2, (typeof(obj["new"]) != "undefined") && ["Text", "N", "TBWL_new"],
2, (typeof(obj.minor) != "undefined") && ["Text", "K", "TBWL_minor"],
1, ["Space"],
1, ["Node", "span", "TBWL_len"],
2, ["Text", String(obj.oldlen)+" ", "TBWL_oldlen"],
2, ["Text", String(obj.newlen)+" ", "TBWL_newlen"],
2, (difflen> 0) && ["Text", "+"+String(difflen), "TBWL_difflen TBWL_diffplus"],
2, (difflen==0) && ["Text", String(difflen), "TBWL_difflen TBWL_diffequal"],
2, (difflen< 0) && ["Text", "−"+String(Math.abs(difflen)), "TBWL_difflen TBWL_diffminus"],
1, ["Space"],
1, ["Text", "Bytes", ""],
1, ["Space"],
1, ["Node", "span", "TBWL_comment"]
];
if(typeof(obj.comment) == "string") TBWL_CommentTitle(2, res, obj.comment, obj.ns, obj.title);
res.push(
1, ["Space"],
1, ["WPLink", "", "", obj.title, "Unterschied", "diff=prev&oldid="+obj.revid, "TBWL_diff", ""],
1, ["Space"],
1, ["WPLink", "", "", obj.title, "Versionen", "action=history", "TBWL_history", ""],
1, ["Space"],
1, ["WPLink", "", "", "Special:Contributions", "Beiträge", "contribs=user&target="+encodeURIComponent(obj.user), "TBWL_contributions", ""]
);
vTBWL_Page_Date = aDate;
return res;
};
TBWL_RegisterAddon("Special:TBWL for Screenreaders", "tbwlPageSR");