Fanfiction+

Improves readability and allows EBOOK DOWNLOADS!

< Обсуждения Fanfiction+

Вопрос/комментарий

Better Change Between Mobile and Desktop Edition

This code should do what you want:

var mobileVersion = 'location = "https://m.fanfiction.net' + document.location.pathname + '"'
console.log(mobileVersion)
document.getElementsByClassName('icon-kub-mobile')[0].setAttribute('onclick', mobileVersion)

Thanks, its implemented now :smile:

Ответить

Войдите, чтобы ответить.