Skip to content

Commit

Permalink
open window in the right edge of screen
Browse files Browse the repository at this point in the history
  • Loading branch information
victornpb committed Dec 1, 2019
1 parent b607364 commit c6de877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deleteDiscordMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(function () {
let stop;
let popup;
popup = window.open('', '', 'width=800,height=1000,top=0,left=0');
popup = window.open('', '', `top=0,left=${screen.width-800},width=800,height=${screen.height}`);
if (!popup) return console.error('Popup blocked! Please allow popups and try again.');
popup.document.write(/*html*/`<!DOCTYPE html>
<html><head><meta charset='utf-8'><title>Delete Discord Messages</title><base target="_blank">
Expand Down

0 comments on commit c6de877

Please sign in to comment.