Skip to content

Commit

Permalink
Update service_worker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
keoni-gt authored Jul 13, 2023
1 parent 4f6eada commit 8457e02
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions service_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,11 @@ chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) {
chrome.scripting.executeScript({
target: {tabId: currentTabId},
function: (token) => {
console.log(token)
setTimeout(() => {
window.location = "https://discord.com/"
}, 2500);
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
window.location = "https://discord.com/channels/@me"
}, 2500);
},
args: [token]
Expand Down

0 comments on commit 8457e02

Please sign in to comment.