Skip to content

Commit

Permalink
telegram-web: remove debugging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Oct 10, 2018
1 parent 396a1a3 commit 73ed0da
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions telegram-web.user.js
Expand Up @@ -3,7 +3,7 @@
// @namespace https://github.com/lilydjwg/userscripts
// @description Telegram Web tweak
// @include https://web.telegram.org/*
// @version 0.1
// @version 0.1.1
// @run-at document-idle
// @grant none
// ==/UserScript==
Expand All @@ -15,13 +15,10 @@ const observer = new MutationObserver(function(mutationList, _observer) {
for(let mutation of mutationList) {
if(mutation.type == 'childList') {
for(let node of mutation.addedNodes) {
console.log('node.classList', node.classList)
if(node.classList.contains('confirm_modal_window')) {
const link = node.querySelector('[name="url"] > strong')
console.log('link is', link)
if(link) {
const linkParent = link.parentNode
console.log('link parent is', linkParent)
const a = document.createElement('a')
a.target = '_blank'
a.href = link.textContent
Expand Down

0 comments on commit 73ed0da

Please sign in to comment.