Blogs

Block Facebook login popup with Ublock Origin

1. Instlall uBlock Origin addon
2. Go to Tools -> Addons -> Ublock Origin settings -> Dashbord (uBlock Origin dashboard ), and open the tab „My filters“.
3. Add the code below into the text field and click „Apply Changes“.

facebook.com###pagelet_growth_expanding_cta
facebook.com###u_0_6

Add CSS/JS on a modul settings page

MODULNAME.libraries.yml


admin:
css:
theme:
css/MODULNAME.admin.css: {}

MODULNAME\Form\MODULNAMESettingsForm


public function buildForm(array $form, FormStateInterface $form_state) {
// code settings form
$form['css'] = [
'#attached' => array(
'library' => array(
'MODULNAME/admin',
),
),
];
return parent::buildForm($form, $form_state);
}
?>

Zwahlendesign:

Pages

Subscribe to RSS - blogs