Posts that Sean Watson is monitoring
|
Feb 5, 2008
|
Topic: A tough question..... The best method is to install the extension and disable your script, then see the changes in the DOM of Google search results page. |
|
Feb 5, 2008
|
Topic: A tough question..... Couldn't you email the guy that wrote Googlepedia and tell him about your problem? You might avoid future problems that way since there are other add-ons that involve manipulating google search results. |
|
Feb 4, 2008
|
Topic: A tough question..... -duplicate- |
|
Feb 4, 2008
|
Topic: A tough question..... I am not aware of any method to directly detect whether or not any given script has been run on a page. However, there are indirect methods, such as checking the styles of given elements. If it's display:none, then it's hidden; if not, it's visible. You should be able to determine what you need to know based on this information. -Joel |
|
Nov 13, 2007
|
Topic: Image replacement help There are a number of ways, the above being the simplist. The most direct way I think is with Xpath. We know the name of the image is "logo_google_suggest_sm.gif" so we can replace that directly...
document.evaluate("//img[@src='logo_google_suggest_sm.gif']", document, null, 9, null).singleNodeValue.src = "http://whatever/yourImage.jpg";
However if they change the image name you'll want something more flexible. You could also match A background image would need to be changed via CSS. |
|
Nov 12, 2007
|
Topic: Image replacement help Wouldn't something along the lines of the following work... document.images[0].src = "http://whatever/yourImage.jpg"; |
|
Nov 9, 2007
|
Topic: Image replacement help Are you not seeing an image tag there? Because on the main Google page they use a background image which can be changed with a style sheet or Stylish, on that page I see regular image tag and I'd assume you would know how to change that? Maybe it's different for you because you are logged in. Or are you asking how to use a Data URI ? |
