The Soft Geek

Archive for the ‘Scripts and Codes’ Category

Hey guys!

I recently came across a user script which removes the annoying ad features in Gmail.
On the other hand, it makes your message view wider.

Its a javascript. So you need a javascript enabled browser (i recommend firefox).

Here are the steps:

1. Get Firefox, if you don’t have from here.
2. Install Greasemonkey add-on from here.
3. Go here to install the script.
4. Open your inbox and enjoy the clear view (without ads).

Below is the script, if you want it.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
var widerGmailMessageViewTargetCSSRule;

document.addEventListener(“DOMNodeInserted”,
function(evt) {
if (evt.target.className == “T1HY1 XoqCub MMcQxe”) {
var column = document.evaluate(“.//td[@class=’tELAdc’ and position()=3]”, evt.target, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue;
if (column) {
var subjectline = document.evaluate(“.//h1[@class=’YfMhcb’]”, evt.target, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue;
var linksdiv = document.evaluate(“.//div[@class=’yMuNaf’]”, evt.target, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue;
subjectline.parentNode.insertBefore(linksdiv, subjectline);
column.parentNode.removeChild(column);
column = document.evaluate(“.//td[@class=’tELAdc’ and position()=2]”, evt.target, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue;
column.parentNode.removeChild(column);
}
for (var i = 0; i < document.styleSheets.length && !widerGmailMessageViewTargetCSSRule; i++) {
for (var j = 0; j < document.styleSheets[i].cssRules.length && !widerGmailMessageViewTargetCSSRule; j++) {
if (document.styleSheets[i].cssRules[j].selectorText == “.OZly4d”) {
widerGmailMessageViewTargetCSSRule = document.styleSheets[i].cssRules[j];
}
}
}
widerGmailMessageViewTargetCSSRule.style.cssText = “padding-top: 0; float: right; padding-right: 1ex;”
}
}, false);

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Note: Listen non-firefox users (or users with no user script manager add-ons available)-You may not be able to hide the ads, and if you manage to, please let me know how.

Advertisements

When I want to search for images, the first place to look for that comes to my mind is Google Image Search. It does lack a few features, but I still use it for all my image-searching needs.

To get a direct link for any image in Google Image Search, you have to first click the image and get the direct link from the website page where that image belongs to. But thanks to a Greasemonkey script, getting a direct link is much easier now.

Google Direct Image Links is a Greasemonkey script that adds a link to the direct URL of the image above every search result in Google Image Search.

This is a very useful script for people (like me) who use Google Image Search very often. No need to open the image page first just to get the direct link. You can copy it directly from the results page.

Download the script from the link given below.

Download Google Direct Image Links script


Blog Stats

  • 1,100 hits
October 2017
S M T W T F S
« May    
1234567
891011121314
15161718192021
22232425262728
293031