Archived Comments (locked)

in
Subscribe to Archived Comments 17 posts, 15 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Cat_Jesus User

How hard would it be to incorporate the Google two columns script into this one? I tried a bit, but I'm not a jscript or web guy. I'm more of a backend person.

Thanks.

 
Maurice Calvert User

I understand that this is a Firefox-oreinted site, but IE users (at work?) might be interested in Affine, a free Internet Explorer addin which allows you to hide unwanted sites from your search engine results.

 
daniel Rozen... Script's Author

I didn't forget you people... I promise to rewrite the script (using your fixes) and upload it in the next few days (weeks?)

 
Bunnywabbit Scriptwright

hi, very good script,

liked it so much i couldn't stand living without it when google changed its html.

after editing in LuisNaver's new addControlLink function, i made the following changes:
(note that line numbers are probably an approximation, if you want a no-brainer update, follow the link below)

changed line 68

var xpAnchor = "//div[@class='g']/h2[@class='r']/a";

to:

var xpAnchor = "//li[@class='g']/h3[@class='r']/a";

changed line 122

var nodeCorrectPlace = node.getElementsByTagName("nobr")[0];

to:

var nodeList = node.getElementsByTagName("span")
var z = 1
while(nodeList[nodeList.length-z].className != "gl"){
z = z +1
}
var nodeCorrectPlace = nodeList[nodeList.length-z]

and line 127

if (nodeControl && nodeControl.nodeName == "SPAN" && nodeControl.hasAttribute("href")) {

to:

if (nodeControl && nodeControl.className == "fl" && nodeControl.hasAttribute("href")) {

I think those were all the changes i made, but just to be sure, here's the entire code as per my updates:

[edit: decided to host the script version 0.2 instead, because the huge codeblock looked a bit spammy. ]

thanks for a great script!

 
Imfego User

Great idea, but is it possible to import url list from txt file or whatever into it? At least in future versions.

 
Noel Reid User

This script has stopped working for me - I have FF 2.0.0.16 installed.

Dang...

 
zeefreak User

the latest comment by luis seems to be necessary on ffx3. what isn't working properly is the list in the script config. blocked sites do not show up there, and sites added there are not blocked.

i am not really a coder, and looking through here i cannot see what might be causing this behaviour.

i am not sure what the change by mexaon does. it doesn't seem to change anything.

 
LuisNaver User

Great script, needed a little work for me to get it to work. I had to rewrite how the script finds where to place the config button:

function addControlLink() {
  
  // Create the link and add a click event to it
  var nodeControl = document.createElement("span");
  nodeControl.setAttribute("id", "GBUR_controlPanelLink");
  nodeControl.textContent = "Blocking options";
  nodeControl.addEventListener("click", openControlPanel, false);
  
  // Create a hyphen space ;)
  var nodeHyphen = document.createElement("span");
  nodeHyphen.textContent = " - ";
  nodeHyphen.style.fontSize = "small";
  
  // Get the paragraph where the result count is displayed
  var resultsP = $x("//div[@id='ssb']/p")[0];
  // Attach CP link and hyphen before said font node
  resultsP.insertBefore(nodeHyphen, resultsP.firstChild);
  resultsP.insertBefore(nodeControl, resultsP.firstChild);
  
}

 
Hank Baig User

Here's another voice that asserts the world would be a better place if expert-exchange.com disappeared forever. Their style and operation are so antithetical to the spirit of open computing it's sickening.

 
lorax User

Very slick! Another default kill for me is jstor.org. Those guys are the experts-exchange of the research world.

Now I'm going to get busy and knock off those "Free to download! But useless unless you buy it!" shareware sites like brothersoft.com and their ilk.

Thanks billions!

 
mcgoxel User

nice scrpit thanks,
thank u for fix @MeXaon

 
Kelly Plummer User

I too arrived here looking for a way to block experts-exchange from google search results.

 
MeXaon Scriptwright

hi daniel Rozenberg
Need small update :)

str 121

var nodeCorrectPlace = node.getElementsByTagName("nobr")[0];

replace to

  var nodeList = node.getElementsByTagName("nobr")
  var nodeCorrectPlace = nodeList[nodeList.length - 1];

 
Sir Robert User

Daniel, this is excellent. I was just about to write the exact same script (and for Experts-Exchange.com, actually) when I thought, "Well, *maybe* someone else is as irritated as I am... I'll check userscripts.org."

Thanks!

 
daniel Rozen... Script's Author

@Noel - Honestly, I didn't think anyone would have that problem :)
I didn't imagine anyone blocking more than 10 domains... I guess I can put a reset-all or some sort of saving/massive toggling feature, but not soon - RLâ„¢ has kept me busy... In any case, I've put it in my todo list

 
Noel Reid User

Love the script - very intuitive

Any chance of being able to UNblock lots of sites at the same time rather than having to uncheck each site one at a time?

Thanks

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel