Bug 396024 - Allow per-site configuration of JavaScript
Summary: Allow per-site configuration of JavaScript
Status: REPORTED
Alias: None
Product: Falkon
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-30 14:31 UTC by Christoph Feck
Modified: 2020-02-17 16:00 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Feck 2018-06-30 14:31:21 UTC
Since there is no NoScript-plugin, I propose a simple per-site JavaScript configuration (similar to cookies). A toolbar button could temporarily override the default.

Rationale: I prefer to surf with JavaScript off by default, and only want to enable it for sites that need it, permanently and temporarily.
Comment 1 Xavier Brochard 2018-06-30 21:59:33 UTC
The StatusBar Icons extension add a javascript icon at the bottom right of the window that let you temporarily disable Javascript.
Comment 2 Christoph Feck 2018-09-06 20:01:04 UTC
I tried it, but it doesn't allow the reverse. If I have JavaScript disabled, the button doesn't allow me to temporarily enable it. Starting with enabled, then later disabling it defeats the purpose; any malformed site will have already executed its scripts before I get the chance to disable it.
Comment 3 The_assassin 2019-04-28 15:11:53 UTC
There is a Python extension at https://store.kde.org/browse/cat/571/
Please consider closing the issue if that extension are useful for you!
Also, please do not report here issues related to that extension, thanks!
Comment 4 Christoph Feck 2019-04-29 01:05:59 UTC
It doesn't have per-site configuration, so no, it is not useful.
Comment 5 The_assassin 2019-04-29 05:03:34 UTC
Yes, it is per-tab, but you just could open the new site in new tab, or just click the button before open a new site in same tab.
Comment 6 Horstl 2019-05-14 17:19:35 UTC
I would like to test the mentioned Python extension and downloaded javascriptbutton.zip, but I don't know what to do with it!
It says: "Requires PyFalkon plug-in to be enabled in Falkon." => how do I have to do that in Falkon 3.1.0?
And what do I have to do with the zip-file afterwards?
Thanks in advance!
Comment 7 The_assassin 2019-05-14 19:40:43 UTC
If Falkon was built with PyFalkon plug-in, it is already enabled and no additional action are required.
Regarding extensions, if you are using most recent git version of Falkon, you could just click on the "INSTALL" button on the extension page, otherwise, just extract it to ~/.config/falkon/plugins
Example command: unzip javascriptbutton.zip -d ~/.config/falkon/plugins
Comment 8 Horstl 2019-05-16 15:59:19 UTC
Doesn't work for me, unfortunately.
How can I determine, if my Falkon was built with PyFalkon plug-in?
And what would I have to ask the packager of my distro for, to enable it?
Which compiler-options or whatsoever does he need?
Comment 9 The_assassin 2019-05-16 16:16:05 UTC
Which distribution you are using?
Comment 10 Horstl 2019-05-17 17:55:41 UTC
I'm using PCLinuxOS
Comment 11 The_assassin 2019-05-17 19:49:08 UTC
(In reply to Horstl from comment #10)

As far as I see, Falkon is built without Python plug-in for your distribution. You could ask packages maintainers to enable python3-pyside support for Falkon. If you want to build it yourself, you need to install "python3-pyside-devel" and "python3-shiboken-devel" packages.
Good luck!
Comment 12 Horstl 2020-02-17 16:00:42 UTC
After working for several months, the extension JavaScriptButton causes the following failure in my PCLinuxOS-install of Falkon:
"Falkon: Python plugin support initialized
falkon: symbol lookup error: /usr/lib64/plugins/falkon/PyFalkon.so: undefined symbol: _ZN8Shiboken10ObjectType20introduceWrapperTypeEP7_objectPKcS4_P11PyType_SpecS4_PFvPvEP13SbkObjectTypeS2_j"
According to Texstar from PCLinuxOS this is a glibc 2.31 issue and: "The browser developers are aware of the issue and are working to fix the problem".

Other updates that may be the cause for the problem were:
python-rpm (4.8.1-11pclos2020) to 4.8.1-12pclos2020
python3-pyside2 (5.12.2-2pclos2019) to 5.12.6-1pclos2020
python3-shiboken2 (5.12.2-2pclos2019) to 5.12.6-1pclos2020

Can you fix this for Falkon too, please?