• Rework the JavaScript handler. • Fix the card generator. • Nuke all known XSS attacks. • Change the background to white. • Change some fonts on index.html to make it look more modern. • Remove a few ".old" pages. • Improve the mobile-friendliness of index.html. • Remove all styling on <select> tags. • Other varied bugfixes
26 lines
579 B
JavaScript
26 lines
579 B
JavaScript
//
|
|
// guess.js - Take a guess at what the user wants
|
|
//
|
|
|
|
(function() {
|
|
|
|
var oldlink = decodeURIComponent(window.location.hash.substr(1));
|
|
|
|
helpers.params.set('oldlink', oldlink);
|
|
helpers.params.set('referrer', document.referrer);
|
|
|
|
var type = 'jsinfo';
|
|
if (helpers.getDomainName(oldlink) == "youtube.com") {
|
|
type = 'youtube-cinema';
|
|
} else if (oldlink == "cookies-accept") {
|
|
type = 'cookies-accept';
|
|
} else if (oldlink.startsWith('🎄')) {
|
|
type = 'card-generator';
|
|
} else if (oldlink.startsWith('http')) {
|
|
type = 'translate';
|
|
}
|
|
|
|
helpers.loadScript(type);
|
|
|
|
})();
|