Fanfiction+

Improves readability and allows EBOOK DOWNLOADS!

< Feedback on Fanfiction+

Question/comment

§
Posted: 2016-01-11

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)

Danielv123Author
§
Posted: 2016-06-15

Thanks, its implemented now :smile:

Post reply

Sign in to post a reply.