nonethefewer: (Default)
For those who use the Greasemonkey script killfile, I found a way to add things for MetaFilter.  It's not the prettiest, but it works, so.

I assume you know how to edit GM scripts, or how to Google for this.

There are two blocks of code to add.

1) Look for the line that contains var scenariolist.  Look for the ravelry line* and insert this line underneath:

  metafilter:[{scenario:metafilterScenario,hrefpat:"^[^/]*//[^/]*/[0-9]*/"}],

* If you know what you're doing here, just put it anywhere within the array; it being after Ravelry isn't required.  I just like Ravelry, and it's an easy thing to point to for those who don't read Javascript.

2) Just above the var scenariolist line, add this block:

function metafilterScenario() {
  return {
      commenttopxpath: "//div[contains(@class, 'comments')]",
      sigbit: "span/a",
      replaceXpath: ".",
      mangleAppend: "span[@class='smallcopy']",
      __proto__:basicScenario()
      };
}


This will add the kill/hide bits at the end of the "posted by" line.  I've emailed the author to see if he wants to put it in.

Originally posted on Dreamwidth.  Number of comments so far: comment count unavailable
nonethefewer: (Default)
For those who use the Greasemonkey script killfile, I found a way to add things for MetaFilter.  It's not the prettiest, but it works, so.

I assume you know how to edit GM scripts, or how to Google for this.

There are two blocks of code to add.

1) Look for the line that contains var scenariolist.  Look for the ravelry line* and insert this line underneath:

  metafilter:[{scenario:metafilterScenario,hrefpat:"^[^/]*//[^/]*/[0-9]*/"}],

* If you know what you're doing here, just put it anywhere within the array; it being after Ravelry isn't required.  I just like Ravelry, and it's an easy thing to point to for those who don't read Javascript.

2) Just above the var scenariolist line, add this block:

function metafilterScenario() {
  return {
      commenttopxpath: "//div[contains(@class, 'comments')]",
      sigbit: "span/a",
      replaceXpath: ".",
      mangleAppend: "span[@class='smallcopy']",
      __proto__:basicScenario()
      };
}


This will add the kill/hide bits at the end of the "posted by" line.  I've emailed the author to see if he wants to put it in.

February 2022

S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728     

Syndicate

RSS Atom

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 1st, 2025 08:43 pm
Powered by Dreamwidth Studios