X
Thinta lapha ukuze uye kuveshini yamakhalekhukhwini kusayithi.

Isithangami Sabeseki

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

How to Block Elements using Ublock Origin?

Kuphostiwe

A lot of sites hit me with Javascript-based animation, while requiring Javascript to work. I have sensory processing issues, so animation and flashing is painful, and can trigger my migraines; outside it can also be disorienting and dangerous.

I have Ublock Origin, but can't find out how to block elements with it.

Obviously if I'm trying to block an element, I've *already* been hit by it. But it would sometimes help to be able to freeze it. And *then* I would be able to consider further steps. If I can't freeze an animated element, I have to get away from it. If I try to scroll away from it, a highlighted area shifts left as I scroll down. If I mouse over the text box, it flashes.

I tried AdBlockPlus but deactivated it because it broke copy/paste.

A lot of sites hit me with Javascript-based animation, while requiring Javascript to work. I have sensory processing issues, so animation and flashing is painful, and can trigger my migraines; outside it can also be disorienting and dangerous. I have Ublock Origin, but can't find out how to block elements with it. Obviously if I'm trying to block an element, I've *already* been hit by it. But it would sometimes help to be able to freeze it. And *then* I would be able to consider further steps. If I can't freeze an animated element, I have to get away from it. If I try to scroll away from it, a highlighted area shifts left as I scroll down. If I mouse over the text box, it flashes. I tried AdBlockPlus but deactivated it because it broke copy/paste.

Eminye Imininingwane Yohlelo

Fakela amapulagi

  • Dragon-Web Applications

Isisebenziso

  • Firefox 45.0.2
  • Umsebenzisi oyi-ejenti: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Firefox/45.0
  • I-URL Yokweseka: https://support.mozilla.org/1/firefox/45.0.2/Darwin/en-US/

Izandiso

  • Configuration Mania 1.23.2016040301 ({c4d362ec-1cff-4ca0-9031-99a8fad7995a})
  • FEBE 8.9.2 ({4BBDD651-70CF-4821-84F8-2B918CF89CA3})
  • Firefox Hello Beta 1.1.14 (loop@mozilla.org)
  • Flashblock 1.5.20 ({3d7eb24f-2740-49df-8937-200b1cc08f8a})
  • GrabMyBooks 1.8.2 (info@grabMyBooks.com)
  • Greasemonkey 3.7 ({e4a8a97b-f2ed-450b-b12d-ee082ba24781})
  • Open in Reader View 0.1.0 (jid0-fgmjSq5kJtop0oO9u5hJj@jetpack)
  • QuickJava 2.0.8 ({E6C1199F-E687-42da-8C24-E7770CC3AE66})
  • RightToClick 2.9.6 ({cd617375-6743-4ee8-bac4-fbf10f35729e})
  • Stylish 2.0.6 ({46551EC9-40F0-4e47-8E18-8E5CF550CFB8})
  • uBlock Origin 1.6.8 (uBlock0@raymondhill.net)
  • Block Content 0.2.1-signed (blockcont@mdsy) (Akusebenzi)
  • Bookmark Deduplicator 1.3.1.1-signed (bookmarkdeduplicator@foxhatdev) (Akusebenzi)
  • OPIE2 1.0.6 (OPIE2@opie2.customsoftwareconsult.com) (Akusebenzi)
  • Show Parent Folder 2.1.1-signed (showParentFolder@alice) (Akusebenzi)
  • Textise Add-On v3.0 3.0.1-signed ({d358dc61-498f-3de1-4d99-deacebaa276f}) (Akusebenzi)
  • Toggle animated GIFs 1.3 (giftoggle@simonsoftware.se) (Akusebenzi)
  • Tranquility 1.2 (tranquility@ushnisha.com) (Akusebenzi)
  • Window Master 7.2 (monitormaster@pjs.nl) (Akusebenzi)

I-Javascript

  • incrementalGCEnabled: True

Imidwebo

  • adapterDescription:
  • adapterDeviceID: 0x0a26
  • adapterDrivers:
  • adapterRAM:
  • adapterVendorID: 0x8086
  • driverDate:
  • driverVersion:
  • info: {u'AzureCanvasBackend': u'skia', u'AzureFallbackCanvasBackend': u'none', u'AzureContentBackend': u'quartz', u'AzureSkiaAccelerated': 1}
  • numAcceleratedWindows: 0
  • numAcceleratedWindowsMessage: [u'']
  • numTotalWindows: 1
  • supportsHardwareH264: No;
  • webglRenderer: Intel Inc. -- Intel HD Graphics 5000 OpenGL Engine
  • windowLayerManagerRemote: True
  • windowLayerManagerType: Basic

Okuthandwayo Okulungisiwe

Misc

  • Umsebenzisi JS: Cha
  • Ukufinyeleleka: Cha
Phoxuponyou 51 izisombululo 517 izimpendulo
Kuphostiwe

Select the UBO icon in your toolbar, then select the eye dropper icon next to "on this page". You can also go into UBO settings from the gear icon (top left corner under the main icon), tick the box for Advanced User and use colour-coded blanket rules for domains (see example and colour legend here: https://discourse.mozilla-community.org/t/support-ublock-origin/6746/2).

ABP probably just needed the right domain unblocked to enable copypaste. I prefer ABP because the rules are more straightforward to edit in it compared to UBO.

Select the UBO icon in your toolbar, then select the eye dropper icon next to "on this page". You can also go into UBO settings from the gear icon (top left corner under the main icon), tick the box for Advanced User and use colour-coded blanket rules for domains (see example and colour legend here: https://discourse.mozilla-community.org/t/support-ublock-origin/6746/2). ABP probably just needed the right domain unblocked to enable copypaste. I prefer ABP because the rules are more straightforward to edit in it compared to UBO.

Umnikazi wombuzo

I tried that. It didn't work. Now I've got a worse headache, because of the animation where I tried that.

I tried that. It didn't work. Now I've got a worse headache, because of the animation where I tried that.

Umnikazi wombuzo

There were buttons for "create," "pick," and "quit,"

I have tried "pick," and "create," and neither would block the animation, then or after reloading.

I honestly think Javascript-based animation should be phased out because it is so much harder to block than other types, and all autoplaying animation should be phased out.

There were buttons for "create," "pick," and "quit," I have tried "pick," and "create," and neither would block the animation, then or after reloading. I honestly think Javascript-based animation should be phased out because it is so much harder to block than other types, and all autoplaying animation should be phased out.
Phoxuponyou 51 izisombululo 517 izimpendulo
Kuphostiwe

I'm with you on banning autoplaying animation and other needless nuisances, bar video on sites specifically made for video content delivery. Devs today don't seem to recall or know what a bad idea GIFs and MIDIs were - then again it could be their clients ordering the content.

If you could not block an element, chances are your rule blocked something else, perhaps a layer on top of the element. Point me to said element and I'll see what I can do.

In the picker view, Create creates the rule, Pick lets your repick the element you want to base your rule on and Quit quits the picker. It works, just tested it on one of the pictures on UBO's Mozilla page.

I'm with you on banning autoplaying animation and other needless nuisances, bar video on sites specifically made for video content delivery. Devs today don't seem to recall or know what a bad idea GIFs and MIDIs were - then again it could be their clients ordering the content. If you could not block an element, chances are your rule blocked something else, perhaps a layer on top of the element. Point me to said element and I'll see what I can do. In the picker view, ''Create'' creates the rule, ''Pick'' lets your repick the element you want to base your rule on and ''Quit'' quits the picker. It works, just tested it on one of the pictures on UBO's Mozilla page.

Umnikazi wombuzo

That seems to work, but "block element" only blocks one at a time - it doesn't block similar elements.

Where can I find a list of the rules mine has added from my attempts to block elements?

That seems to work, but "block element" only blocks one at a time - it doesn't block similar elements. Where can I find a list of the rules mine has added from my attempts to block elements?

Umnikazi wombuzo

Okay, it's hidden away in Add-Ons Manager > Ublock Origin > Dashboard.

Okay, it's hidden away in Add-Ons Manager > Ublock Origin > Dashboard.
Phoxuponyou 51 izisombululo 517 izimpendulo
Kuphostiwe

The rule creation starts with just the element you selected; if you want to expand the rule, you'll have to modify it.

It looks like UBO uses the ABP syntax for its filters, so these instructions should apply to both: https://adblockplus.org/filters. All I ever use is the wildcard, *, to mark dynamic URL sections, e.g. "|http://*.olark.com/*.js*" will block any subdomains of olark.com that would start Javascript entities with the .js extensions.

PS. I tried to look for ready-made blocklists for people with SPD, but couldn't find any. It's all advertising and malware related. What I did find was the Dynamic Filtering guide for UBO: https://github.com/gorhill/uBlock/wiki/Dynamic-filtering:-quick-guide. The feature seems really handy, if you can get to grips with it.

The rule creation starts with just the element you selected; if you want to expand the rule, you'll have to modify it. It looks like UBO uses the ABP syntax for its filters, so these instructions should apply to both: https://adblockplus.org/filters. All I ever use is the wildcard, *, to mark dynamic URL sections, e.g. "|http://*.olark.com/*.js*" will block any subdomains of olark.com that would start Javascript entities with the .js extensions. PS. I tried to look for ready-made blocklists for people with SPD, but couldn't find any. It's all advertising and malware related. What I did find was the Dynamic Filtering guide for UBO: https://github.com/gorhill/uBlock/wiki/Dynamic-filtering:-quick-guide. The feature seems really handy, if you can get to grips with it.

Okulungisiwe ngu Phoxuponyou

cor-el
  • Top 10 Contributor
  • Moderator
17573 izisombululo 158952 izimpendulo
Kuphostiwe

If it is a JavaScript animation then you might be better of with NoScript and possibly ask advice at the NoScript forum.

If it is a JavaScript animation then you might be better of with NoScript and possibly ask advice at the NoScript forum. * http://forums.informaction.com/viewforum.php?f=3

Umnikazi wombuzo

Okay thanks.

One more idea: is disabling webGL a way to disable Javascript-based animation without breaking other Javascript-based functions?

Okay thanks. One more idea: is disabling webGL a way to disable Javascript-based animation without breaking other Javascript-based functions?
Phoxuponyou 51 izisombululo 517 izimpendulo
Kuphostiwe

From what I could find out, no. HTML5 has something called "Canvas", https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API, that can be used to make animations with Javascript.

From what I could find out, no. HTML5 has something called "Canvas", https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API, that can be used to make animations with Javascript.