You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an excellent project! Thanks for this.
But in page.js your script does not change all URLs because it changes only in span.notranslate. I suppose that in all tags a you need to change the URL.
Your code: $notranslate.children('a').each(function (index, item) { let $item = $(item) let href = $item.attr("href") href = href && queryString.parse(url.parse(href).query).u $item.attr("href", href) })
My solution: $('a').each(function (index, item) { let $item = $(item) let href = $item.attr("href") href = href && queryString.parse(url.parse(href).query).u $item.attr("href", href) })
The text was updated successfully, but these errors were encountered:
This is an excellent project! Thanks for this.
But in page.js your script does not change all URLs because it changes only in span.notranslate. I suppose that in all tags a you need to change the URL.
Your code:
$notranslate.children('a').each(function (index, item) {
let $item = $(item)
let href = $item.attr("href")
href = href && queryString.parse(url.parse(href).query).u
$item.attr("href", href)
})
My solution:
$('a').each(function (index, item) {
let $item = $(item)
let href = $item.attr("href")
href = href && queryString.parse(url.parse(href).query).u
$item.attr("href", href)
})
The text was updated successfully, but these errors were encountered: