File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ protected void renderContent(Bundle savedInstanceState) {
274274
275275 String articleContent = m_article .content ;
276276
277- ws .setJavaScriptEnabled (false );
277+ ws .setJavaScriptEnabled (m_prefs . getBoolean ( "article_javascript_enabled" , false ) );
278278
279279 m_web .setBackgroundColor (Color .TRANSPARENT );
280280
Original file line number Diff line number Diff line change 315315 <string name =" enable_icon_tinting" >Enable icon tinting</string >
316316 <string name =" enable_icon_tinting_summary" >Disable if you have trouble distinguishing icons because of their color</string >
317317 <string name =" expand_special_cat" >Expand Special category</string >
318+ <string name =" article_enable_javascript" >Enable JavaScript</string >
319+ <string name =" article_enable_javascript_summary" >Some iframe-based video players require JavaScript, enable with caution</string >
318320</resources >
Original file line number Diff line number Diff line change 190190 android : key =" enable_article_fab"
191191 android : summary =" @string/prefs_enable_fab_long"
192192 android : title =" @string/prefs_enable_fab" />
193+ <SwitchPreferenceCompat
194+ android : defaultValue =" false"
195+ android : key =" article_javascript_enabled"
196+ android : summary =" @string/article_enable_javascript_summary"
197+ android : title =" @string/article_enable_javascript" />
193198 </PreferenceCategory >
194199 <PreferenceCategory android : title =" @string/prefs_opening_links" >
195200 <SwitchPreferenceCompat
You can’t perform that action at this time.
0 commit comments