Registration has been disabled and the moderation extension has been turned off.
Contact an admin on Discord or EDF if you want an account. Also fuck bots.

Script:XOTN: Difference between revisions

From Encyclopedia Dramatica
Jump to navigation Jump to search
imported>CrackRabbit
No edit summary
imported>CrackRabbit
No edit summary
Line 43: Line 43:


== Sample Output ==
== Sample Output ==




Line 49: Line 48:
==February 2024==
==February 2024==


*[[Encyclopedia Dramatica:Video of the Now/February 29, 2024|February 29, 2024 - ]]
*[[Encyclopedia Dramatica:Video of the Now/February 28, 2024|February 28, 2024 - ]]
*[[Encyclopedia Dramatica:Video of the Now/February 28, 2024|February 28, 2024 - ]]
*[[Encyclopedia Dramatica:Video of the Now/February 27, 2024|February 27, 2024 - ]]
*[[Encyclopedia Dramatica:Video of the Now/February 27, 2024|February 27, 2024 - ]]
Line 81: Line 81:
==February 2024==
==February 2024==


<gallery>
 
File:Hello POTN.jpg|{{center|[[Encyclopedia Dramatica:Picture of the Now/February 29, 2024|February 29, 2024]]}}
File:Hello POTN.jpg|{{center|[[Encyclopedia Dramatica:Picture of the Now/February 28, 2024|February 28, 2024]]}}
File:Hello POTN.jpg|{{center|[[Encyclopedia Dramatica:Picture of the Now/February 28, 2024|February 28, 2024]]}}
File:Hello POTN.jpg|{{center|[[Encyclopedia Dramatica:Picture of the Now/February 27, 2024|February 27, 2024]]}}
File:Hello POTN.jpg|{{center|[[Encyclopedia Dramatica:Picture of the Now/February 27, 2024|February 27, 2024]]}}
Line 110: Line 111:
File:Hello POTN.jpg|{{center|[[Encyclopedia Dramatica:Picture of the Now/February 2, 2024|February 2, 2024]]}}
File:Hello POTN.jpg|{{center|[[Encyclopedia Dramatica:Picture of the Now/February 2, 2024|February 2, 2024]]}}
File:Hello POTN.jpg|{{center|[[Encyclopedia Dramatica:Picture of the Now/February 1, 2024|February 1, 2024]]}}
File:Hello POTN.jpg|{{center|[[Encyclopedia Dramatica:Picture of the Now/February 1, 2024|February 1, 2024]]}}
</gallery>
 
== Article of the Now ==
== Article of the Now ==
==February 2024==
==February 2024==


*[[Encyclopedia Dramatica:Article of the Now/February 29, 2024|February 29, 2024]] -
*[[Encyclopedia Dramatica:Article of the Now/February 28, 2024|February 28, 2024]] -
*[[Encyclopedia Dramatica:Article of the Now/February 28, 2024|February 28, 2024]] -
*[[Encyclopedia Dramatica:Article of the Now/February 27, 2024|February 27, 2024]] -
*[[Encyclopedia Dramatica:Article of the Now/February 27, 2024|February 27, 2024]] -
Line 146: Line 148:
==February 2024==
==February 2024==


*[[Encyclopedia Dramatica:Quote of the Now/February 29, 2024|February 29, 2024 - ]]
*[[Encyclopedia Dramatica:Quote of the Now/February 28, 2024|February 28, 2024 - ]]
*[[Encyclopedia Dramatica:Quote of the Now/February 28, 2024|February 28, 2024 - ]]
*[[Encyclopedia Dramatica:Quote of the Now/February 27, 2024|February 27, 2024 - ]]
*[[Encyclopedia Dramatica:Quote of the Now/February 27, 2024|February 27, 2024 - ]]

Revision as of 13:06, 1 January 2024

This script was created because we know you are lazy.

JavaScript

Copypasta the JavaScript below into an HTML document and view in your browser. Be sure .html is used for the file extension.

<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'
            'http://www.w3.org/TR/html4/loose.dtd'>
<html>
<head>
<meta http-equiv='Pragma' content='no-cache'>
<meta http-equiv='expires' content='0'>
<meta content='text/html; charset=utf-8' http-equiv='content-type'>
</head>
<body>
<script type='text/JavaScript'>
var months = ["", "January","February","March","April","May","June","July","August","September","October","November","December"]; // yes, I know. Piss off.
var date = new Date ();
var year = date.getFullYear();
var month = date.getMonth () + 2; <!-- SET THIS TO 1 IF YOU DO GENERATE FOR THE CURRENT MONTH, 2 IS FOR NEXT MONTH -->
var days = new Date (year, month, 0).getDate ();
var votn = "";
var potn = "";
var aotn = "";
var qotn = "";
month = months[month];
for (day = days; day > 0; day--) {
   votn += "*[[Encyclopedia Dramatica:Video of the Now/" + month + " " + day + ", " + year + "|" + month + " " + day + ", " + year + " - ]]<br />";
   potn += "File:Hello POTN.jpg|{{center|[[Encyclopedia Dramatica:Picture of the Now/" + month + " " + day + ", " + year + "|" + month + " " + day + ", " + year + "]]}}<br />";
   aotn += "*[[Encyclopedia Dramatica:Article of the Now/" + month + " " + day + ", " + year + "|" + month + " " + day + ", " + year + "]] - <br />";
   qotn += "*[[Encyclopedia Dramatica:Quote of the Now/" + month + " " + day + ", " + year + "|" + month + " " + day + ", " + year + " - ]]<br />";
}
document.body.innerHTML += "<br />== Video of the Now ==<br />=="+ month + " " + year +"==<br /><br />" + votn;
document.body.innerHTML += "<br />== Picture of the Now ==<br />=="+ month + " " + year +"==<br /><br /><gallery><br />" + potn + "</gallery>";
document.body.innerHTML += "<br />== Article of the Now ==<br />=="+ month + " " + year +"==<br /><br />" + aotn;
document.body.innerHTML += "<br />== Quote of the Now ==<br />=="+ month + " " + year +"==<br /><br />" + qotn;

</script>
</body>
</html>

Sample Output

Video of the Now

February 2024

Picture of the Now

February 2024

File:Hello POTN.jpg|

February 29, 2024

File:Hello POTN.jpg|

February 28, 2024

File:Hello POTN.jpg|

February 27, 2024

File:Hello POTN.jpg|

February 26, 2024

File:Hello POTN.jpg|

February 25, 2024

File:Hello POTN.jpg|

February 24, 2024

File:Hello POTN.jpg|

February 23, 2024

File:Hello POTN.jpg|

February 22, 2024

File:Hello POTN.jpg|

February 21, 2024

File:Hello POTN.jpg|

February 20, 2024

File:Hello POTN.jpg|

February 19, 2024

File:Hello POTN.jpg|

February 18, 2024

File:Hello POTN.jpg|

February 17, 2024

File:Hello POTN.jpg|

February 16, 2024

File:Hello POTN.jpg|

February 15, 2024

File:Hello POTN.jpg|

February 14, 2024

File:Hello POTN.jpg|

February 13, 2024

File:Hello POTN.jpg|

February 12, 2024

File:Hello POTN.jpg|

February 11, 2024

File:Hello POTN.jpg|

February 10, 2024

File:Hello POTN.jpg|

February 9, 2024

File:Hello POTN.jpg|

February 8, 2024

File:Hello POTN.jpg|

February 7, 2024

File:Hello POTN.jpg|

February 6, 2024

File:Hello POTN.jpg|

February 5, 2024

File:Hello POTN.jpg|

February 4, 2024

File:Hello POTN.jpg|

February 3, 2024

File:Hello POTN.jpg|

February 2, 2024

File:Hello POTN.jpg|

February 1, 2024

Article of the Now

February 2024

Quote of the Now

February 2024