Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add-on overwrites my #wanted and #seen content on my page #28
Comments
pdehaan
referenced this issue
Dec 11, 2017
Open
Tooltips can appear off screen if the word is at the top of the page #29
|
I think we should probably delete the // For using with debug / and test pages.
const $wanted = document.querySelector('#wanted');
if ($wanted) {
$wanted.innerText="wanted: " + Array.from(wordList);
document.querySelector('#seen').innerText="seen: " + Array.from(seen);
}Although if the page doesn't have a "#seen" element (because it's a random page that has a randomly named "wanted"
|
added a commit
that referenced
this issue
Dec 12, 2017
biancadanforth
closed this
in
1c4337e
Dec 12, 2017
added a commit
that referenced
this issue
Dec 12, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pdehaan commentedDec 11, 2017
I have a sample page. In it, I "randomly" have a
<div id="wanted">, but that content gets overwritten and all the data is replaced w/ code from the add-on.In fact, when the page first loads, you can see the broken image and the
<h2>blocks display in the DOM, but then the content is overwritten.I believe the offending code in question is:
https://github.com/gregglind/addon-wr/blob/191d7b000265e174d38a5bcc77d76e67a792dd9e/addon/webextension/content-script.js#L77-L83