Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
Are you a dj?? seems to be a lot of djs on here (dont choose conflicting options plz)
Yes I am a disc jockey of some sort
No i do not jockey discs op
yospos 219 bicth
View Results
 
  • Locked thread
bobbilljim
May 29, 2013

this christmas feels like the very first christmas to me
:shittydog::shittydog::shittydog:
afternoon team,

Here is a lovely userscript i wrote yesterday / today instead of doing work.

https://github.com/bobbilljim/yuspos/raw/master/yuspos.user.js

features:
*synpe form teh 'pos
*text in reply box
*green grenade
*twitter embeds
*vine embeds
* quote highlights to work correctly in the pos

*the ethical userscript: no valeyards


planned features:
*fix the fotns in newthread.php that i just noticed
*do somethign different with cozpops
*lol, amberpos


I am using chrome on lunix so who knows what will happen if u dont. I use it on chrome on linux and windows.

I use TamperMonkey to install it. NOTE some of it won't work without using greasemonkey / tampermonkey so if you must install it in a sperg way i can fix it but otherwise aint bovvered

feel free to berate me itt.

i am not responsible for anythign bad happening when you use this userscript

edit:features, windows

bobbilljim fucked around with this message at 05:57 on Dec 17, 2014

Adbot
ADBOT LOVES YOU

Smythe
Oct 12, 2003
i use YOSPLUS aka SA Needful for my YOSAUGs until the maintainer, and my friened VALEYARD decide to HIJACK MY ACCOUNT and leave me FOR DEAD on the CURB

bobbilljim
May 29, 2013

this christmas feels like the very first christmas to me
:shittydog::shittydog::shittydog:
i should note that forums poser valeyard was not involved in this userscript

Cold on a Cob
Feb 6, 2006

i've seen so much, i'm going blind
and i'm brain dead virtually

College Slice

Smythe posted:

i use YOSPLUS aka SA Needful for my YOSAUGs until the maintainer, and my friened VALEYARD decide to HIJACK MY ACCOUNT and leave me FOR DEAD on the CURB

lol you mean the poster with an apparent legit mental illness lashed out in the only way he could?

no loving way

pram
Jun 10, 2001

bobbilljim posted:

i should note that forums poser valeyard was not involved in this userscript

compelling

Valeyard
Mar 30, 2012


Grimey Drawer

Smythe posted:

i use YOSPLUS aka SA Needful for my YOSAUGs until the maintainer, and my friened VALEYARD decide to HIJACK MY ACCOUNT and leave me FOR DEAD on the CURB

wait what, i did no such thing my man

bobbilljim
May 29, 2013

this christmas feels like the very first christmas to me
:shittydog::shittydog::shittydog:
smythe is well known for his completely serious posting.

Valeyard
Mar 30, 2012


Grimey Drawer

bobbilljim posted:

smythe is well known for his completely serious posting.

the 'pos is serious business

good poo poo though bobbilljim

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

bobbilljim posted:

afternoon team,

Here is a lovely userscript i wrote yesterday / today instead of doing work.

https://github.com/bobbilljim/yuspos/raw/master/yuspos.user.js

features:
*synpe form teh 'pos
*text in reply box
*green grenade
*twitter embeds
*vine embeds

*the ethical userscript: no valeyards


planned features:
*fix the fotns in newthread.php that i just noticed
*do somethign different with cozpops
*lol, amberpos
* quote highlights to work correctly in the pos

I am using chrome on lunix so who knows what will happen if u dont. I use TamperMonkey to install it.

feel free to berate me itt.

i am not responsible for anythign bad happening when you use this userscript

I use chrome on Linux too!! I will try this soon I guess

bobbilljim
May 29, 2013

this christmas feels like the very first christmas to me
:shittydog::shittydog::shittydog:
using this thread as source control so i dont have to log into git. this *should* stop the random cospop. but you have to janitor a setting. nvm fixed that
code:
// ==UserScript==
// @name         Cospop remover
// @namespace    [url]http://bobbilljim.com[/url]
// @version      0.1
// @description  stop the random cospop
// @author       You
// @match        [url]http://forums.somethingawful.com/showthread.php*[/url]
// @grant        none
// @run-at 	 document-start
// ==/UserScript==

window.originalSetTimeout=window.setTimeout;

window.setTimeout=function(func,delay)
{
    if(func.toString().indexOf('http://fi.somethingawful.com/219/cosby/') > -1){
    	console.log("no cospop plz");
        return -1;    
    }
    return window.originalSetTimeout(func,delay);
};

bobbilljim fucked around with this message at 12:12 on Dec 17, 2014

Mr SuperAwesome
Apr 6, 2011

im from the bad post police, and i'm afraid i have bad news

bobbilljim posted:

using this thread as source control so i dont have to log into git.

if you're using git in a way that means you gotta log in you probablyfucked up

Widdiful
Oct 10, 2012

help

using firefox on win 8.1 because im not a complete idiot

PleasureKevin
Jan 2, 2011

for some reason it doesn't work in ninjakit for me, just like 90% of other things.

Smythe
Oct 12, 2003

Valeyard posted:

wait what, i did no such thing my man

No no, like, until you DO. It's only a matter of time

bobbilljim
May 29, 2013

this christmas feels like the very first christmas to me
:shittydog::shittydog::shittydog:

Widdiful posted:

help

using firefox on win 8.1 because im not a complete idiot
uh... ill look into it

PleasureKevin posted:

for some reason it doesn't work in ninjakit for me, just like 90% of other things.
since that doesn;t have monkey in the name im thinking the css stuff may not work

Mr SuperAwesome posted:

if you're using git in a way that means you gotta log in you probablyfucked up

lol, by which i meant i couldnt be arsed downloading git to my winblows pc or opening a vm and then setting up private keys etc

Valeyard
Mar 30, 2012


Grimey Drawer

bobbilljim posted:

uh... ill look into it

since that doesn;t have monkey in the name im thinking the css stuff may not work


lol, by which i meant i couldnt be arsed downloading git to my winblows pc or opening a vm and then setting up private keys etc

if you are on windows jist download the Github gui application and you dont need to gently caress around with ssh keys and It Just Works with a nice metro interface

bobbilljim
May 29, 2013

this christmas feels like the very first christmas to me
:shittydog::shittydog::shittydog:

Widdiful posted:

help

using firefox on win 8.1 because im not a complete idiot

it should work for you now. or at least, you can install it

bobbilljim
May 29, 2013

this christmas feels like the very first christmas to me
:shittydog::shittydog::shittydog:

Valeyard posted:

if you are on windows jist download the Github gui application and you dont need to gently caress around with ssh keys and It Just Works with a nice metro interface

thankyou for tje advice but i use my pc for videogames and porn, i will not be needing git on it

Widdiful
Oct 10, 2012

bobbilljim posted:

it should work for you now. or at least, you can install it

ye it installs but the features arent working. think you have to do !important on every line or something

Jonny 290
May 5, 2005



[ASK] me about OS/2 Warp
reading this thread is like watching a couple of chubby teenagers covertly try to smoke banana peels in back of the shop class building

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
thanks op,

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
testing

https://twitter.com/marissamayer/status/542408904995377152

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
i optimized your garbage code
code:
var twitLoaded = function() {
..
-- var links = document.getElementsByTagName("a");
++ var links = jQuery('.postbody > a');
..

#l58
-- var links = document.getElementsByTagName("a");
++ var links = jQuery('.postbody > a');

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
added some functionality just stick this anywhere

code:
jQuery('.userinfo.userid-43235').parent().attr('style', "background-color: purple !important;background-image:none !important;");
if (jQuery('.userinfo.userid-185872').size() > 0) { 
	var warn = confirm('Warning! ' + jQuery('.userinfo.userid-185872 .author').first().html() + ' Post Detected. Proceed?'); 
	if(warn == false){ window.location.href = 'http://forums.somethingawful.com/forumdisplay.php?forumid=219' };
};

DONT THREAD ON ME fucked around with this message at 01:35 on Dec 18, 2014

pram
Jun 10, 2001

MALE SHOEGAZE posted:

added some functionality just stick this anywhere

code:
jQuery('.userinfo.userid-43235').parent().attr('style', "background-color: purple !important;background-image:none !important;");
if (jQuery('.userinfo.userid-185872').size() > 0) { 
	var warn = confirm('Warning! ' + jQuery('.userinfo.userid-185872 .author').first().html() + ' Post Detected. Proceed?'); 
	if(warn == false){ window.location.href = 'http://forums.somethingawful.com/forumdisplay.php?forumid=219' };
};

lol

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

MALE SHOEGAZE posted:

added some functionality just stick this anywhere

code:
jQuery('.userinfo.userid-43235').parent().attr('style', "background-color: purple !important;background-image:none !important;");
if (jQuery('.userinfo.userid-185872').size() > 0) { 
	var warn = confirm('Warning! ' + jQuery('.userinfo.userid-185872 .author').first().html() + ' Post Detected. Proceed?'); 
	if(warn == false){ window.location.href = 'http://forums.somethingawful.com/forumdisplay.php?forumid=219' };
};

Valeyard
Mar 30, 2012


Grimey Drawer

MALE SHOEGAZE posted:

added some functionality just stick this anywhere

code:
jQuery('.userinfo.userid-43235').parent().attr('style', "background-color: purple !important;background-image:none !important;");
if (jQuery('.userinfo.userid-185872').size() > 0) { 
	var warn = confirm('Warning! ' + jQuery('.userinfo.userid-185872 .author').first().html() + ' Post Detected. Proceed?'); 
	if(warn == false){ window.location.href = 'http://forums.somethingawful.com/forumdisplay.php?forumid=219' };
};

stick it up your rear end :argh:

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
here's some more functionality
code:
if (jQuery('.userinfo.userid-30835#lastpost').size() > 0){
    jQuery('.userinfo.userid-30835#lastpost').parent().parent().find('ul.postbuttons a')[1].click();
}
if (jQuery('.post-wrapper textarea').size() > 0 && jQuery('.post-wrapper textarea').html().indexOf('[quote="MALE SHOEGAZE"') > -1){
	jQuery("input[value='Submit Reply']").click();
};

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
this is kinda helpful

code:
var max_width = Math.min.apply(Math, jQuery('.postbody').not(jQuery('.postbody > img').parent()).map(function(){ return jQuery(this).width(); }).get());
jQuery('.postbody img.img').each(function(){
    var e = jQuery(this);
    if(e.width() > max_width){
        e.attr('style',"width:" + max_width + "px;")
    }
});

bobbilljim
May 29, 2013

this christmas feels like the very first christmas to me
:shittydog::shittydog::shittydog:
yhanjs all

i found out about jquery like halfway through lol

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'


go post in the lockmart thrad

bobbilljim
May 29, 2013

this christmas feels like the very first christmas to me
:shittydog::shittydog::shittydog:

MALE SHOEGAZE posted:

this is kinda helpful

code:
var max_width = Math.min.apply(Math, jQuery('.postbody').not(jQuery('.postbody > img').parent()).map(function(){ return jQuery(this).width(); }).get());
jQuery('.postbody img.img').each(function(){
    var e = jQuery(this);
    if(e.width() > max_width){
        e.attr('style',"width:" + max_width + "px;")
    }
});

i just read this, fuckin good idea

Moo Cowabunga
Jun 15, 2009

[Office Worker.




will this work on the most advanced Internet browser yet, Safari for iOS?

Valeyard
Mar 30, 2012


Grimey Drawer

bobbilljim posted:

i just read this, fuckin good idea

max-width:100%;

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

Valeyard posted:

max-width:100%;

lol good point

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

MALE SHOEGAZE posted:

lol good point

jQuery('.postbody img.img').each(function(){
jQuery(this).attr('style',"max-width:100%");
});

bobbilljim
May 29, 2013

this christmas feels like the very first christmas to me
:shittydog::shittydog::shittydog:

MALE SHOEGAZE posted:

jQuery('.postbody img.img').each(function(){
jQuery(this).attr('style',"max-width:100%");
});

do it for code tags too imho

theadder
Dec 30, 2011



lol

Adbot
ADBOT LOVES YOU

bobbilljim
May 29, 2013

this christmas feels like the very first christmas to me
:shittydog::shittydog::shittydog:

bobbilljim posted:

do it for code tags too imho

it doesnt work on code blocks for some reason :pwn:

  • Locked thread