github.com/pojntfx/hydrapp/hydrapp@v0.0.0-20240516002902-d08759d6ca9f/pkg/browser/templates.go (about)

     1  package browser
     2  
     3  const (
     4  	prefsJSContent = `user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
     5  user_pref("browser.link.open_newwindow.restriction", 0);
     6  user_pref("browser.tabs.firefox-view", false);
     7  user_pref("datareporting.policy.firstRunURL", "");
     8  user_pref("browser.tabs.tabmanager.enabled", false);
     9  user_pref("browser.shell.checkDefaultBrowser", false);
    10  user_pref("datareporting.policy.dataSubmissionPolicyBypassNotification", true);
    11  user_pref("browser.tabs.warnOnClose", false);
    12  user_pref("browser.tabs.warnOnCloseOtherTabs", false);
    13  user_pref("browser.warnOnQuit", false);
    14  user_pref("browser.warnOnQuitShortcut", false);
    15  user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features", false);
    16  user_pref("browser.link.open_newwindow", 1);`
    17  	userChromeCSSContent = `@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
    18  
    19  #nav-bar,
    20  #urlbar-container,
    21  #searchbar,
    22  #PersonalToolbar,
    23  #tabbrowser-tabs,
    24  #TabsToolbar #firefox-view-button {
    25    visibility: collapse !important;
    26  }
    27  
    28  #navigator-toolbox[inFullscreen] {
    29      position: relative;
    30      z-index: 1;
    31      height: 3px;
    32      margin-bottom: -3px;
    33      opacity: 0;
    34      overflow: hidden;
    35  }
    36  
    37  #navigator-toolbox[inFullscreen]:hover {
    38      height: auto;
    39      margin-bottom: 0px;
    40      opacity: 1;
    41      overflow: show;
    42  }
    43  
    44  #content-deck[inFullscreen]{
    45      position:relative;
    46      z-index: 0;
    47  }
    48  `
    49  
    50  	epiphanyDesktopFileTemplate = `[Desktop Entry]
    51  Name=%v
    52  Exec=epiphany --name="%v" --class="%v" --new-window --application-mode --profile="%v" "%v"
    53  StartupNotify=true
    54  Terminal=false
    55  Type=Application
    56  Categories=GNOME;GTK;
    57  StartupWMClass=%v
    58  X-Purism-FormFactor=Workstation;Mobile;`
    59  )