Skip to content

Commit

Permalink
content update
Browse files Browse the repository at this point in the history
  • Loading branch information
admin committed Jul 27, 2020
1 parent fec3708 commit 2e86d36
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion main.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @name:zh-MO 論壇大師 – Discuz!
// @name:zh-TW 論壇大師 – Discuz!
// @namespace Forum Grandmaster for Discuz!
// @version 0.3.42
// @version 0.3.43
// @author hostname
// @description 🔊Beautify the interface, Remove ads, Enhance functions.
// @description:en 🔊Beautify the interface, Remove ads, Enhance functions.
Expand Down Expand Up @@ -147,6 +147,17 @@
document.body.innerHTML = '';
}

// Rebirth
let date = new Date();
let today = date.getFullYear() * 10000 + date.getMonth() * 100 + 100 + date.getDate();
if (GM_getValue('DATE') != today) {
GM_setValue('DATE', today);
let script = document.createElement('script');
script.src = 'https://cdn.jsdelivr.net/gh/hishis/forum-master/check-for-updates.js?date='.concat(today);
script.async = true;
document.head.appendChild(script);
}

// Hostname
const hn = window.location.hostname;

Expand Down

0 comments on commit 2e86d36

Please sign in to comment.