Author Topic: Tasty's International House of Extensions (IHOE)  (Read 18096 times)

0 Members and 1 Guest are viewing this topic.

Tasty

  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #60 on: July 21, 2018, 01:32:56 AM »


This extension fully hides users on your ignore list, and optionally hides posts they've been quoted in as well. For the latter, you need to go into the extension settings and toggle it on manually, since there could be a performance impact depending on how many posts are being displayed and how many users are on your ignore list.

I don't have anyone on my ignore list personally*, so I won't really know what edge cases or bugs there are, so please post here if you see anything weird. The only small glitch is that posts might not alternate background colors, but this will subtly clue you in to the fact there's a hidden post without the forum being obnoxious about it.

Firefox version is coming whenever I feel like it.

spoiler (click to show/hide)
* I was using Momo and Atra to test with, but don't worry, you guys are already off my ignore list. :P
[close]

Tasty

  • Senior Member
Here's the code if anyone's interested.

Code: [Select]
function hidePost(post) {
  const postContainer = post;
  const horizontalRule = postContainer.nextElementSibling;
  const potentialLikesContainer = horizontalRule.nextElementSibling;

  postContainer.style.display = 'none';
  if (potentialLikesContainer.tagName === 'DIV') {
    potentialLikesContainer.style.display = 'none';
  }
}

async function getIgnoredList() {
  const response = await fetch('http://www.thebore.com/forum/index.php?action=profile;area=lists;sa=ignore', {
    credentials: 'same-origin',
  });
  const html = await response.text();
  const parser = new window.DOMParser();
  const ignoredDocument = parser.parseFromString(html, 'text/html');
  const ignoredLinks = ignoredDocument.querySelectorAll('.windowbg2 > td:first-child > a');

  const quotedPosts = document.querySelectorAll('.topslice_quote > a');
  [...quotedPosts].forEach((quotedPost) => {
    [...ignoredLinks].forEach((ignoredLink) => {
      if (quotedPost.textContent.substr(ignoredLink.textContent) !== -1) {
        hidePost(quotedPost.closest('.post_wrapper').parentElement);
      }
    });
  });
}

function onGetSettings(results) {
  const settings = results.settings || {};
  if (settings.hideQuotedPosts) {
    getIgnoredList();
  }
}

const ignoredPosts = document.querySelectorAll('[id$="_ignored_prompt"]');
ignoredPosts.forEach((post) => {
  const postContainer = post.parentElement.parentElement.parentElement;
  hidePost(postContainer);
});

chrome.storage.sync.get(['settings'], onGetSettings);

If there's any obvious improvements to be made give me a heads up. I basically wrote this up while rewatching two RLM Re:Views.

Olivia Wilde Homo

  • Proud Kinkshamer
  • Senior Member
Is it possible to create an extension that shows just how many likes someone has received from here?
🍆🍆

Tasty

  • Senior Member
Is it possible to create an extension that shows just how many likes someone has received from here?

Not as an extension, no.

But there may be a creative solution out there...

bdoughty

  • Member
This is a great tool. Now all you fucking pussies that really long to be on resetera can ignore anyone who dares to think even slightly right of bat shit crazy left. Let's kill all the fetuses!!!!! 

Well fuck all your spineless libtards and your precious ignore lists. So much sand in those vaginas or penises or whatever you call your junk today. Boo Hoo, Trump is making people work again.

and nobody will ever know because you all have me blocked.


Tasty

  • Senior Member
This is a great tool. Now all you fucking pussies that really long to be on resetera can ignore anyone who dares to think even slightly right of bat shit crazy left. Let's kill all the fetuses!!!!! 

Well fuck all your spineless libtards and your precious ignore lists. So much sand in those vaginas or penises or whatever you call your junk today. Boo Hoo, Trump is making people work again.

and nobody will ever know because you all have me blocked.

(Image removed from quote.)


bdoughty

  • Member
Testing the code.

Apparently I am visible to some.

Fuck.

Momo

  • Nebuchadnezzar
  • Senior Member
I think Joe or demi could help with the likes total if they can be arsed.

seagrams hotsauce

  • Senior Member
This is a great tool. Now all you fucking pussies that really long to be on resetera can ignore anyone who dares to think even slightly right of bat shit crazy left. Let's kill all the fetuses!!!!! 

Well fuck all your spineless libtards and your precious ignore lists. So much sand in those vaginas or penises or whatever you call your junk today. Boo Hoo, Trump is making people work again.

and nobody will ever know because you all have me blocked.

(Image removed from quote.)

https://twitter.com/chiefkeef/status/463827446450507779

thisismyusername

  • GunOn™! Apply directly to forehead!
  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #69 on: July 21, 2018, 11:41:31 AM »


This extension fully hides users on your ignore list, and optionally hides posts they've been quoted in as well. For the latter, you need to go into the extension settings and toggle it on manually, since there could be a performance impact depending on how many posts are being displayed and how many users are on your ignore list.

I don't have anyone on my ignore list personally*, so I won't really know what edge cases or bugs there are, so please post here if you see anything weird. The only small glitch is that posts might not alternate background colors, but this will subtly clue you in to the fact there's a hidden post without the forum being obnoxious about it.

Firefox version is coming whenever I feel like it.

spoiler (click to show/hide)
* I was using Momo and Atra to test with, but don't worry, you guys are already off my ignore list. :P
[close]

Many posters right now: 🏃👋Assimilate👋🏃

benjipwns

  • your bright ideas always burn me
  • Senior Member
and so the whole Bore joins Mandark in his cowardly ways to protect themselves from the constant L's

Purrp Skirrp

  • Mr. Paté
  • Senior Member
Is it possible to create an extension that shows just how many likes someone has received from here?

How about an average likes per post number, sort of akin to a K/D ratio.

Then we cull anyone below a certain standard.

Purrp Skirrp

  • Mr. Paté
  • Senior Member
On Chrome when I enable 'Hide Quoted Posts' the post I just made ITT becomes invisible.

With 'Hide Quoted Posts' disabled I can see it however. Olivia Wilde Homo is not on my ignore list, just an fyi since my post quotes him.

Purrp Skirrp

  • Mr. Paté
  • Senior Member
And just to further complicate things, I can see the post I just made with 'Hide Quoted Posts' enabled, but the one prior to that is still invisible.

Human Snorenado

  • Stay out of Malibu, Lebowski
  • Icon
Testing the code.

Apparently I am visible to some.

Fuck.

Oh sweetie, you're just not worth blocking. Try harder.
yar

bdoughty

  • Member
Nope.


Tasty

  • Senior Member
On Chrome when I enable 'Hide Quoted Posts' the post I just made ITT becomes invisible.

With 'Hide Quoted Posts' disabled I can see it however. Olivia Wilde Homo is not on my ignore list, just an fyi since my post quotes him.

Ah I know what this might be. Who's on your ignore list?

Purrp Skirrp

  • Mr. Paté
  • Senior Member
 :exxy

Tasty

  • Senior Member
Hmmmmmm will look into it.

TVC15

  • Laugh when you can, it’s cheap medicine -LB
  • Senior Member
This is making me wish iOS supported plugins like this since I do most of my browsing on it.
serge

Tasty

  • Senior Member
This is making me wish iOS supported plugins like this since I do most of my browsing on it.

Same for me, but for Chrome on Android.

I suppose as a workaround, Firefox on Android supports Thread Hider.

spoiler (click to show/hide)
Android proven superior to iOS yet again.
[close]

Stoney Mason

  • So Long and thanks for all the fish
  • Senior Member
Uncle Tom is back so I have a feeling I will get even more use now!

Tasty

  • Senior Member
Super Ignore 1.0.1 published for Chrome. Let me know if this fixes your issue Purp Skirp.

Tasty

  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #83 on: July 22, 2018, 02:07:08 AM »
Everyone else let me know if this broke anything, I pushed it out without testing it.

Tasty

  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #84 on: July 22, 2018, 02:10:32 AM »
- if (quotedPost.textContent.substr(ignoredLink.textContent) !== -1) {
+ if (quotedPost.textContent.substr(`Quote from: ${ignoredLink.textContent}`) !== -1) {

Tasty

  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #85 on: July 22, 2018, 02:12:16 AM »
Man I love JavaScript.

(Fuck Dufus.)

Tasty

  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #86 on: July 22, 2018, 12:43:49 PM »
Is it possible to create an extension that shows just how many likes someone has received from here?

Test.

Momo

  • Nebuchadnezzar
  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #87 on: July 22, 2018, 12:45:38 PM »
The thread hider works perfect for me, but I dont think I want super ignore. I appreciate you making it though  8)

Tasty

  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #88 on: July 22, 2018, 12:56:58 PM »
Super Ignore 1.0.2 has been uploaded and actually fixes the problem of it hiding quoted Olivia Wilde Homo posts for no reason.

The thread hider works perfect for me, but I dont think I want super ignore. I appreciate you making it though  8)

I won't be using it either, but I figured it'd be appreciated, and I liked puzzling over some coding solutions. :)

Tasty

  • Senior Member

Stoney Mason

  • So Long and thanks for all the fish
  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #90 on: July 22, 2018, 03:22:37 PM »
Been using both and fortunately have had no issues. Both really useful. They both really work well hand in hand. Best extensions I've used since ublock.


thisismyusername

  • GunOn™! Apply directly to forehead!
  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #91 on: July 22, 2018, 05:05:41 PM »
Been using both and fortunately have had no issues. Both really useful. They both really work well hand in hand. Best extensions I've used since ublock.

Murdering people in the digital realm hasn't been easier!

Tasty

  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #92 on: July 22, 2018, 07:22:05 PM »
It's less like murder and more like the digital equivalent of

The universe can now be in perfect balance. :aah

Purrp Skirrp

  • Mr. Paté
  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #93 on: July 22, 2018, 08:00:28 PM »
Everything's working perfect now. Thanks dude!

Tasty

  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #94 on: July 22, 2018, 08:13:24 PM »
Everything's working perfect now. Thanks dude!

You're welcome. Thanks for catching that bug -- looking at what was actually causing the problem, it was pretty unlikely to be caught for a good long while. :)

shosta

  • Y = λ𝑓. (λ𝑥. 𝑓 (𝑥 𝑥)) (λ𝑥. 𝑓 (𝑥 𝑥))
  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #95 on: July 22, 2018, 09:41:29 PM »
I love each and every one of you.  :-*
« Last Edit: July 22, 2018, 09:48:28 PM by Shostakovich »
每天生气

Tasty

  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #96 on: July 22, 2018, 10:59:51 PM »
Thread Hider 1.0.4 published for Chrome. All this does is make the version text in the options dialog slightly larger, while also decreasing the extension size from 5.4 MB to 221 KB.

benjipwns

  • your bright ideas always burn me
  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #97 on: July 22, 2018, 11:19:23 PM »
All this does is make the version text in the options dialog slightly larger
seems like a version 2.0.0 or at least 1.1.0 update to me

Tasty

  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #98 on: July 22, 2018, 11:25:49 PM »
2.0.0 is when I start secretly harvesting everyone's login cookies and take over the site. :shh

shosta

  • Y = λ𝑓. (λ𝑥. 𝑓 (𝑥 𝑥)) (λ𝑥. 𝑓 (𝑥 𝑥))
  • Senior Member
每天生气

thisismyusername

  • GunOn™! Apply directly to forehead!
  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #100 on: July 22, 2018, 11:32:34 PM »
Thread Hider 1.0.4 published for Chrome. All this does is make the version text in the options dialog slightly larger, while also decreasing the extension size from 5.4 MB to 221 KB.

:drakewtf at this going down from 5.4Meg to 221Kilo.

WTF were you doing that required that much space? :doge

Tasty

  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #101 on: July 22, 2018, 11:39:15 PM »
Accidentally included node_modules in the zip. :lol :doge

shosta

  • Y = λ𝑓. (λ𝑥. 𝑓 (𝑥 𝑥)) (λ𝑥. 𝑓 (𝑥 𝑥))
  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #102 on: July 23, 2018, 12:17:03 AM »
Accidentally included node_modules in the zip. :lol :doge
Learn to webpack!
:bolo
每天生气

Tasty

  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #103 on: July 23, 2018, 12:32:10 AM »
Accidentally included node_modules in the zip. :lol :doge
Learn to webpack!
:bolo

1. It's on my list of things to do.

2. Web Pack wouldn't have prevented me from accidentally including node_modules in the zip.

3. Web Pack is much too heavyweight for a simple Chrome extension.

4. node_modules only existed in the first place because I was using ESLint and extending from the associated Airbnb config, and had nothing to do with the extension code itself.

:bolo

shosta

  • Y = λ𝑓. (λ𝑥. 𝑓 (𝑥 𝑥)) (λ𝑥. 𝑓 (𝑥 𝑥))
  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #104 on: July 23, 2018, 12:37:07 AM »
4. node_modules only existed in the first place because I was using ESLint and extending from the associated Airbnb config, and had nothing to do with the extension code itself.
wait, do node tools not optionally install in /usr/local or ~/Library?

I can't even remember where node modules normally install, I just remember it polluting my project the last time I tried learning to use it.
每天生气

Tasty

  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #105 on: July 23, 2018, 12:42:39 AM »
If you use npm install -g yes, but I've been using ESLint on a per-project basis. 😬

HardcoreRetro

  • Punk Mushi no Onna
  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #106 on: July 23, 2018, 05:22:41 AM »
It's less like murder and more like the digital equivalent of (Image removed from quote.)

The universe can now be in perfect balance. :aah

I gotta say, the graphics in the Warcraft 2 cutscenes hold up really well.

Phoenix Dark

  • I got no game it's just some bitches understand my story
  • Senior Member
010

Tasty

  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #108 on: July 23, 2018, 11:14:15 AM »
Man has that gif been devalued over the years.

Tasty

  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #109 on: July 25, 2018, 01:23:51 AM »


~30% done.

Tasty

  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #110 on: July 25, 2018, 02:08:28 AM »


~60% done.

Coax

  • Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #111 on: July 25, 2018, 05:30:55 AM »
Would be useful if one could define custom aliases for emoticons since few match the actual graphic making them harder to memorize

Tasty

  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #112 on: July 25, 2018, 07:31:02 AM »
Would be useful if one could define custom aliases for emoticons since few match the actual graphic making them harder to memorize

Yeah, this is a feature I can try and add.

Tasty

  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #113 on: July 25, 2018, 11:59:18 AM »
Also, the smileys will be fuzzy-matched, so even if you misspell it the smiley should still appear.

TEEEPO

  • hi, i suck
  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #114 on: July 25, 2018, 12:00:53 PM »
 :uguu

you are a catch

Tasty

  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #115 on: July 25, 2018, 12:04:08 PM »
:-*

Tasty

  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #116 on: July 25, 2018, 10:43:22 PM »
This is gonna take a bit longer since keyboard events are kinda shitty and I want to get the behavior as close to Slack's as possible. Plus the custom smiley feature.

It's coming together nicely though.

naff

  • someday you feed on a tree frog
  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #117 on: July 31, 2018, 09:46:32 PM »
SUPER IGNORE :rejoice :gladbron

Specifically the quoted posts feature too. I didn't want to go that far, but it's actually just awesome.

This isn't just murder in the digital realm, this is scrubbing their existence from reality.  :aah
◕‿◕

naff

  • someday you feed on a tree frog
  • Senior Member
Re: Tasty's International House of Extensions (IHOE)
« Reply #118 on: July 31, 2018, 09:52:50 PM »
◕‿◕

Cerveza mas fina

  • I don't care for Islam tbqh
  • filler
Re: Tasty's International House of Extensions (IHOE)
« Reply #119 on: August 01, 2018, 12:41:37 AM »
Ignore really isnt murder though, its more like running away

If you want to murder someone in the digital realm you go for the jugular and make them leave