Showing posts with label Firefox. Show all posts
Showing posts with label Firefox. Show all posts

2025/05/20

Firefox: Prevent Google AI on web search

 grab Greasymonkey or similar

// ==UserScript==
// @name         Google Web tab redirect
// @match        https://www.google.com/search*
// @run-at       document-start
// ==/UserScript==

(function() {
    let url = new URL(location.href);
    if (!url.searchParams.has("udm")) {
        url.searchParams.set("udm", "14");
        location.replace(url.toString());
    }
})();

 

what it does: it automatically selects the "Web" option.

If tomorrow they change/remover the attribute one could simply hide it using uBlockOrigin. 


2021/03/30

How to prevent web admin session expiration on routers (Huawei at least)

Note: this post is just a  public draft.

1)  open Firefox

2) visit your router's administration web page. 

3) Open debugger. 

4) Log in

5) on the Network tab, right click on the first entry (usually index.php or whatever) and under "Copy" select "Copy as cURL"

6) open konsole or whatever terminal you preffer

7) write watch -n 30 and a double quote, then paste and add -k -o /dev/null and close the double quotes

8) hit enter to run watch and go back to your browser.

leave your web admin tab open, otherwise you will have to repeat all the steps.


this trick might be useful on every site that makes your session expire via ajax calls.


2020/04/02

Installing Waterfox addons (the "hard" way)

Apparently the guys at Mozilla have found/left a hole somewhere on Waterfox browsers engine (since its also from Mozilla but modified) to reveal the real user agent to websites.

(Note to self: check where is it and how to counter it)

Specific case is addons.mozilla.org: even if you have an user agent spoofer and you choose whatever Firefox version, it will not let download the addon you want.

So the trick is to have an old copy of firefox installed and use it to open the addon page you want. Then simply copy the link to install it, paste into Waterfox and remove the last part of the url so it ends with the xpi extension.

2018/08/05

Stylish for TW (updated)

When I do things like this I want to separate updated content from what is not.

This template removes pinned tweets among other things like the Moments, prompts, translate buttons and recommended followers.


@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("twitter.com") {
#above-timeline-prompt,
.user-pinned,
.SidebarCommonModules,
.moments,
.message,
.translate-button, .GalleryNav,
.js-recommended-followers
{ display:none !important }

}


2018/07/09

Autofill forms for Chromium and Firefox

Why/when do you need it:
  • because you use the same web page from time to time and you need to fill a form with the same data (ie: user/pass)
  • related to the above, once configured with a hotkey, logging in a site in is just a second
  • security is not an issue
  • a natural complement to Lazarus addon for Firefox
  • if you are like me, who sticks to Firefox 40-48 because many addons does not work on newer versions, you might want to use Chromium for specific web pages
Firefox version:

https://firefox.add0n.com/autofill-forms.html

for Chromium

https://add0n.com/autofillforms-e10s.html

compared with the Addon for Firefox (version 1.1.8), Chromium addon is horrible beyond belief. I feel like some software developers are treating users as if they were morons incapable of thinking for themselves so they try to spoon-feed them with fancy dialogs and buttons limiting what they can and cannot do. Proof of that is the first item on the Features list: "Easy configuration with a simple interface"

2018/06/16

stylish for stackexchange

removes annoying cookies usage notice (which I have them blocked with CookieMonster anyway):

@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("stackexchange.com") {
#js-gdpr-consent-banner
  { display: none !important; }
}

2018/03/20

Stylish for TW

For this recipe to work, you will need installed Firefox version 40-48, and Stylish Addon for Firefox.

The following template allows you to right click on an image in order to view it on a new tab or to save it as file, it also removes Moments and Who to follow.

@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("twitter.com") {
#above-timeline-prompt,
.moments,
.translate-button, .GalleryNav,
.js-recommended-followers
{ display:none !important }

}

2018/01/22

Global Stylish for Firefox

Specially imporant when you have a dark theme as desktop in KDE and when Firefox or a web page does not handle all colors properly
@namespace url(http://www.w3.org/1999/xhtml);

input
{ background: white ; color: black !important }
select
{ background: white ; color: black !important }
Funny thing about this is: under Firefox 45 it changes default colors for address bar and search bar.

2017/04/30

Stylish for g00gle

@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("www.google.com") {
.ads-ad
{ display: none !important }

}

Styilish for Twitter

this is a work in progress:

Firefox + Stylish addon

this code removes "Moments":

@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("twitter.com") {
.moments
{ display:none !important }

}

2016/02/26

FB Clean Stylish

another post of the same thing: how to get rid of annoying suggestions and ads

get Firefox + Stylish

inside Stylish create the following style:

@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("facebook.com") {
.uiTextareaAutogrow, .inputtext { color: black ; background-color:white }
#u_jsonp_5_1p,
._5ciw, .rhcFooter,
#appsNav,
#pagesNav,
#interestsNav,
#developerNav,
#listsNav,

#pagelet_bookmark_nav,
#u_jsonp_2_29,
#nf_megaphone_school_add,

#stream_story_525363c9273e41d84248140,

.stream_story_525363c9273e41d84248140,

#pagelet_stream_pager,

#‎u_0_30‬,

#rightCol,

#pagelet_side_ads,

#pagelet_pymk_timeline,

#escapeHatchMinimal_4__g,

#rightColWrap,

‪#‎pagelet_pymk_timeline‬,

‪#‎pagelet_megaphone‬,

‪#‎findFriendsNav‬,

.UIStandardFrame_SidebarAds,

.MessagingNetegoSidebar,

‪#‎MessagingNetegoSidebar‬,

‪#‎pagelet_bookmark_nav‬,

‪#‎pagelet_relationships‬,

‪#‎profile‬-friends-footer,

.pagelet_stream_pager,

‪#‎pagelet_stream_pager‬,

.rightCol,

‪#‎rightCol‬,

.rightColumnWrapper,

‪#‎rightColumnWrapper‬,

‪#‎pagelet_right_sidebar‬,

.pagelet_right_sidebar,

.fbTimelineSideAds,

#rightCol ‪#‎pagelet_ego_pane‬ .ego_column:nth-child(1),

.fbPhotoSnowboxAds,

.fbPhotoSnowboxAdsSide,

.fbEmu.fbEmuBlock.fbEmuEgo[id*="-id_"],

a[href*="/campaign/111111"], /* REMOVED TEMPORARY */

.fbEmuMarketplace,

‪#‎egoRefreshAds‬,

‪#‎pagelet_ego_pane_m‬,

‪#‎pagelet_ego_pane_w‬,

/* OLD STYLES */

.profile_sidebar_ads, .sidebar_ads, .adcolumn_header, .admarket_ad,

.ad_story, .social_ad_advert, .ads_feedback, .next_ad_button, .more_ads

{background:none !important;display:none !important}

}

2014/05/17

Must Have Firefox Addons

No Script: because it doesn't really matter if there's a hole in the newest  JavaScript  version for firebox. Link

Ad Block Plus: get rid of most nasty ads. Link

Cookie Monster: site cookies can store information on your browser about your preferences, but can also used to track you on the Internet.  Link

DTA (Download Them All): I'm not a mass downloader but this Addon is a must with Unplug. Link

Firebug: a must have for web hacking. Link

Lazarus: after typing 10 times the same form, you end up installing this.  Link

Skip Feedsportal: some RSS Feeds create a special formated url to keep a track of the sites you visit. If you don't want that, this Addon is for you. Link

Stylish: Check on my other posts to see what can you do with it. Link

Tabs on Bottom: as firefox user since version 1 I like the old style more than the new one. Link

Unplug: Extract media from web pages like Youtube. Link

User Agent Switcher: In some cases, if a web pages is acting weird, you can force them to believe you are using a different browser.  Link


2014/04/30

A bit more anonymous way for Youtube browsing


If you use Google productos like blogger or gmail, you will notice that entering in Youtube automatically use your google credentials on the site. Which means all videos you search and browse are registered in your Google Account.

If you want to avoid that, you need Firefox and Cookie Monster. Once installed you will have a new Icon with the letters CM, go to youtube, click on the icon and select Cookie Access (site level) and select Reject Cookies. You will notice that even if you use gmail or blogger or even google it wont log you out from those sites.

2014/04/23

How to get rid of "Try the new Twitter profile" box on Twitter

EDIT 20140603: this post is outdated since Twitter forced the new style on every account

ORIGINAL POST:

same thing as this post, You need Firefox, Stylish and create a new style for the domain.

@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("twitter.com") {
.ProfilePreviewBanner

{background:none !important;display:none !important}

}


Edit: Added screenshoots as example. notice the icon in the left lower corner:




@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("twitter.com") {
.ProfilePreviewBanner

{background:none !important;display:none !important}

}
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("twitter.com") {
.ProfilePreviewBanner

{background:none !important;display:none !important}

}

2013/07/21

Removing adds in Facebook with Firefox Stylish Addon

updated on 2016-09-09

just a quick recipe to remove all annoying ads and irrelevant information from Facebook

Ingredients:

Firefox
Stylish

and then create the template for facebook.com:

@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("facebook.com") {
.uiTextareaAutogrow, .inputtext { color: black ; background-color:white }
._sf6,
#u_jsonp_5_1p,

  ._1vc-,
._5ciw, .rhcFooter,
#appsNav,
#pagesNav,
#interestsNav,
#developerNav,
#listsNav,

#pagelet_bookmark_nav,
#u_jsonp_2_29,
#nf_megaphone_school_add,

#stream_story_525363c9273e41d84248140,

.stream_story_525363c9273e41d84248140,

#pagelet_stream_pager,

#‎u_0_30‬,

#rightCol,

#pagelet_side_ads,

#pagelet_pymk_timeline,

#escapeHatchMinimal_4__g,

#rightColWrap,

‪#‎pagelet_pymk_timeline‬,

‪#‎pagelet_megaphone‬,

‪#‎findFriendsNav‬,

.UIStandardFrame_SidebarAds,

.MessagingNetegoSidebar,

‪#‎MessagingNetegoSidebar‬,

‪#‎pagelet_bookmark_nav‬,

‪#‎pagelet_relationships‬,

‪#‎profile‬-friends-footer,

.pagelet_stream_pager,

‪#‎pagelet_stream_pager‬,

.rightCol,

‪#‎rightCol‬,

.rightColumnWrapper,

‪#‎rightColumnWrapper‬,

‪#‎pagelet_right_sidebar‬,

.pagelet_right_sidebar,

.fbTimelineSideAds,

#rightCol ‪#‎pagelet_ego_pane‬ .ego_column:nth-child(1),

.fbPhotoSnowboxAds,

.fbPhotoSnowboxAdsSide,

.fbEmu.fbEmuBlock.fbEmuEgo[id*="-id_"],

a[href*="/campaign/111111"], /* REMOVED TEMPORARY */

.fbEmuMarketplace,

‪#‎egoRefreshAds‬,

‪#‎pagelet_ego_pane_m‬,

‪#‎pagelet_ego_pane_w‬,

/* OLD STYLES */

.profile_sidebar_ads, .sidebar_ads, .adcolumn_header, .admarket_ad,

.ad_story, .social_ad_advert, .ads_feedback, .next_ad_button, .more_ads

{background:none !important;display:none !important}

}