eLeMenT
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[Quick Tip] Forum ads remove

+3
doctor_x
vega
unic_sorin
7 posters

Go down

[Quick Tip] Forum ads remove Empty [Quick Tip] Forum ads remove

Post by unic_sorin Fri May 30 2014, 17:37

you can remove the ads using this script

Code:
<script type="text/javascript">
    jQuery(document).ready(function(){
      jQuery("#main-content").each(function(){
        jQuery(this).find("iframe:first, div:first").remove();
     });
    });
</script>

or add this code to greasemonkey (for firefox), or tampermonkey(for chrome)

Code:
// ==UserScript==
// @name              forumotion ad remove
// @version       2.0
// @namespace         http://forumotion.com
// @description       Because meh!
// @include           http://element-nex.forumotion.com/*
// @license           GNU GENERAL PUBLIC LICENSE
// @agreement         THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ==/UserScript==
jQuery(document).ready(function(){
      jQuery("#main-content").each(function(){
        jQuery(this).find("iframe:first, div:first").remove();
     });
    });
unic_sorin
unic_sorin


Back to top Go down

[Quick Tip] Forum ads remove Empty Re: [Quick Tip] Forum ads remove

Post by vega Fri May 30 2014, 21:09

What kind of code is this? java?

vega
vega
vega
Admin
Admin


https://element-nex.forumotion.com/

Back to top Go down

[Quick Tip] Forum ads remove Empty Re: [Quick Tip] Forum ads remove

Post by unic_sorin Fri May 30 2014, 21:11

this is javascript. mostly based on jquery
unic_sorin
unic_sorin


Back to top Go down

[Quick Tip] Forum ads remove Empty Re: [Quick Tip] Forum ads remove

Post by vega Sat May 31 2014, 10:43

And is it just to paste in the forum?

Vega
vega
vega
Admin
Admin


https://element-nex.forumotion.com/

Back to top Go down

[Quick Tip] Forum ads remove Empty Re: [Quick Tip] Forum ads remove

Post by unic_sorin Sat May 31 2014, 11:26

first code, yes. if you have a field for html or javascript that can be added in the forum, you could paste it there and check the result. it will work for everyone.

the second code is made for the greasemonkey Firefox addon, or tampermonkey chrome extension, that can run it for this site each time you visit it. the result will, in this case be shown only to you, not to everyone.
unic_sorin
unic_sorin


Back to top Go down

[Quick Tip] Forum ads remove Empty Re: [Quick Tip] Forum ads remove

Post by vega Sat May 31 2014, 12:47

Oh ok cool thx! Normally the ads should be gone now?

vega
vega
vega
Admin
Admin


https://element-nex.forumotion.com/

Back to top Go down

[Quick Tip] Forum ads remove Empty Re: [Quick Tip] Forum ads remove

Post by doctor_x Sat May 31 2014, 13:59

am i the only one who has never seen an ad here?
good job adblock and ghostery Smile
doctor_x
doctor_x
eLeMenT Friend
eLeMenT Friend


Back to top Go down

[Quick Tip] Forum ads remove Empty Re: [Quick Tip] Forum ads remove

Post by vega Sat May 31 2014, 15:34

There are adds sometimes under the forum logo Smile but now not anymore xd

V
vega
vega
Admin
Admin


https://element-nex.forumotion.com/

Back to top Go down

[Quick Tip] Forum ads remove Empty Re: [Quick Tip] Forum ads remove

Post by Avallac'h Sat May 31 2014, 16:38

cool thank you unic and vega !! Very Happy

Avallac'h
Avallac'h
Avallac'h
eLeMenT Friend
eLeMenT Friend


Back to top Go down

[Quick Tip] Forum ads remove Empty Re: [Quick Tip] Forum ads remove

Post by unic_sorin Sat May 31 2014, 18:55

I still can see the ads. Did you applyied the script corectly?
unic_sorin
unic_sorin


Back to top Go down

[Quick Tip] Forum ads remove Empty Re: [Quick Tip] Forum ads remove

Post by Schocksal Sat May 31 2014, 19:04

I also still see the adds  Neutral 

Schocki Smile
Schocksal
Schocksal
Spammer
Spammer


Back to top Go down

[Quick Tip] Forum ads remove Empty Re: [Quick Tip] Forum ads remove

Post by vega Sat May 31 2014, 19:06

I pasted it in a java script section i'll also add it in html

vega
vega
vega
Admin
Admin


https://element-nex.forumotion.com/

Back to top Go down

[Quick Tip] Forum ads remove Empty Re: [Quick Tip] Forum ads remove

Post by unic_sorin Sat May 31 2014, 19:08

if you paste javascript in javascript section. watch out to remove javascript tags before and after the script, especially if it is suggested by the field description. If you want to add the script in a custom html section, add the first script entirely (with the javascript tags)
unic_sorin
unic_sorin


Back to top Go down

[Quick Tip] Forum ads remove Empty Re: [Quick Tip] Forum ads remove

Post by unic_sorin Mon Jun 02 2014, 14:02

I've managed to get it work. Everyone who read this please check if the ads still appear
unic_sorin
unic_sorin


Back to top Go down

[Quick Tip] Forum ads remove Empty Re: [Quick Tip] Forum ads remove

Post by Avallac'h Mon Jun 02 2014, 18:18

To me i don't have adds anymore (i don't know if it's adblock or your code but it's cool Very Happy ). Thank you !! Very Happy

Avallac'h
Avallac'h
Avallac'h
eLeMenT Friend
eLeMenT Friend


Back to top Go down

[Quick Tip] Forum ads remove Empty Re: [Quick Tip] Forum ads remove

Post by Mr_Ranger Mon Jun 02 2014, 18:22

i dont have ads anymore! Nice 1 Very Happy
Mr_Ranger
Mr_Ranger
Member
Member


Back to top Go down

[Quick Tip] Forum ads remove Empty Testing

Post by SLGray Wed Jun 04 2014, 00:25

If you are using this on a Forumotion forum, you breaking the Terms of Service. You can only remove ads by using credits.
avatar
SLGray
Guest


Back to top Go down

[Quick Tip] Forum ads remove Empty Re: [Quick Tip] Forum ads remove

Post by vega Wed Jun 04 2014, 00:28

Oh sorry didn't know that i'll delete it again then!

V
vega
vega
Admin
Admin


https://element-nex.forumotion.com/

Back to top Go down

[Quick Tip] Forum ads remove Empty Testing

Post by SLGray Wed Jun 04 2014, 00:29

Adblockers are ok, but codes that remove them from the forum is not.
avatar
SLGray
Guest


Back to top Go down

[Quick Tip] Forum ads remove Empty Re: [Quick Tip] Forum ads remove

Post by vega Wed Jun 04 2014, 00:30

Oh well its deleted anyway Razz

V
vega
vega
Admin
Admin


https://element-nex.forumotion.com/

Back to top Go down

[Quick Tip] Forum ads remove Empty Re: [Quick Tip] Forum ads remove

Post by Kwakkiezalf Wed Jun 18 2014, 21:00

Oops:-)
Kwakkiezalf
Kwakkiezalf
eLeMenT Friend
eLeMenT Friend


Back to top Go down

[Quick Tip] Forum ads remove Empty Re: [Quick Tip] Forum ads remove

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum