Greasemonkey: Index.hu
Herczeg Artúr
I created this Greasemonkey script because I got bored from ads and useless parts of the Hungarian news portal Index.hu. Greasemonkey is a Firefox extension for changing sites with own scripts.
My code is simple:
// @name index.hu simplified
// @namespace http://techies.teamlupus.hu
// @description v0.1 – remove rarely used parts of index.hu
// @include http://index.hu/*
// @include http://*index.hu/*
// ==/UserScript==
GM_addStyle("#prcontent, #hird, #ad_horiz, #supabannerbox, #bottom_content_banner, #right_ad, #bottom_right_ad { display:none; }"); //Turns off ads
GM_addStyle("#survival_kit, #survival_content { display:none; }"); //turns off "Túlél?készlet" section
GM_addStyle(".left { width: 321px; }"); //sets left menu width
GM_addStyle(".right { width: 321px; }"); // sets content width to the same size
GM_addStyle("#footer { display:none; }"); //turns off footer
It turns off ads, turns off "Túlél?készlet" section, sets the left and right section widths (to keep the original site appearance) and finally it turns off the footer.
If you want to turn of some site modifications just comment out the line. To do this, you have to insert "//" to the beginning of the selected line.
I plan to make the script more customizable.
Link: Index.hu simplified
Kapcsolódó tartalom:| Greasemonkey: Index.hu || Technológiai ?skor || Firefox piaci részesedés || Ajándék || Menetelés a világgal szemben |
Kategória: Internet |
1 megjegyzés »





2006. december 4., hétfő 17:54
Can you tell me about the function GM_addStyle() .
i want to get more information about GM_addStyle.
Thank You
MY MSN:biansutao@htomail.com