Reddit Filter Plus

By burger Last update Nov 17, 2011 — Installed 4,670 times.

Suggested changes so it works with GreaseKit

in
Subscribe to Suggested changes so it works with GreaseKit 1 post, 1 voice

pudquick User
SafariMacintosh

Replace line 66 with:

  if (typeof GM_registerMenuCommand === "undefined") {
    // Running on GreaseKit on Safari, most likely
    // As such, need to specify options.path = /
    var options = new Object();
    options.path = '/';
    GM_setValue('rf_filters', json, options);
    delete options;
  } else {
    GM_setValue('rf_filters', json);
  }

Replace line 299 with:

  removeButton.setAttribute('class', 'btn');

(Using .class is generally frowned on, but in Safari it specifically breaks.)

I've made these changes to my version, works great (if you're also using the gm_functions script)

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