uBlockProtector icon indicating copy to clipboard operation
uBlockProtector copied to clipboard

receive-sms-online.info

Open Phlipout opened this issue 9 years ago • 7 comments

view site click on a phone number

https://www.receive-sms-online.info/read-sms.php?phone=14083896925

expected:

screen shot 2017-05-16 at 6 04 46 pm

But a populated middle column. Is it blank because I have blocked the inline-script?

||www.receive-sms-online.info/read-sms.php?phone=14083896925$inline-script,domain=www.receive-sms-online.info

not blocking that shows obstructionism

screen shot 2017-05-16 at 6 06 13 pm

I usually write such whiners a letter indicating I only whitelist sites with 1st party, non-active ad content.

These filters

screen shot 2017-05-16 at 6 09 24 pm

uBlock origin, greasemonkey, stylish. Only those 3 extensions. Stylish is only used to style outlook.com waterfox 53.0.1,

also Iridium 58 (chromium): ublock origin, ublock origin extra, tampermonkey

https://iridiumbrowser.de/index.html#about

Phlipout avatar May 17 '17 01:05 Phlipout

OK, I'll fix it.

jspenguin2017 avatar May 17 '17 02:05 jspenguin2017

Does https://github.com/jspenguin2017/AdBlockProtector/commit/793bd5aeb06b7a770db726022ad1fe450b3ef0b5 fixes it?

jspenguin2017 avatar May 17 '17 02:05 jspenguin2017

:1st_place_medal: yes, that is marvelous, thank you much

smile09

What can I read to educate myself to the point of understanding the changes you made? Let's assume I am 99% javascript illiterate.

Phlipout avatar May 17 '17 02:05 Phlipout

The change I made is actually really simple: it patches addEventListener to reject argument that is that long string, with should be part of minimized jQuery, I grabbed it from debug logger. a.filter is part of our API, the documentation is here:

/**
 * Filter a function.
 * @function
 * @param {string} func - The name of the function to filter, use "." to separate multiple layers.
 * @param {Enumeration} [method=Match All] - An option from a.matchMethods, omit or pass null defaults to match all.
 * @param {*} filter - Filter to apply, this must be appropriate for the method.
 * @param {Function} [onMatch=undefined] - Callback when filter is matched, arguments list (as an array) will be supplied, return value of this callback will be send back to caller.
 * @param {Function} [onAfter=undefined] - Callback when filter is applied, match state (true for blocked, false for allowed) and arguments list (as an array) will be supplied.
 * @returns {boolean} True if the operation was successful, false otherwise.
 */

 

I started by coding client side website, I think of what I want, and Google what I need to make that working. If you want to learn JavaScript, you can try the same.

If you just want to be able to patch websites, have a look at our Core library, it offers many high level API that are easy to use: https://github.com/jspenguin2017/AdBlockProtector/blob/master/Script%20Compiler/Core.js

jspenguin2017 avatar May 17 '17 03:05 jspenguin2017

Looks like it's still working. Closing this issue. Let me know if it breaks again.

jspenguin2017 avatar May 17 '17 14:05 jspenguin2017

@jspenguin2017 Is broken .... maybe

lain566 avatar Jul 02 '17 15:07 lain566

Yep, it's broken.

jspenguin2017 avatar Jul 02 '17 15:07 jspenguin2017