Author Topic: [Request] ;wap2 and ;imode remover user script  (Read 633 times)

I want a script that automatically gets rid of the ;wap2 or ;imode from a BLF URL
pls

It's five letters. Is it that hard?


It's five letters. Is it that hard?
It can be 1 letter, I'm requesting a user script to remove it.
If you don't like the idea, you don't have to post.
Auto is the best type of work.

i haven't tested it but this should work

Code: [Select]
// ==UserScript==
// @name         ;wap2 bad
// @namespace    asdasd
// @version      0.1
// @description  refresh without ;wap2 or ;imode
// @author       Steve5451
// @match        http://forum.blockland.us/index.php*
// @grant        none
// ==/UserScript==


if(window.location.href.indexOf(";wap2") != -1 || window.location.href.indexOf(";imode") != -1 || window.location.href.indexOf(";wap") != -1) {
    var url = window.location.href;
    url = url.replace(";wap2","");
    url = url.replace(";wap","");
    url = url.replace(";imode","");
    window.location = url;
}
« Last Edit: July 02, 2015, 11:44:08 AM by Steve5451² »