Викам да споделя някой друг скрипт, може да са полезни и на други освен на мен

- 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