Brought to you by Headoff Xen

Здравейте ( Вход | Регистрация )


Collapse

> subs.sab.bz - Информация

Сериал/Прогрес The Night Agent (2026) - 03x04 от mia_one new7.gif
Dark Winds (2026) - 04x03 от The_Assassin new7.gif
Shef (2025) - Сезон 7 от Василиса new7.gif
Spartacus: House of Ashur - 01x08 от Koen
Robin Hood - Сезон 1 от The_Assassin
Power Book II: Ghost - 03x01 от motleycrue
Man vs Baby - 01x04 от С.Славов
Outlander (2024) - Сезон 7 от Horatio
Maigret (2025) - Сезон 1 от С.Славов
Rise of the Raven - Сезон 1 от Guerrilla
УебРип субтитри Chris Fleming: Live at the Palace - Субтитри от С. Славов new7.gif
The Running Man (2025) - Субтитри от С. Славов new7.gif
The Choral (2025) - Субтитри от С. Славов new7.gif
28 Years Later: The Bone Temple - Субтитри от С. Славов
The Stranger in My Home - Субтитри от JoroNikolov
Five Nights at Freddy's 2 - Субтитри от С. Славов
Anaconda (2025) - Субтитри от sub.Trader
Cycling Africa (2025) - Субтитри от С. Славов
Eleanor the Great (2025) - Субтитри от С. Славов
Poison (2024) - Субтитри от ferol
Филм/Прогрес Cold Storage (2026) - Субтитри от Слав Славов new7.gif
Ballerina (2025) - Субтитри от Tigermaster new7.gif
The Wrecking Crew - Субтитри от Tigermaster new7.gif
Hamnet (2025) - Субтитри от С.Славов
Wake Up (2023) - Субтитри от KikoDraka
Greenland 2 (2026) - Субтитри от С.Славов
The Shadow's Edge - Субтитри от Tigermaster
Carry-On (2024) - Субтитри от KikoDraka
Sisu: Road to Revenge - Субтитри от С.Славов
Predator: Badlands - Субтитри от С. Славов
 Forum Rules ПРАВИЛА НА РАЗДЕЛА!
 
Reply to this topicStart new topic Thank You
> Client-Side Javascripts and CSS
Оценка 5 V
freakazoid
коментар Dec 22 2011, 07:07 PM
Коментар #1




.: Outcast :.
***
Качени субтитри

Група: БАРД_
Коментари: 835
Регистриран: 30-January 07
Град: Upload Form / English Section
Потребител No.: 4 456
Статус: Офлайн



Викам да споделя някой друг скрипт, може да са полезни и на други освен на мен smiley.gif
  • IMDB Top 250 - добавя бг флагчета срещу всеки филм от топ 250 на страницата на IMDB. При кликване на флагчето, ще ви се отвори страница с резултатите от търсенето на субтитри на сайтот за съответния филм.
    CodeОтвори!

    Код
    // ==UserScript==
    // @name           searcher
    // @namespace      dsf
    // @include        http://www.imdb.com/chart/top
    // @include            http://www.imdb.com/chart/bottom
    // @include            http://www.imdb.com/chart/1910s
    // @include            http://www.imdb.com/chart/1920s
    // @include            http://www.imdb.com/chart/1930s
    // @include            http://www.imdb.com/chart/1940s
    // @include            http://www.imdb.com/chart/1950s
    // @include            http://www.imdb.com/chart/1960s
    // @include            http://www.imdb.com/chart/1970s
    // @include            http://www.imdb.com/chart/1980s
    // @include            http://www.imdb.com/chart/1990s
    // @include            http://www.imdb.com/chart/2000s
    // @include            http://www.imdb.com/chart/2010s
    // @include            http://www.imdb.com/chart/action
    // @include            http://www.imdb.com/chart/adventure
    // @include            http://www.imdb.com/chart/animation
    // @include            http://www.imdb.com/chart/biography
    // @include            http://www.imdb.com/chart/comedy
    // @include            http://www.imdb.com/chart/crime
    // @include            http://www.imdb.com/chart/documentary
    // @include            http://www.imdb.com/chart/drama
    // @include            http://www.imdb.com/chart/family
    // @include            http://www.imdb.com/chart/fantasy
    // @include            http://www.imdb.com/chart/filmnoir
    // @include            http://www.imdb.com/chart/history
    // @include            http://www.imdb.com/chart/horror
    // @include            http://www.imdb.com/chart/independent
    // @include            http://www.imdb.com/chart/music
    // @include            http://www.imdb.com/chart/musical
    // @include            http://www.imdb.com/chart/mystery
    // @include            http://www.imdb.com/chart/romance
    // @include            http://www.imdb.com/chart/scifi
    // @include            http://www.imdb.com/chart/short
    // @include            http://www.imdb.com/chart/sport
    // @include            http://www.imdb.com/chart/thriller
    // @include            http://www.imdb.com/chart/tvminiseries
    // @include            http://www.imdb.com/chart/war
    // @include            http://www.imdb.com/chart/western
    // @include            http://www.imdb.com/chart/male
    // @include            http://www.imdb.com/chart/female
    // by freakazoid@subs.sab.bz
    // ==/UserScript==

    var tableti = document.getElementsByTagName ("a");
    for(var shmek=0; shmek<tableti.length; shmek++)
    {
    if(tableti[shmek].href.match(/title\/tt/i))
    {
    var b=document.createElement('a');
    b.href="http://subs.sab.bz/index.php?act=search&movie="+tableti[shmek].innerHTML;
    b.target="_blank";
    b.innerHTML="<img src='http://subs.sab.bz/forum/style_emoticons/default/bg.gif' />";
    tableti[shmek].parentNode.appendChild(b);
    }
    }


  • Смяна на аватар във форума/Оразмеряване
    CodeОтвори!

    Код
    // ==UserScript==
    // @name           ChangeAvatar
    // @namespace      sab
    // @include        http://subs.sab.bz/forum/index.php?showtopic=*
    // by freakazoid@subs.sab.bz
    // ==/UserScript==

    var images = document.getElementsByTagName ("img");
    var x=0;
    while(x<images.length)
    {
    if(images[x].src.match('http://subs.sab.bz/forum/uploads/av-4456.jpg') != null)
    {
    images[x].src="/*или линк към аватара, или еквивалента му в Base64*/";
    images[x].height = "";/*по ваше усмотрение*/
    images[x].width = "150";/*тук също, 150 за мен е идеална стойност*/
    images[x].style.border = "2px solid #000000";//не е задължително
    }
    x=x+1;
    }


  • Оцветяване на ъплоудерите на сайта
    CodeОтвори!

    Код
    // ==UserScript==
    // @name           nick_coloring
    // @namespace      dsf
    // @include        http://subs.sab.bz/index.php?*
    // @include        http://subs.sab.bz/
    // by freakazoid@subs.sab.bz
    // ==/UserScript==

    var mihes=document.getElementsByTagName("img");
    for(var i=0; i<mihes.length; i++)
    {
      if(mihes[i].src=="http://st.subs.sab.bz/images/groups/group_vip.png")
      {
        var username=mihes[i].previousSibling.innerHTML;
        mihes[i].previousSibling.innerHTML="<span style='font-weight:bold; color: #990000;'>"+username+"</span>";
        mihes[i].parentNode.removeChild(mihes[i]);
      }
      
      else if(mihes[i].src=="http://st.subs.sab.bz/images/groups/group_gmoderators.png")
      {
        var username=mihes[i].previousSibling.innerHTML;
        mihes[i].previousSibling.innerHTML="<span style='font-weight:bold; color: orange;'>"+username+"</span>";
        mihes[i].parentNode.removeChild(mihes[i]);
      }
      
      else if(mihes[i].src=="http://st.subs.sab.bz/images/groups/group_maistori.png")
      {
        var username=mihes[i].previousSibling.innerHTML;
        mihes[i].previousSibling.innerHTML="<span style='font-weight:bold; color: #006400;'>"+username+"</span>";
        mihes[i].parentNode.removeChild(mihes[i]);
      }
      
      else if(mihes[i].src=="http://st.subs.sab.bz/images/groups/group_napredvashti.png")
      {
        var username=mihes[i].previousSibling.innerHTML;
        mihes[i].previousSibling.innerHTML="<span style='color: #006400;'>"+username+"</span>";
        mihes[i].parentNode.removeChild(mihes[i]);
      }
      
      else if(mihes[i].src=="http://st.subs.sab.bz/images/groups/group_nachinaeshti.png")
      {
        var username=mihes[i].previousSibling.innerHTML;
        mihes[i].previousSibling.innerHTML="<span style='color: #2e8b57;'>"+username+"</span>";
        mihes[i].parentNode.removeChild(mihes[i]);
      }
      
      else if(mihes[i].src=="http://st.subs.sab.bz/images/groups/group_editors.png")
      {
        var username=mihes[i].previousSibling.innerHTML;
        mihes[i].previousSibling.innerHTML="<span style='font-weight:bold; color: red;'>"+username+"</span>";
        mihes[i].parentNode.removeChild(mihes[i]);
      }
      
      else if(mihes[i].src=="http://st.subs.sab.bz/images/groups/group_bard.png")
      {
        var username=mihes[i].previousSibling.innerHTML;
        mihes[i].previousSibling.innerHTML="<span style='font-weight:bold; color: purple;'>"+username+"</span>";
        mihes[i].parentNode.removeChild(mihes[i]);
      }
      
      else if(mihes[i].src=="http://st.subs.sab.bz/images/groups/group_stelth.png")
      {
        var username=mihes[i].previousSibling.innerHTML;
        mihes[i].previousSibling.innerHTML="<span style='font-weight:bold; color: #00bfff;'>"+username+"</span>";
        mihes[i].parentNode.removeChild(mihes[i]);
      }
      
      else if(mihes[i].src=="http://st.subs.sab.bz/images/groups/group_admins.png")
      {
        var username=mihes[i].previousSibling.innerHTML;
        mihes[i].previousSibling.innerHTML="<span style='font-weight:bold; color: blue;'>"+username+"</span>";
        mihes[i].parentNode.removeChild(mihes[i]);
      }
    }


  • Премахване на пост на потребител a.k.a. ignore
    Code за безцветни потребителиОтвори!

    Код
    // ==UserScript==
    // @name           dddddd
    // @namespace      dsf
    // @include        http://subs.sab.bz/forum/index.php?showtopic=*
    // by freakazoid@subs.sab.bz
    // ==/UserScript==

    var b = document.getElementsByTagName("a");

    for(var s=0; s<b.length; s++)
    {
      if(b[s].innerHTML=='ника на потребителя' && b[s].parentNode.nodeName!="DIV")
      {
        b[s].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNod
    e.removeChild(b[s].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode);
      }
    }



    Code за цветни потребителиОтвори!

    Код
    // ==UserScript==
    // @name           dddddd
    // @namespace      dsf
    // @include        http://subs.sab.bz/forum/index.php?showtopic=*
    // by freakazoid@subs.sab.bz
    // ==/UserScript==

    var c = document.getElementsByTagName("span");

    for(var s=0; s<c.length; s++)
    {
      if(c[s].innerHTML=='ника на потребителя' && c[s].parentNode.parentNode.nodeName!="DIV")
      {
        c[s].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNod
    e.parentNode.removeChild(c[s].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNod
    e);
      }
    }



    Работят и ако са в един файл.
  • Тъмен вариант на IPB Default Skin-a - не е завършен!
  • Minimal Front Page - гласуванията са малко прецакани за момента
    CodeОтвори!

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

    @-moz-document url-prefix("http://subs.sab.bz/index.php?"),
                   url("http://subs.sab.bz/"),
                   url-prefix("http://subs.sab.bz/?act=") {
    #upload-description {
    width: 381px !important;
    height: 200px !important;
    }
    #upload-name {
    width: 381px !important;
    }
    #upload-topic {
    width: 381px !important;
    }
    #caption, #menu, .tableHeader {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZ
    G9iZSBJbWFnZVJlYWR5ccllPAAAACVJREFUeNpiMjQ0ZGJgYIDj////gzEyGxn/+/cPqzg2DDQDIMAAvyA2i69qxYwAAAAASUVORK5CYII=) !important;
    height: 24px !important;}
    #header, #footer {
    display: none !important;}
    .c1trailer{
    visibility: collapse !important;}
    .c1field {
    width: 1% !important;}
    tr {
    background-color: #2a2a2a !important;}
    tr, a {color: #d2d2d2 !important;}
    #container {
    padding: 5px 0px 0px 0px !important;
    background-color: #434343 !important;}
    #pages ul li.active a, #pages ul li a:hover {
    background-color: #333333 !important;}
    #pages a span {
    display: none !important;}
    tr:hover {
    background-color: #444 !important;}
    }


  • Добавя ви поленце за търсене по IMDB при сърча. Работи както с пълен линк от IMDB, така и само с ID-то на филма/сериала.
    CodeОтвори!

    Код
    // ==UserScript==
    // @name        test_imdb
    // @namespace   dsf
    // @include     http://subs.sab.bz/index.php?act=search*
    // @include        http://subs.sab.bz/index.php?*
    // @include        http://subs.sab.bz/?act=search
    // @version     1
    // @author        frky@subs.sab.bz
    // ==/UserScript==

    var smyrc=document.querySelector(".wrappersearch-adv");
    var leb=document.createElement("label");
    leb.htmlFor="imdb";
    leb.size="18";
    leb.innerHTML="IMDB";
    smyrc.appendChild(leb);
    var inn=document.createElement("input");
    inn.setAttribute("class", "inputFields");
    inn.setAttribute("name", "imdb");
    inn.setAttribute("type", "text");
    inn.setAttribute("id", "imdb");
    inn.setAttribute("value", "");
    inn.setAttribute("size", "32");
    smyrc.appendChild(inn);


  • Скриване/показване на ПОПУЛЯРНИ СУБТИТРИ ДНЕС/ПОПУЛЯРНИ ТЕМИ В ПРОЦЕС НА ПРЕВОД чрез едно кликане върху хедърчето с надписите. Скриптът "помни" състоянието скрито/показано дори и като затворите таб, рефрешнете или затворите Лисика.
    CodeОтвори!

    Код
    // ==UserScript==
    // @name        teeeeeeeeeeeeeeeeest
    // @namespace   dsf
    // @include     http://subs.sab.bz/index.php?act=idx&lang_id=*
    // @include        http://subs.sab.bz/index.php?lang_id=*
    // @include        http://subs.sab.bz/index.php?act=idx
    // @include        http://subs.sab.bz/
    // @version     1
    // @author        frky@subs.sab.bz
    // ==/UserScript==

    function HideShowMe(){
    var mar = document.querySelector(".wrapper_last_header");
    if(mar.nextElementSibling.style.display!='none')
        {mar.nextElementSibling.style.display='none';
         GM_setValue("mar", "none");}
    else
        {mar.nextElementSibling.style.display='';
         GM_setValue("mar", "");}
    }
    var t=document.querySelector(".wrapper_last_header");
    var s=GM_getValue("mar", "");
    t.nextElementSibling.style.display=s;
    var match = document.querySelector(".wrapper_last");
    match.addEventListener("click", HideShowMe, false)


За джаваскриптовете ще ви трябва Greasemonkey, а за CSS-ите - Stylish.

Този коментар е бил редактиран от freakazoid на Apr 6 2013, 09:20 PM



------------------------------------
The Queue

Цитат(WizardBGR)
Таймингът е от субтитрите на Addic7ed, а те рядко имат проблеми.
Цитат
We don't understand the universe
They're just now starting to think that
Inside every black hole is another universe
Wrap your fucking head around that We have no fucking idea
Go to the top of the page PM
 
+Quote Post
Thank YOU!
коментар Dec 22 2011, 09:15 PM
Коментар #2




- = Ho - ho - ho! = -
***
Качени субтитри

Група: БАРД
Коментари: 4 242
Регистриран: 15-September 07
Потребител No.: 1 952
Статус: Офлайн



5 потребител/и са ви благодарили :

Петър Хараланов, skamber, x3m, JediAndrey, SkylimiT








There has/have been 5 person(s) who've used this so far.

Go to the top of the page PM
 
+Quote Post
freakazoid
коментар Jan 12 2012, 03:18 PM
Коментар #3




.: Outcast :.
***
Качени субтитри

Група: БАРД_
Коментари: 835
Регистриран: 30-January 07
Град: Upload Form / English Section
Потребител No.: 4 456
Статус: Офлайн



IMDB скриптът е обновен да работи и със следните чартове:
  • Bottom 100
  • Votes by Genre - Action to Western
  • Votes by Decade - 1910s to 2010s
  • Votes by Gender
smiley.gif

Този коментар е бил редактиран от freakazoid на Jan 12 2012, 03:19 PM



------------------------------------
The Queue

Цитат(WizardBGR)
Таймингът е от субтитрите на Addic7ed, а те рядко имат проблеми.
Цитат
We don't understand the universe
They're just now starting to think that
Inside every black hole is another universe
Wrap your fucking head around that We have no fucking idea
Go to the top of the page PM
 
+Quote Post
SkylimiT
коментар Apr 6 2013, 11:32 PM
Коментар #4




Wanted
***
Качени субтитри

Група: Потребител
Коментари: 274
Регистриран: 19-December 09
Град: Разград
Потребител No.: 103 902
Статус: Офлайн



Има ли някакъв вариант да се подкарат и в Chrome?



------------------------------------
“Better to remain silent and be thought a fool than to speak out and remove all doubt.”
- Abraham Lincoln
Go to the top of the page PM
 
+Quote Post
freakazoid
коментар Apr 6 2013, 11:46 PM
Коментар #5




.: Outcast :.
***
Качени субтитри

Група: БАРД_
Коментари: 835
Регистриран: 30-January 07
Град: Upload Form / English Section
Потребител No.: 4 456
Статус: Офлайн



Има. Аз лично не съм пробвал, понеже не ползвам Хром.
Пробвай това -> http://www.howtogeek.com/howto/24790/begin...-google-chrome/


Ако ми се появи желание, може малко да поекспериментирам и да видя какво е положението тези дни.



------------------------------------
The Queue

Цитат(WizardBGR)
Таймингът е от субтитрите на Addic7ed, а те рядко имат проблеми.
Цитат
We don't understand the universe
They're just now starting to think that
Inside every black hole is another universe
Wrap your fucking head around that We have no fucking idea
Go to the top of the page PM
 
+Quote Post
freakazoid
коментар Apr 10 2013, 06:10 PM
Коментар #6




.: Outcast :.
***
Качени субтитри

Група: БАРД_
Коментари: 835
Регистриран: 30-January 07
Град: Upload Form / English Section
Потребител No.: 4 456
Статус: Офлайн



Тъй като вече се имплементира server-side (cool.gif), можете да не ползвате моя скрипт "Скриване/показване на ПОПУЛЯРНИ СУБТИТРИ ДНЕС/ПОПУЛЯРНИ ТЕМИ В ПРОЦЕС НА ПРЕВОД", стига да работи правилно под текущия ви браузър.

edit: С последната версия на Хром, server-side имплементацията работи.
smiley.gif

Този коментар е бил редактиран от freakazoid на Apr 10 2013, 06:41 PM



------------------------------------
The Queue

Цитат(WizardBGR)
Таймингът е от субтитрите на Addic7ed, а те рядко имат проблеми.
Цитат
We don't understand the universe
They're just now starting to think that
Inside every black hole is another universe
Wrap your fucking head around that We have no fucking idea
Go to the top of the page PM
 
+Quote Post
Базикчо
коментар Apr 15 2013, 08:06 PM
Коментар #7




-= Run With Me =-
***
Качени субтитри

Група: V.I.P.
Коментари: 505
Регистриран: 19-January 07
Град: Tau'ri - EU - Сийланд
Потребител No.: 1 598
Статус: Офлайн
Моят блог


А защо не ги сложиш в http://userstyles.org/ и http://userscripts.org/ ще се слагат много по лесно и могат да се обновяват. От там може и за Chrome и Firefox да се слагат мисля аз не ползвам Chrome не съм 100% сигурен.

Този коментар е бил редактиран от Базикчо на Apr 15 2013, 08:10 PM



------------------------------------
WARNING: I cannot be held responsible for the above, as apparently my cats have learned how to type.
Като вид, по природа сме луди.Съберем ли се повече от двама в едно помещение,
избираме страна и започваме да мислим за причини да се избием.- Защо мислиш сме измислили политиката и религията?

Важно е паричния поток да се движи от места с по-малък интелект към места с по-голям.
С Гугъл ще помислим по темата.
Go to the top of the page PM
 
+Quote Post
Victoria
коментар Aug 16 2013, 07:25 PM
Коментар #8




Darth Choco
Икона на група
Качени субтитри

Група: Глобални модератори
Коментари: 2 494
Регистриран: 30-December 06
Потребител No.: 169
Статус: Офлайн



Понеже не ми харесва да не виждам веднага кои субтитри са с удивителна, направих скриптче, което да ги изкарва така, както бяха по-рано.

Скрипт за забележките от екипаОтвори!

Код
// ==UserScript==
// @name        ModeratorNotes
// @namespace   subs.sab.bz
// @description Making moderator notes to subtitles visible
// @include     http://subs.sab.bz/*
// @version     1
// ==/UserScript==


var dopInfo = document.getElementsByClassName('c2field'),
    note = document.getElementsByClassName('c1notice'),
    searchText = "<div style=\\'background-color: #8b6767; padding: 5px 5px 5px 5px;\\'>",
    searchTextLength = searchText.length,
    match, endIndex;

for (var i = 0; i < dopInfo.length; i++) {
  if((match = dopInfo[i].innerHTML.indexOf(searchText)) !== -1) {
    endIndex = dopInfo[i].innerHTML.indexOf("</div>','#555')");
    note[i+1].innerHTML = '<span onmouseout="hideddrivetip()" onmouseover="ddrivetip(\'' + dopInfo[i].innerHTML.substring(match + searchTextLength, endIndex) + '\',\'#8b6767\')">[<span style=\'color:#F00\'>!</span>]</span>';
  }
}



И едно скрийншотче:

Щракнете върху изображението
за пълен размер



------------------------------------
Жицкъ шоколадената принцеса a.k.a. Милка Локумова Шоколадкова

yve_sl (20:41:52 20/03/2011) Баси, като боа глътнала слон съм. :(
yve_sl (21:05:54 26/05/2011) Ти щеше да си дремеш, аз - да те храня.


С радиото не се спори.
Go to the top of the page PM
 
+Quote Post
freakazoid
коментар Apr 22 2014, 11:19 PM
Коментар #9




.: Outcast :.
***
Качени субтитри

Група: БАРД_
Коментари: 835
Регистриран: 30-January 07
Град: Upload Form / English Section
Потребител No.: 4 456
Статус: Офлайн



Позициониране на курсора в полето за търсене при зареждане на главната страница:

ЦъкОтвори!

Код
// ==UserScript==
// @name        test_focus
// @namespace   dsf
// @include     http://subs.sab.bz/?act=idx
// @include     http://subs.sab.bz/index.php?act=idx&lang_id=*
// @include     http://subs.sab.bz/
// @include     http://subs.sab.bz/index.php?act=idx*
// @version     1
// @grant       none
// ==/UserScript==

document.getElementById('movie').focus();




Този коментар е бил редактиран от freakazoid на Apr 28 2014, 11:49 PM



------------------------------------
The Queue

Цитат(WizardBGR)
Таймингът е от субтитрите на Addic7ed, а те рядко имат проблеми.
Цитат
We don't understand the universe
They're just now starting to think that
Inside every black hole is another universe
Wrap your fucking head around that We have no fucking idea
Go to the top of the page PM
 
+Quote Post

Reply to this topicStart new topic Thank You

 



- Олекотена версия Час: 6th March 2026 - 04:24 AM
Special for Translator's Heaven PHPTranslator's Converted By Translator's Heaven ©2006 InvisionCore
    Headoff Xen   Елате в .: BGtop.net :. Топ класацията на българските сайтове и гласувайте за този сайт!!!